function formValidator(field)
{
	var str,i,c;
	
	if (field.Email.value == "")	
	{
    	alert("Please enter a valid e-mail address");
    	field.Email.focus();
	   	return false;
  	}
	if (field.Email.value != "")  /* check for a valid e-mail address format */
	{
		str = field.Email.value
		var filter=/^.+@.+\..{2,3}$/
		
		if (filter.test(str))
			;
		else
		{
			alert("Invalid e-mail address!");
			field.Email.focus();
			return false;
		}
	}
	if (field.FirstName.value == "")
	{
		alert("Please enter your first name.");
		field.FirstName.focus();
		return false;
	}
	if (field.FirstName.value != "")			/* check for a valid first name format */
	{
		str = field.FirstName.value
		for(i = 0; i < str.length; i++) 
		{ 
			c = str.charAt(i);
			if ((c >= "A" && c <= "Z") || (c >= "a" && c <= "z") || (c == "'") || (c == " "))
				;
			else
			{
				alert("Invalid first name!");
				field.FirstName.focus();
				return false;
			}
		}
	}		
	if (field.LastName.value == "")
	{
		alert("Please enter your last name.");
		field.LastName.focus();
		return false;
	}
	if (field.LastName.value != "")			/* check for a valid last name format */
	{
		str = field.LastName.value
		for(i = 0; i < str.length; i++) 
		{ 
			c = str.charAt(i);
			if ((c >= "A" && c <= "Z") || (c >= "a" && c <= "z") || (c == "'") || (c == " "))
				;
			else
			{
				alert("Invalid last name!");
				field.LastName.focus();
				return false;
			}
		}
	}		
	if (field.City.value == "")
	{
		alert("Please enter the name of your City.");
		field.City.focus();
		return false;
	}
	if (field.City.value != "")			/* check for a valid city name format */
	{
		str = field.City.value
		for(i = 0; i < str.length; i++) 
		{ 
			c = str.charAt(i);
			if ((c >= "A" && c <= "Z") || (c >= "a" && c <= "z") || (c == "'") || (c == " "))
				;
			else
			{
				alert("Invalid city name!");
				field.City.focus();
				return false;
			}
		}
	}		
	if (field.STATE.value == "Select One")
	{
		alert("Please select your state.");
		field.STATE.focus();
		return false;
	}
	if (field.Zip.value == "")	
  	{
    	alert("Please enter your Zip Code.");
    	field.Zip.focus();
    	return false;
  	}
  	if (field.Zip.value != "")		/* check for a valid zip code format */
  	{
  		str = field.Zip.value
  		for(i = 0; i < str.length; i++)
  		{
  			c = str.charAt(i);
  			if((c >= "0" && c <= "9") || (c == "-") || (c == " "))
  				;
  			else
  			{
				alert("Invalid ZipCode!");
				field.Zip.focus();
				return false;
			}
  		}
  	}
  	if (field.sex.value == "Please select one .....")
	{
		alert("Please select your Sex.");
		field.sex.focus();
		return false;
	}
	if (field.age.value == "Select an age group ......")
	{
		alert("Please select your age group.");
		field.age.focus();
		return false;
	}
	if (field.remarks.value == "")
	{
		alert("Please enter your remarks.");
		field.remarks.focus();
		return false;
	}
	return true;
}