	function validate_email(field,alerttxt)
	{
		with (field)
		{
			apos=value.indexOf("@");
			dotpos=value.lastIndexOf(".");

			if (apos<1||dotpos-apos<2||value.match("text2re.com"))
			{
				field.focus();
				return alerttxt + "\n";
			}
			else
			{
				return "";
			}
		}
	}


	function validate_required(field,alerttxt)
	{
		with (field)
		{
			if (value==null||value=="")
			{
				field.focus();
				return alerttxt + "\n";
			}
			else
			{
				return "";
			}
		}
	}

	function validate_form(thisform)
	{
		with (thisform)
		{

			var output = "";
			
			
			output = validate_required(Your_Story,"Your Story must be filled out.") + output;
			output = validate_required(Contact_Phone,"Contact Phone must be filled out.") + output;
			output = validate_email(Contact_Email_Address,"Email must be a valid Email Address.") + output;
			output = validate_required(Contact_Email_Address,"Email must be filled out.") + output;
			output = validate_required(Last_Name,"Last Name must be filled out.") + output;
			output = validate_required(First_Name,"First Name must be filled out.") + output;
			

			if (output != "")
			{
				alert(output);
				return false;
			}

		}
	}

