
function WinOpen(f,h,w) {
// Open new window routine
//
//							f = file name
//              			h = window height
//							w = window width
//
//
// Open the window
//

		var load = window.open(f,"_blank","height="+h+",width="+w+", scrollbars=yes, resizable=yes");
}


function validate_required(field,alerttxt)
	{
	with (field)
	{
	if (value==null||value=="")
	  {alert(alerttxt);return false}
	else {return true}
	}
	}

	function validate_form(thisform)
	{
	with (thisform)
	{
	if (validate_required(nm,"Please enter your name")==false)
	  {nm.focus();return false}
	}
}

function setFormFocus()	{
	document.forms[0].q.focus();
}

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}

function onLoadEvents()	{
	externalLinks();
	setFormFocus();
}

window.onload = onLoadEvents;



