<!--
function submit_form()
{

	// 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@planningfamily.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@planningfamily.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@planningfamily.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@planningfamily.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@planningfamily.com");
		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;
	}


	// 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;
}
//-->
