<!-- Begin

/*----------------------------------------------------------------------------------------
|	FOIL REQUEST VALIDATION SCRIPT						  |
-------------------------------------------------------------------------------------------*/ 

function address(){
	document.write("<input type='hidden' value='&#102;&#111;&#105;&#108;&#64;&#99;&#105;&#116;&#121;&#111;&#102;&#101;&#108;&#109;&#105;&#114;&#97;&#46;&#110;&#101;&#116;' name='to'>");
	document.write("<input type='hidden' value='FOIL' name='toname'>");
}

function submitButton(){
	document.write("<input type='submit' value='Submit FOIL Request'>")
}

function validateFOIL(theForm){
	
	email1=theForm.email.value;
	email2=theForm.emailverify.value;
	if (email1 == ""){
		alert("You must include your email address to submit an electronic FOIL Request.");
		theForm.email.focus();
		return (false);
	}
	temp=email1.indexOf('@',0);
	if (temp<0){
		alert("There is a problem with your email address.  Please retype it.");
		theForm.email.focus();
		return (false);
	}
	if(email1!=email2){
		alert("The email address and the confirmed email address do not match.  Please type your email address again to ensure accuracy");
		theForm.email.focus();
		return (false);

	}

	request=theForm.request.value;
	if (request == ""){
		alert("You must make a specific request for records to submit an electronic FOIL Request.");
		theForm.request.focus();
		return (false);
	}

	subject=theForm.subject.value;
	if (subject == ""){
		alert("Please type a short subject for your FOIL Request.");
		theForm.subject.focus();
		return (false);
	}

	name1=theForm.name.value;
	if (name1 == ""){
		alert("You must include your name to submit an electronic FOIL Request.");
		theForm.name.focus();
		return (false);
	}

	add=theForm.add1.value;
	if (add == ""){
		alert("You must include your address to submit an electronic FOIL Request.");
		theForm.add1.focus();
		return (false);
	}

	format=theForm.format.value;
	if (format == ""){
		alert("Please select a preferred format to submit an electronic FOIL Request.");
		theForm.format.focus();
		return (false);
	}

	disclaimer=theForm.disclaimer.value;
	if (disclaimer == ""){
		alert("You must agree to the conditions to submit an electronic FOIL Request.");
		theForm.disclaimer.focus();
		return (false);
	}
	return (true);
}






















// -->