// JavaScript Document
function clearFields()
{
	document.all.name.value = "";
	document.all.email.value = "";
}

/*
function saveEmailAddress()
{
	alert("Code is needed here to save form and to redirect to the address page");
}
*/
function checkForm(){
	if (document.form1.email.value == ""){
		alert("Please enter your email address");
		document.form1.email.focus();
		return false;
	} else if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.form1.email.value))){
		alert("Email address is invalid. Please re-enter");
		document.form1.email.focus();
		return false;
	}
	return true;
}