<!-- function ValidContact(pForm2){		var sFirstname = "";	var sLastname = "";	var sEmail = "";	var sEmailConfirm = "";	var sPhone = "";	var sSubj = "";	var sMessage = "";	  	var iIndex="";	var bLength;		//-----First Name Check-------	sFirstname = pForm2.Firstname.value;	if (sFirstname == "")	{	   alert("Your First Name needs to be specified");	   pForm2.Firstname.focus();	   return false;	}	//-----Last Name Check-------	sLastname = pForm2.Lastname.value;	if (sLastname == "")	{	   alert("Your Last Name needs to be specified");	   pForm2.Lastname.focus();	   return false;	}	//-----Email Check-------	sEmail = pForm2.Email.value;	if (sEmail == "")	{	   alert("Your Email needs to be specified");	   pForm2.Email.focus();	   return false;	}    //------Email Address confirmation------	sEmail = pForm2.Email.value;	if (sEmail != "" && !checkEmail(pForm2))	{	   alert("The Email address you specified is not valid");	   pForm2.Email.focus();	   return false;	}	//-----EmailConfirm Check-------	sEmailConfirm = pForm2.EmailConfirm.value;	if (sEmailConfirm == "")	{	   alert("Please confirm your email address");	   pForm2.EmailConfirm.focus();	   return false;	}   		//----- Check- that the two emails supplied are the same------	if (sEmail != sEmailConfirm)	{	   alert("The email address you supplied are not identical");	   pForm2.EmailConfirm.focus();	   return false;	}	//-----Phone Check-------	sPhone = pForm2.Phone.value;	if (sPhone == "")	{	   alert("Subject needs to be specified");	   pForm2.Phone.focus();	   return false;	}//-----Subject Check-------	sSubj = pForm2.Subj.value;	if (sSubj == "")	{	   alert("Subject needs to be specified");	   pForm2.Subj.focus();	   return false;	}//-----Message Check-------	sMessage = pForm2.Message.value;	if (sMessage == "")	{	   alert("Message needs to be specified");	   pForm2.Message.focus();	   return false;	}// Check that a string contains only letters and numbersfunction isAlphanumeric(psString, psIgnoreWhiteSpace) {	if (string.search) {		if ((ignoreWhiteSpace && string.search(/[^\w\s]/) != -1) || (!ignoreWhiteSpace && string.search(/\W/) != -1)) return false;	}	return true;}// Check that a string contains only lettersfunction isAlphabetic(string, ignoreWhiteSpace) {	if (string.search) {		if ((ignoreWhiteSpace && string.search(/[^a-zA-Z\s]/) != -1) || (!ignoreWhiteSpace && string.search(/[^a-zA-Z]/) != -1)) return false;	}	return true;}// Check that a string contains only numbersfunction isNumeric(string, ignoreWhiteSpace) {	if (string.search) {		if ((ignoreWhiteSpace && string.search(/[^\d\s]/) != -1) || (!ignoreWhiteSpace && string.search(/\D/) != -1)) return false;	}	return true;}// --------Check that an email address is valid based on RFC 821 (?)-----------function checkEmail(pForm2) {if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(pForm2.Email.value)){return true;}elsereturn false;}// Remove characters that might cause security problems from a string function removeBadCharacters(string) {	if (string.replace) {		string.replace(/[<>\"\'%;\)\(&\+]/, '');	}	return string;}function ConfirmReset(){  return (confirm("Reset will erase all your data, do you want to continue ?"));  } }-->
