<!--function CheckValidation(){	//Generate validation code here.					var ShowMessageInAdvancedValidation = true;					var HideFocus = false;													// Validations for First Name is INPUT_ONLY  and TEXT							//Check for blank - Start							if (document.frmContactUs.first.value == "")							{																	alert("Please enter First Name");																	document.frmContactUs.first.focus();																return false;							}													// Validations for Last Name is INPUT_ONLY  and TEXT							//Check for blank - Start							if (document.frmContactUs.Last.value == "")							{																	alert("Please enter Last Name");																	document.frmContactUs.Last.focus();																return false;							}							//Check for blank - End						// Validations for Phoneone is ADVANCED  and NUM							//Phoneif(document.frmContactUs.Phone.value==""){	if(ShowMessageInAdvancedValidation==true)		alert("Please enter Phone");	if(HideFocus)		document.frmContactUs.Phone.focus();	return false;}else{	var newString = "";	for(i=0;i<document.frmContactUs.Phone.value.length;i++)	{		c=document.frmContactUs.Phone.value.charAt(i);		if(c>=0&&c<=9&&c!=' ')		{			newString+=c;		}		else		{			if (c!='('&&c!=')'&&c!='-'&&c!=' ')			{				if(ShowMessageInAdvancedValidation==true)					alert("Please enter a valid Phone (xxx)xxx-xxxx");				if(HideFocus)					document.frmContactUs.Phone.focus();				return false;			}		}	}	if(newString.length!=9&&newString.length!=10)	{		if(ShowMessageInAdvancedValidation==true)			alert("Please enter a valid Phone (xxx)xxx-xxxx");		if(HideFocus)			document.frmContactUs.Phone.focus();		return false;	}	else	{		document.frmContactUs.Phone.value = newString;	}}													// Validations for Company Name is INPUT_ONLY  and TEXT							//Check for blank - Start							if (document.frmContactUs.Company.value == "")							{																	alert("Please enter Company Name");																	document.frmContactUs.Company.focus();																return false;							}							//Check for blank - End													// Validations for Address is INPUT_ONLY  and TEXT							//Check for blank - Start							if (document.frmContactUs.Address1.value == "")							{																	alert("Please enter Address");																	document.frmContactUs.Address1.focus();																return false;							}							//Check for blank - End																			// Validations for City is INPUT_ONLY  and TEXT							//Check for blank - Start							if (document.frmContactUs.City.value == "")							{																	alert("Please enter City");																	document.frmContactUs.City.focus();																return false;							}							//Check for blank - End													// Validations for State is INPUT_ONLY  and TEXT							//Check for blank - Start							if (document.frmContactUs.State.value == "")							{																	alert("Please enter State");																	document.frmContactUs.State.focus();																return false;							}							//Check for blank - End													//zipif(document.frmContactUs.Zip.value==""){	if(ShowMessageInAdvancedValidation==true)		alert("Please enter Zip");	if(HideFocus)		document.frmContactUs.Zip.focus();	return false;}if(isNaN(parseInt(document.frmContactUs.Zip.value))==false){	if(document.frmContactUs.Zip.value.length != 5 && document.frmContactUs.Zip.value.length !=9)	{		if (ShowMessageInAdvancedValidation==true)			alert("US Zip Codes must be of 5 or 9 digits");		if(HideFocus)			document.frmContactUs.Zip.focus();		return false;	}}else{	if(document.frmContactUs.Zip.value.length < 5)	{		if (ShowMessageInAdvancedValidation==true)			alert("Zip Codes must be of 5 or more digits");		if(HideFocus)			document.frmContactUs.Zip.focus();		return false;	}}							//emailif(document.frmContactUs.email.value==""){	if(ShowMessageInAdvancedValidation==true)		alert("Please enter Email address");	if(HideFocus)		document.frmContactUs.email.focus();	return false;}if (document.frmContactUs.email.value.length < 5){	if (ShowMessageInAdvancedValidation==true)		alert("Please enter a valid Email address");	if(HideFocus)		document.frmContactUs.email.focus();	return false;}myFlag = false;for(i=0;i<document.frmContactUs.email.value.length;i++){	if(i!=1&&i!=document.frmContactUs.email.value.length-1)		if (document.frmContactUs.email.value.charAt(i)=='@')			myFlag = true;}myFlag2=false;for(i=0;i<document.frmContactUs.email.value.length;i++){	if(i!=1&&i!=document.frmContactUs.email.value.length-1)		if (document.frmContactUs.email.value.charAt(i)=='.')			myFlag2 = true;}if (myFlag==false||myFlag2==false){	if (ShowMessageInAdvancedValidation==true)		alert("Please enter a valid Email address");	if(HideFocus)		document.frmContactUs.email.focus();	return false;}	return true;}//-->