<!--
function check_form() {
	for (var i = 0; i < document.forms['genInfo'].elements.length; i++) {
		var FormElement = document.forms['genInfo'].elements[i].name
		 
		if (FormElement == "realname") {
			if (document.forms['genInfo'].elements[i].value.length == 0)
			{
				alert("You must provide your name!")
				return false
			}
		}
		
		if (FormElement == "OriginCity") {
			if (document.forms['genInfo'].elements[i].value.length == 0)
			{
				alert("You must provide your from city!")
				return false
			}
		}
			
		if (FormElement == "OriginState") {
				if (document.forms['genInfo'].elements[i].selectedIndex == 0)
				{
					alert("You must select a from state!");
					return false
				}
			}	
		if (FormElement == "DestinationCity") {
			if (document.forms['genInfo'].elements[i].value.length == 0)
			{
				alert("You must provide your to city!")
				return false
			}
		}
				
				if (FormElement == "HomePhone") {
			if (document.forms['genInfo'].elements[i].value.length == 0)
			{
				alert("You must provide your day phone number!")
				return false
			}
		}
		if (FormElement == "DestinationState") {
				if (document.forms['genInfo'].elements[i].selectedIndex == 0)
				{
					alert("You must select a to state!");
					return false
				}
			}	
		if (FormElement =="email") {
			var vlength
    			vlength=document.forms['genInfo'].elements[i].value.length-1
			if (document.forms['genInfo'].elements[i].value.length == 0)
			{
				alert("You must enter a valid email address.  Example:  name@movex.com")
				return false
			}

			if (document.forms['genInfo'].elements['email'].value != document.forms['genInfo'].elements['confEmail'].value)
			{
				alert("Your confirmation email must equal your email address!");
				return false
			}
  			// Check for a valid email address (Does it contain a "@" and ".")
  			if(document.forms['genInfo'].elements[i].value.indexOf('@', 0) == -1 || document.forms['genInfo'].elements[i].value.indexOf('.',0)==-1)
			{
				alert("You must enter a valid email address.  Example:  name@movex.com")
				return false
			}
 			// Check for a valid email address ("@" or "." cannot be first character)
			if(document.forms['genInfo'].elements[i].value.charAt(0)=='@' || document.forms['genInfo'].elements[i].value.charAt(0)=='.')
			{
				alert("You must enter a valid email address.  Example:  name@movex.com")
				return false
			}
			// Check for a valid email address ("@" or "." cannot be last character)
			if(document.forms['genInfo'].elements[i].value.charAt(vlength)=='@' || document.forms['genInfo'].elements[i].value.charAt(vlength)=='.')
			{
				alert("You must enter a valid email address.  Example:  name@movex.com")
				return false
			}
  			// Check for a valid email address (Cannot have "@." or ".@")
			if(document.forms['genInfo'].elements[i].value.indexOf('@.')!=-1 || document.forms['genInfo'].elements[i].value.indexOf('.@')!=-1)
			{
				alert("You must enter a valid email address.  Example:  name@movex.com")
				return false
			}
		
		}
			
		if (FormElement =="confEmail") {
			var vlength
    			vlength=document.forms['genInfo'].elements[i].value.length-1
			if (document.forms['genInfo'].elements[i].value.length == 0)
			{
				alert("You must enter a valid confirmation email address.  Example:  name@movex.com")
				return false
			}

 			// Check for a valid email address (Does it contain a "@" and ".")
  			if(document.forms['genInfo'].elements[i].value.indexOf('@', 0) == -1 || document.forms['genInfo'].elements[i].value.indexOf('.',0)==-1)
			{
				alert("You must enter a valid confirmation email address.  Example:  name@movex.com")
				return false
			}
 			// Check for a valid email address ("@" or "." cannot be first character)
			if(document.forms['genInfo'].elements[i].value.charAt(0)=='@' || document.forms['genInfo'].elements[i].value.charAt(0)=='.')
			{
				alert("You must enter a valid confirmation email address.  Example:  name@movex.com")
				return false
			}
			// Check for a valid email address ("@" or "." cannot be last character)
			if(document.forms['genInfo'].elements[i].value.charAt(vlength)=='@' || document.forms['genInfo'].elements[i].value.charAt(vlength)=='.')
			{
				alert("You must enter a valid confirmation email address.  Example:  name@movex.com")
				return false
			}
  			// Check for a valid email address (Cannot have "@." or ".@")
			if(document.forms['genInfo'].elements[i].value.indexOf('@.')!=-1 || document.forms['genInfo'].elements[i].value.indexOf('.@')!=-1)
			{
				alert("You must enter a valid confirmation email address.  Example:  name@movex.com")
				return false
			}
			
		}
		
		if (FormElement =="couponCode") {
			if (document.forms['genInfo'].elements[i].value.length == 0)
			{ 
				alert('Please enter a valid coupon code.');
				return false;
			}
		}
		
		if (FormElement =="itemShipping") {
			if (document.forms['genInfo'].elements[i].value.length == 0)
			{ 
				alert('Please enter a the item being shipped.');
				return false;
			}
		}
	}
	return true	

}


function owner_form() {
	for (var i = 0; i < document.forms['ownerInfo'].elements.length; i++) {
		var FormElement = document.forms['ownerInfo'].elements[i].name
		 
		if (FormElement == "operator_name") {
				if (document.forms['ownerInfo'].elements[i].value.length == 0)
				{
					alert("You must provide your Owner Operator Name!")
					return false
				}
			}
			
		if (FormElement == "address") {
				if (document.forms['ownerInfo'].elements[i].value.length == 0)
				{
					alert("You must provide your address!")
					return false
				}
			}
			
		if (FormElement == "city") {
				if (document.forms['ownerInfo'].elements[i].value.length == 0)
				{
					alert("You must provide your city!")
					return false
				}
			}		
			
		if (FormElement == "state") {
				if (document.forms['ownerInfo'].elements[i].selectedIndex == 0)
				{
					alert("You must select your state!");
					return false
				}
			}	
		if (FormElement == "zip") {
				if (document.forms['ownerInfo'].elements[i].value.length == 0)
				{
					alert("You must provide your zip code!")
					return false
				}
			}		
		if (FormElement == "contactphone") {
				if (document.forms['ownerInfo'].elements[i].value.length == 0)
				{
					alert("You must provide your contact phone number!")
					return false
				}
			}
			
			
	
	}
	return true	

}

//-->
