function check_form() {
	for (var i = 0; i < document.forms['freeInfo'].elements.length; i++) {
		var FormElement = document.forms['freeInfo'].elements[i].name
		 var j;
		 var radio_button_checked;
		 var radio_set;
		 
		
	 	if (FormElement == "name") {
				if (document.forms['freeInfo'].elements[i].value.length == 0)
				{
					alert("You must provide your name!")
					
					return false
				}
			}
		
		if (FormElement == "phone") {
				if (document.forms['freeInfo'].elements[i].value.length == 0)
				{
					alert("You must provide your phone number!")
					
					return false
				}
			}
			
			if (FormElement == "age") {
				if (document.forms['freeInfo'].elements[i].value.length == 0)
				{
					alert("You must provide your age!")
					
					return false
				}
			}
			
		if (FormElement == "address") {
				if (document.forms['freeInfo'].elements[i].value.length == 0)
				{
					alert("You must provide your address!")
					
					return false
				}
			}
		if (FormElement == "city") {
				if (document.forms['freeInfo'].elements[i].value.length == 0)
				{
					alert("You must provide your city!")
					
					return false
				}
			}	
			
		if (FormElement == "state") {
				if (document.forms['freeInfo'].elements[i].selectedIndex == 0)
				{
					alert("You must select a state!");
					return false
				}
			}
			
		if (FormElement == "claimtype") {
				if (document.forms['freeInfo'].elements[i].selectedIndex == 0)
				{
					alert("You must select your claim type!");
					return false
				}
			}	
			
		if (FormElement == "contact") {
				if (document.forms['freeInfo'].elements[i].selectedIndex == 0)
				{
					alert("You must select how you want to be contacted!");
					return false
				}
			}			
			
		if (FormElement == "zip") {
				if (document.forms['freeInfo'].elements[i].value.length < 5)
				{
					alert("You must provide your 5-digit zip code!")
					return false
				}
			}			
				
		if (FormElement =="email") {
				var vlength
    			  	vlength=document.forms['freeInfo'].elements[i].value.length-1
				if (document.forms['freeInfo'].elements[i].value.length == 0)
				{
					alert("You must enter a valid email address.  Example:  name@barrysalzman.com")
					return false
				}

				if (document.forms['freeInfo'].elements['email'].value != document.forms['freeInfo'].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['freeInfo'].elements[i].value.indexOf('@', 0) == -1 || document.forms['freeInfo'].elements[i].value.indexOf('.',0)==-1)
				{
					alert("You must enter a valid email address.  Example:  name@barrysalzman.com")
					return false
				}
 				// Check for a valid email address ("@" or "." cannot be first character)
				if(document.forms['freeInfo'].elements[i].value.charAt(0)=='@' || document.forms['freeInfo'].elements[i].value.charAt(0)=='.')
				{
					alert("You must enter a valid email address.  Example:  name@barrysalzman.com")
					return false
				}
				// Check for a valid email address ("@" or "." cannot be last character)
				if(document.forms['freeInfo'].elements[i].value.charAt(vlength)=='@' || document.forms['freeInfo'].elements[i].value.charAt(vlength)=='.')
				{
					alert("You must enter a valid email address.  Example:  name@barrysalzman.com")
					return false
				}
  				// Check for a valid email address (Cannot have "@." or ".@")
				if(document.forms['freeInfo'].elements[i].value.indexOf('@.')!=-1 || document.forms['freeInfo'].elements[i].value.indexOf('.@')!=-1)
				{
					alert("You must enter a valid email address.  Example:  name@barrysalzman.com")
					return false
				}
			
			}
			
		if (FormElement =="confEmail") {
				var vlength
    			  	vlength=document.forms['freeInfo'].elements[i].value.length-1
				if (document.forms['freeInfo'].elements[i].value.length == 0)
				{
					alert("You must enter a valid confirmation email address.  Example:  name@barrysalzman.com")
					return false
				}

 				// Check for a valid email address (Does it contain a "@" and ".")
  				if(document.forms['freeInfo'].elements[i].value.indexOf('@', 0) == -1 || document.forms['freeInfo'].elements[i].value.indexOf('.',0)==-1)
				{
					alert("You must enter a valid confirmation email address.  Example:  name@barrysalzman.com")
					return false
				}
 				// Check for a valid email address ("@" or "." cannot be first character)
				if(document.forms['freeInfo'].elements[i].value.charAt(0)=='@' || document.forms['freeInfo'].elements[i].value.charAt(0)=='.')
				{
					alert("You must enter a valid confirmation email address.  Example:  name@barrysalzman.com")
					return false
				}
				// Check for a valid email address ("@" or "." cannot be last character)
				if(document.forms['freeInfo'].elements[i].value.charAt(vlength)=='@' || document.forms['freeInfo'].elements[i].value.charAt(vlength)=='.')
				{
					alert("You must enter a valid confirmation email address.  Example:  name@barrysalzman.com")
					return false
				}
  				// Check for a valid email address (Cannot have "@." or ".@")
				if(document.forms['freeInfo'].elements[i].value.indexOf('@.')!=-1 || document.forms['freeInfo'].elements[i].value.indexOf('.@')!=-1)
				{
					alert("You must enter a valid confirmation email address.  Example:  name@barrysalzman.com")
					return false
				}
			
			}	
		}
		
	return true	

}
