<!--
function submit_form()
{

	 // first name
	if (document.AdminForm.global_16.value.length == 0)
	{
		alert("Please enter your first name.");
		return false;
	}
	
	//  last name
	if (document.AdminForm.global_17.value.length == 0)
	{
		alert("Please enter your last name.");
		return false;
	}
	
	//  address
	if (document.AdminForm.global_18.value.length == 0)
	{
		alert("Please enter your address.");
		return false;
	}
	
	//  address2
	 // 19
	
	 // city
	if (document.AdminForm.global_20.value.length == 0)
	{
		alert("Please enter your city.");
		return false;
	}
	
	//  state
	if (document.AdminForm.global_21.value == '81')
	{
		alert("Please select your state.");
		return false;
	}
	
	//  zip
	if (document.AdminForm.global_22.value.length == 0)
	{
		alert("Please enter your zipcode.");
		return false;
	}
	
	// country
	if (document.AdminForm.global_23.value == '26')
	{
		alert("Please select your country.");
		return false;
	}
	

	//  begin email validation
	var vlength
	vlength = document.AdminForm.global_24.value.length-1
	if (document.AdminForm.global_24.value.length == 0)
	{
		alert("You must enter a valid email address.  Example:  name@freebabyoffers.com");
		return false;
	}
	
  	//  Check for a valid email address (Does it contain a "@" and ".")
  	if(document.AdminForm.global_24.value.indexOf('@', 0) == -1 || document.AdminForm.global_24.value.indexOf('.',0)==-1)
	{
		alert("You must enter a valid email address.  Example:  name@freebabyoffers.com");
		return false;
	}
	
 	//  Check for a valid email address ("@" or "." cannot be first character)
	if(document.AdminForm.global_24.value.charAt(0)=='@' || document.AdminForm.global_24.value.charAt(0)=='.')
	{
		alert("You must enter a valid email address.  Example:  name@freebabyoffers.com");
		return false;
	}
	
	//  Check for a valid email address ("@" or "." cannot be last character)
	if(document.AdminForm.global_24.value.charAt(vlength)=='@' || document.AdminForm.global_24.value.charAt(vlength)=='.')
	{
		alert("You must enter a valid email address.  Example:  name@freebabyoffers.com");
		return false;
	}
	
  	//  Check for a valid email address (Cannot have "@." or ".@")
	if(document.AdminForm.global_24.value.indexOf('@.')!=-1 || document.AdminForm.global_24.value.indexOf('.@')!=-1)
	{
		alert("You must enter a valid email address.  Example:  name@freebabyoffers.com");
		return false;
	}
	
	//  end email validation


	//  phone
	if (document.AdminForm.global_25_1.value.length == 0)
	{
		alert("Please enter your phone number.");
		return false;
	}
	if (document.AdminForm.global_25_2.value.length == 0)
	{
		alert("Please enter your phone number.");
		return false;
	}

	//  birthdate	
	if (document.AdminForm.global_27_1.value == '0')
	{
		alert("Please enter your birthdate.");
		return false;
	}
	if (document.AdminForm.global_27_2.value == '0')
	{
		alert("Please enter your birthdate.");
		return false;
	}
	if (document.AdminForm.global_27_3.value == '0')
	{
		alert("Please enter your birthdate.");
		return false;
	}

	//  gender
	if (document.AdminForm.global_91.value == '731')
	{
		alert("Please select your gender.");
		return false;
	}
	
	//  first child?
	var myOption;
	myOption = -1;
	for (i=document.AdminForm.global_70.length-1; i > -1; i--)
	{
		if (document.AdminForm.global_70[i].checked)
		{
			myOption = i; i = -1;
		}
	}
	if (myOption == -1)
	{
		alert("Please select if this is your first child.");
		return false;
	}
	

	// birthdate	
	if (document.AdminForm.global_63_1.value == '0')
	{
		alert("Please enter your baby's estimated due date of youngest child's birthdate.");
		return false;
	}
	if (document.AdminForm.global_63_2.value == '0')
	{
		alert("Please enter your baby's estimated due date of youngest child's birthdate.");
		return false;
	}
	if (document.AdminForm.global_63_3.value == '0')
	{
		alert("Please enter your baby's estimated due date of youngest child's birthdate.");
		return false;
	}

	//if (!document.AdminForm.i_agree_to_terms.checked) {
	//	alert("You must agree to the privacy policy.");
	//	return false;
	//}

	// did they select an offer?	
	var myOption2;
	myOption2 = -1;
	for (i=document.AdminForm.targetsystem_offer_id_list.length-1; i > -1; i--)
	{
		if (document.AdminForm.targetsystem_offer_id_list[i].checked)
		{
			myOption2 = i; i = -1;
		}
	}
	if (myOption2 == -1)
	{
		alert("Please select an offer you are interested in.");
		return false;
	}
	
	document.AdminForm.submit();
	return false;
}
//-->
