function doUserRegistration()
{
	document.sProcessor = "./custom/registrationInterface.php";
	http.open("POST", "./custom/registrationInterface.php?action=startProcess", true);
	http.onreadystatechange = viewProcessor;
	http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');

	http.send(null);
}

function continueUserRegistration(sFormId)
{
	document.sProcessor = "./custom/registrationInterface.php";
	http.open("POST", "./custom/registrationInterface.php?action=nextStep", 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 prevUserRegistrationStep()
{
	http.open("POST", "./custom/registrationInterface.php?action=prevStep", true);
	http.onreadystatechange = viewProcessor;
	http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	http.send(null);
}

function processUserRegistration()
{
	changeElement('checkoutBody', "Please wait while we process your request. This could take a few moments to complete.");

	http.open("POST", "./custom/registrationInterface.php?action=finishProcess", true);
	http.onreadystatechange = viewProcessor;
	http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');

	http.send(null);
}
