<!-- function ValidEmailFriend(pForm2){		var sFromEmail = "";	var sToEmail = "";	var sMessage = "";	  	var iIndex="";	var bLength;		//-----FromEmail Check-------	sFromEmail = pForm2.FromEmail.value;	if (sFromEmail == "")	{	   alert("Your Email address needs to be specified");	   pForm2.FromEmail.focus();	   return false;	}    //------FromEmail Address Validation------	sFromEmail = pForm2.FromEmail.value;	if (sFromEmail != "" && !checkEmail(pForm2))	{	   alert("The Email address you specified is not valid");	   pForm2.FromEmail.focus();	   return false;	}	//-----ToEmail Check-------	sToEmail = pForm2.ToEmail.value;	if (sToEmail == "")	{	   alert("Your friend's email address needs to be specified");	   pForm2.ToEmail.focus();	   return false;	}	//------ToEmail Address confirmation------	sToEmail = pForm2.ToEmail.value;	if (sToEmail != "" && !checkEmail(pForm2))	{	   alert("The Email address you specified is not valid");	   pForm2.ToEmail.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.FromEmail.value)){return true;}elsereturn false;}// --------Check that an email address is valid based on RFC 821 (?)-----------function checkEmail(pForm2) {if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(pForm2.ToEmail.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 ?"));  } }-->
