<!-- Script for site Navigation use in IE -->
sfHover = function() {
	var sfEls = document.getElementById("mainnavigation").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (document.all&&document.getElementById) window.onload=sfHover;
//if (window.attachEvent) { window.attachEvent("onload", sfHover); }
<!-- end nav script -->

<!-- opens new browser window -->
<!-- video -->
function video(theURL) { //v2.0
  window.open(theURL,'video','toolbar=no,location=no,status=no,menubar=no,width=640,resize=yes,height=500');
}
<!-- video -->
<!-- pdf -->
function pdf(theURL) { //v2.0
  window.open(theURL,'pdf','toolbar=no,location=no,status=yes,menubar=no,width=800,resize=yes,height=600');
}
<!-- pdf -->
<!-- message confirmation -->
function message(theURL) { //v2.0
  window.open(theURL,'message','toolbar=no,location=no,status=yes,menubar=no,width=350,resize=yes,height=500');
}
<!-- message confirmation -->
<!-- end new browser window for video -->

<!-- change the class of an object -->
function change(id, newClass) {
identity=document.getElementById(id);
identity.className=newClass;
}
<!-- End change class of an object -->

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function flvFTFO1(){//v1.11
// Copyright 2003, Marja Ribbers-de Vroed, FlevOOware (www.flevooware.nl/dreamweaver/)
if (!document.layers){var v1=arguments,v2=MM_findObj(v1[0]),v3,v4,v5,v6,v7,v8,v9,v10;if (v2){for (v3=1;v3<v1.length;v3++){v6=v1[v3].split(",");v7=v6[0];v8=v6[1];v10=false;for (v4=0;v4<v2.length;v4++){v5=v2[v4];if (v5.id==v7||v5.name==v7){v10=true;break;}}if (!v10){v5=MM_findObj(v7);v10=(!v5)?false:true;}if (v10){if (v8=="t"){v5.disabled=!v5.disabled;}else {v9=(v8=="e")?false:true;v5.disabled=v9;}}}}}}

<!-- date picker -->
function datePicker(doWhat, id, thisDate) { //v2.0
	var pickerWin
	if (doWhat!='open'){ } else {
  	pickerWin = window.open('/php/manager/include/datePicker.php?sw='+id,'datePicker','toolbar=no,location=no,status=yes,menubar=no,width=400,resize=yes,height=175,left=50%,top=50%');
	}
	if (doWhat!='update'){ } else {
		opener.document.getElementById(id).value = thisDate;
		pickerWin = window.close('datePicker');
	}
}
<!-- date picker -->
<!-- change the class of multiple objects -->
function changeMultiple(id, newClass) {
	for (e=1; e<=id; e++) {
		document.getElementById(e).className= newClass;
	}
}
<!-- change the class of multiple objects -->
<!-- enable/disable a form field -->
function enableDisable(doWhat, whichField) {
	var doThis
	if (doWhat == 'enable') { doThis = false; }
	if (doWhat == 'disable') { doThis = true; }
	document.getElementById(whichField).disabled=doThis;
}
<!-- enable/disable a form field -->

/***********************************************
* Disable "Enter" key in Form script- By Nurul Fadilah(nurul@REMOVETHISvolmedia.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
                
function handleEnter (field, event) {
		var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
		if (keyCode == 13) {
			var i;
			for (i = 0; i < field.form.elements.length; i++)
				if (field == field.form.elements[i])
					break;
			i = (i + 1) % field.form.elements.length;
			field.form.elements[i].focus();
			return false;
		} 
		else
		return true;
	}      
<!-- End disable enter -->