// General, browser compatibility

// for the feedback forms
function validate1(url)
{
x=document.contactform;

fn=x.name1.value.length;
em=x.email1.value.length;
at=x.email1.value.indexOf("@")
dot=x.email1.value.indexOf(".")

if (fn<1)  
	{
	alert ("Please enter your name")
	x.name1.focus()
	return false
	}
else if (em<6)      
	{
	alert("Please check that you have entered a valid email address")
	x.email1.focus()
	return false
	}
else if (at == -1)
	{
	alert("Please check that you have entered a valid email address")
	x.email1.focus()
	return false
	}
else if (dot == -1)
	{
	alert("Please check that you have entered a valid email address")
	x.email1.focus()
	return false
	}
// this next section needs to call the ASP page that sends the email
else {
	x.method="post";
	x.action=url;
	x.submit();
	}
}