function login(email,password)
{
	AjaxTool.clear();
	AjaxTool.url = '/ajax/memberLogin.php';
	AjaxTool.addField('email',email);
	if (password != undefined) AjaxTool.addField('password',password);
	
	// Check if a response function is defined and if it is, set the AjaxTool response function
	if(typeof window.loginResponse == 'function')
	{
		// function exists, so we can use it
		AjaxTool.responseFunction = loginResponse;
	}
	AjaxTool.send();
}

function createMember(member)
{
	AjaxTool.clear();
	AjaxTool.url = '/ajax/createMember.php';
	
	$H(member).each(function(pair){
		AjaxTool.addField(pair.key,pair.value);
	});

	// Check if a response function is defined and if it is, set the AjaxTool response function
	if(typeof window.createMemberResponse == 'function')
	{
		// function exists, so we can use it
		AjaxTool.responseFunction = createMemberResponse;
	}
	AjaxTool.send();
}

function updateMember(member)
{
	AjaxTool.clear();
	AjaxTool.url = '/ajax/updateMember.php';
	
	$H(member).each(function(pair){
		AjaxTool.addField(pair.key,pair.value);
	});

	// Check if a response function is defined and if it is, set the AjaxTool response function
	if(typeof window.updateMemberResponse == 'function')
	{
		// function exists, so we can use it
		AjaxTool.responseFunction = updateMemberResponse;
	}
	AjaxTool.send();
}