function doMailFriend()
{
	document.sProcessor = "./custom/mailFriendInterface.php";
	http.open("POST", "./custom/mailFriendInterface.php?action=doProcess", true);
	http.onreadystatechange = viewProcessor;
	http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');

	http.send(null);
}

function continueMailFriend(sFormId)
{
	document.sProcessor = "./custom/mailFriendInterface.php";
	http.open("POST", "./custom/mailFriendInterface.php?action=continueProcess", true);
	http.onreadystatechange = viewProcessor;
	http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');

	sFormData = null;
	if(sFormId != null)
		sFormData = encodeForm(sFormId);
	http.send(sFormData);
}

function prevMailFriendStep()
{
	http.open("POST", "./custom/mailFriendInterface.php?action=prevStep", true);
	http.onreadystatechange = viewProcessor;
	http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	http.send(null);
}

function processMailFriend()
{
	changeElement('siteProcessor', "<div class=\"userForm\">Please wait while we send your message.</div>");

	http.open("POST", "./custom/mailFriendInterface.php?action=finishProcess", true);
	http.onreadystatechange = viewProcessor;
	http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');

	http.send(null);
}
