var $form = document.feedBackfunction validateOrderForm($DisplayAlert){	$errorString = "";			if($form.fullName.value.length == 0){		$errorString += "\t• Name not entered.\n";		markIt_Error("fullName","fullNameTitle","* Name");	}	/*if($form.Business.value.length == 0){		$errorString += "\t• Business not entered.\n";		markIt_Error("Business","BusinessTitle","* Business Name");	}*/	if($form.emailAddress.value.length == 0){		$errorString += "\t• E-mail address not entered.\n";		markIt_Error("emailAddress","emailTitle","* E-Mail address");	} else  if(!validEmail($form.emailAddress.value)){		$errorString += "\t• Invalid e-mail address entered.\n";		markIt_Error("emailAddress","emailTitle","* E-Mail address");	}		if($form.streetAddress.value.length == 0||$form.streetAddress.value=='(Street Address or P.O. Box)'){		$errorString += "\t• Mailing address not entered.\n";		markIt_Error("streetAddress","streetAddressTitle","* Mailing Address 1");	}			if($form.City.value.length == 0){		$errorString += "\t• City not entered.\n";			markIt_Error("City","cityTitle","* City");	}				if($form.State.value == "invalid"){		$errorString += "\t• State not selected.\n";			markIt_Error("State","stateTitle","* State");	}		if($form.Zip.value.length == 0){		$errorString += "\t• Zip code not entered.\n";			markIt_Error("Zip","zipTitle","* Zip");	} else if(!isZIP($form.Zip.value)){		$errorString += "\t• Invalid Zip code entered.\n";			markIt_Error("Zip","zipTitle","* Zip");	}		if($form.isPoBox.value=="invalid"){		$errorString += "\t• Select if the provided address is a P.O. Box.\n";		markIt_Error("isPoBox","isPoBoxTitle","* Is this a P.O.Box");			}		if($form.isresidence.value=="invalid"){		$errorString += "\t• Select if the provided address is a residence.\n";		markIt_Error("isresidence","isresidenceTitle","* Is this a Residence");			}				var thisPhone = validPhone($form.dayPhone.value);	if($form.dayPhone.value==""){		$errorString += "\t• Phone number not entered.\n";		markIt_Error("dayPhone","dayPhoneTitle","* Daytime phone");		} else if (!thisPhone.st){		$errorString += "\t• Invalid phone number.\n";		markIt_Error("dayPhone","dayPhoneTitle","* Daytime phone");	}	 	if($errorString!=''){		if($DisplayAlert) {alert('Your order could not be submitted, as the following errors have been found.\t\n\n' + $errorString);}		return false;	} else {		return true;	}}function validate_fullName(){	if($form.fullName.value.length == 0){		markIt_Error("fullName","fullNameTitle","* Name");	} else {		markIt("fullName","fullNameTitle","* Name");	}}function validate_Business(){	if($form.Business.value.length == 0){		markIt_Error("Business","BusinessTitle","* Business Name");	} else {		markIt("Business","BusinessTitle","* Business Name");	}}function validate_emailAddress(){		if(($form.emailAddress.value.length == 0) || (!validEmail($form.emailAddress.value))){		markIt_Error("emailAddress","emailTitle","* E-Mail address");	} else {		markIt("emailAddress","emailTitle","* E-Mail address");	}	}function validate_streetAddress(){	if($form.streetAddress.value.length == 0||$form.streetAddress.value=='(Street Address or P.O. Box)'){		markIt_Error("streetAddress","streetAddressTitle","* Mailing Address 1");	} else {		markIt("streetAddress","streetAddressTitle","* Mailing Address 1");	}}function validate_city(){	if($form.City.value.length == 0){		markIt_Error("City","cityTitle","* City");	} else {		markIt("City","cityTitle","* City");	}}function validate_state(){	if($form.State.value == "invalid"){		markIt_Error("State","stateTitle","* State");	} else {		markIt("State","stateTitle","* State");	}}function validate_zip(){	$form.Zip.value = numOnly($form.Zip.value,"-");	if(($form.Zip.value.length == 0) || (!isZIP($form.Zip.value))){		markIt_Error("Zip","zipTitle","* Zip");	} else {		markIt("Zip","zipTitle","* Zip");	}}function validate_isPoBox(){		if($form.isPoBox.value=="invalid"){		markIt_Error("isPoBox","isPoBoxTitle","* Is this a P.O. Box");			} else {		markIt("isPoBox","isPoBoxTitle","* Is this a P.O. Box");			}}function validate_isresidence(){	if($form.isresidence.value=="invalid"){		markIt_Error("isresidence","isresidenceTitle","* Is this a Residence");	} else {		markIt("isresidence","isresidenceTitle","* Is this a Residence");	}}function validate_dayPhone(){	$form.dayPhone.value = numOnly($form.dayPhone.value,"-");	var thisPhone = validPhone($form.dayPhone.value);		if(($form.dayPhone.value=="") || (!thisPhone.st)){		markIt_Error("dayPhone","dayPhoneTitle","* Daytime phone");		} else {		markIt("dayPhone","dayPhoneTitle","* Daytime phone");		$form.dayPhone.value = thisPhone.val;	}}