function popup(filename, page, width, height, scrollbars) {
	
	var newWin = window.open(filename, page, 'width=' + width + ',height=' + height + ',filebars=0,scrollbars=' + scrollbars + ',resizable=0' );

} //end of function popupExtra
					

function outputVideo() {

	var temp = "";
	temp += '<object id="MediaPlayer" width="450" height="350" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject">';
	temp += '<param name="FileName" value="global/images/2007_SOH.wmv">';
	temp += '<param name="autostart" value="true">' + '<param name="ShowControls" value="true">';
	temp += '<param name="ShowStatusBar" value="false">' + '<param name="ShowDisplay" value="false">';
	temp += '<embed type="application/x-mplayer2" src="global/images/2007_SOH.wmv" name="MediaPlayer" width="450" height="350" showcontrols="1" showstatusbar="0" showdisplay="0" autostart="1"> </embed>';
	temp += '</object>';
	
	document.write(temp);
}

function checkForm(form, current, old) {

	if (form.fname.value =="")	{
	   alert("Please enter your name.\n");
	   form.fname.focus();
	   return false;
	}
	
	if (!checkEmail(form.email.value)) {
		form.email.focus();
		return false;
	}
	
	showThankYou(current, old);
	return true;
}


function checkEmail(email){
	if (email == "") {
		alert("Please enter your email address.\n");
		return false;
	}
	
	if ((email.indexOf("@") + "" == "-1" || email.indexOf(".") + "" == "-1") &&
        email != ""){
	   alert("Please enter a valid email address.\n");
	   return false;
	}
	
	return true;	
 }

 
function showThankYou(current, old) {			
	if (document.getElementById) {
		document.getElementById(current).style.display = "block";
		document.getElementById(old).style.display = "none";				
	}
}	