<!--

//  Javascript Form Validator
//  copyright 2003, Rob Newman
//	Institute of Geophysics and Planetary Physics
//	Scripps Institute of Oceanography
//	University of California, San Diego
//	[e] rlnewman@ucsd.edu

//	Make sure that the form is named "sat_geo"
//	otherwise the DOM reference here will not work.

function valid(form)

{

var correct = true

if (document.sat_geo.Name.value == "") 
	{correct = false; alert("Please enter your name!")}

if (document.sat_geo.Email.value == "" || 
	document.sat_geo.Email.value.indexOf("@") == -1 || 
	document.sat_geo.Email.value.indexOf(".") == -1) 
	{correct = false; alert("Please enter a correctly formatted e-mail address")}

if (document.sat_geo.Subject.value == "") 
	{correct = false; alert("Please select a subject for the message.")}

if (document.sat_geo.Body.value == "") 
	{correct = false; alert("Please enter some text for the message.")}

if (correct){alert("Thank you for taking your time to fill out this form.")}

return correct

}

//-->
