// clear form 
 function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
} 

// rolls
function homeOn() {if (document.images) document.n2.src= '/wnet/secrets/images/topnav_on_02.png';}
function homeOff() {if (document.images) document.n2.src= '/wnet/secrets/images/topnav_off_02.png';}

function schedOn() {if (document.images) document.n3.src= '/wnet/secrets/images/topnav_on_03.png';}
function schedOff() {if (document.images) document.n3.src= '/wnet/secrets/images/topnav_off_03.png';}

function aboutOn() {if (document.images) document.n4.src= '/wnet/secrets/images/topnav_on_04.png';}
function aboutOff() {if (document.images) document.n4.src= '/wnet/secrets/images/topnav_off_04.png';}

function eduOn() {if (document.images) document.n5.src= '/wnet/secrets/images/topnav_on_05.png';}
function eduOff() {if (document.images) document.n5.src= '/wnet/secrets/images/topnav_off_05.png';}

function feedbackOn() {if (document.images) document.n6.src= '/wnet/secrets/images/topnav_on_06.png';}
function feedbackOff() {if (document.images) document.n6.src= '/wnet/secrets/images/topnav_off_06.png';}

// email this page
var fileName = document.URL;
escapedFileName = escape(fileName);
function email()
{
var popurl="/wnet/secrets/toolbox/email_this.php?"+escapedFileName;
winpops=window.open(popurl,"","width=470,height=360");
}   

function openWindow(url, w, h) {
    var options = "width=" + w + ",height=" + h + ",";
    options += "resizable=yes,scrollbars=yes,status=yes,";
    options += "menubar=no,toolbar=no,location=no,directories=no";
    var newWin = window.open(url, 'newWin', options);
    newWin.focus();
}
// check email friend form
function ValidateForm()
{
	if(document.mailer.yname.value=="")
	{
		alert ("Please enter your name.")
		return false
	}
	
	if(document.mailer.yemail.value=="")
	{
		alert ("Please enter your email address.")
		return false
	}
	
	if(document.mailer.fname.value=="")
	{
		alert ("Please enter your friend's name.")
		return false
	}
	
	if(document.mailer.femail.value=="")
	{
		alert ("Please enter your friend's email address.")
		return false
	}
	
}
