/*

Quote Form Name: getQuoteForm
Zip code: zip

*/

function ValidateForm()
{
	var strErr = "";

	var tmpZip = trim(document.getQuoteForm.zip.value);
	document.getQuoteForm.zip.value = tmpZip;
	if (tmpZip.search(/^\d{5}/) == -1 ||  tmpZip.length > 5) 
	{
		strErr = strErr + "Zip Code is required and must be in the format 00000.\n";
	}
	
	if (strErr != "") {
		alert(strErr);
		return false;
	}
	return true;
}

function trim(str)
{
  return((" "+ str).replace(/^\s*([\s\S]*\S+)\s*$|^\s*$/,"$1"));
}