function checkForm(){		var x=0; 	var errorStatus =""; 	var elementCount = document.form.elements.length;	for (x=0; x<elementCount; x++) { 				var tempField =document.form.elements[x].name;		var tempValue = document.form[tempField].value;		var altVal = document.form.elements[x].getAttribute("error");				if(altVal){			if( (!tempValue) || (tempValue=="NULL") || (tempValue=="null")){				errorStatus += altVal+"<br>";			}		}	}		if(errorStatus){		scrollTo(0,0);		 document.getElementById('formErrors').innerHTML =errorStatus;		 setIdProperty('formErrors','display','block')		 return false;		 	}else{			 return true;	}	}function nav_jump(targ,selObj,restore){ if(selObj.options[selObj.selectedIndex].value != "null"){ 	 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); 	 if (restore) selObj.selectedIndex=0;  }else{  selObj.selectedIndex=0;  }}function deleteItem(path,message) {        if (confirm(message)) {            top.location.href =  path;        }}function setIdProperty(id,property,value) {		var styleObject = document.getElementById( id );		if (styleObject != null) {			styleObject = styleObject.style;			styleObject[ property ] = value;		}}/* where id is id of DIVand value is (none OR block)*/function toggleFormHelp(id,value,nameField) {		// if displaying then clear the text property too		if(value=="block"){						document.form[nameField].value="";		}		setIdProperty(id,"display",value);}function toggleDiv(id,value,id2) {	var value2;	if(value=="none"){		value2 ="block";	}else{		value2 ="none";	}	setIdProperty(id,"display",value);	setIdProperty(id2,"display",value2);}function refreshActive(theName){		var checkBox = document.getElementById(theName);				if(document.forms[0][theName].checked){			toggleDiv(theName +"_1","block",theName +"_0");		}else{			toggleDiv(theName +"_1","none",theName +"_0");		}} function disableEnterKey(e) {      var key;      if(window.event)           key = window.event.keyCode;     //IE      else           key = e.which;     //firefox      if( (key==13) || (key==3)) 			           return false; 			      else           r }function move(fbox, tbox) {	var arrFbox = new Array();	var arrTbox = new Array();	var arrLookup = new Array();	var i;	for(i=0; i<tbox.options.length; i++) {		arrLookup[tbox.options[i].text] = tbox.options[i].value;		arrTbox[i] = tbox.options[i].text;	}	var fLength = 0;	var tLength = arrTbox.length	for(i=0; i<fbox.options.length; i++) {		arrLookup[fbox.options[i].text] = fbox.options[i].value;		if(fbox.options[i].selected && fbox.options[i].value != "") {			arrTbox[tLength] = fbox.options[i].text;			tLength++;		} else {			arrFbox[fLength] = fbox.options[i].text;			fLength++;		}	}	arrFbox.sort();	arrTbox.sort();	fbox.length = 0;	tbox.length = 0;	var c;	for(c=0; c<arrFbox.length; c++) {		var no = new Option();		no.value = arrLookup[arrFbox[c]];		no.text = arrFbox[c];		fbox[c] = no;	}	for(c=0; c<arrTbox.length; c++) {		var no = new Option();		no.value = arrLookup[arrTbox[c]];		no.text = arrTbox[c];		tbox[c] = no;	}}function openPop(url,name,popW,popH) {        version = navigator.appVersion;	var w = 800, h = 600;	if (document.all || document.layers) {		w = screen.availWidth;		h = screen.availHeight;	}	var leftPos = (w-popW)/2, topPos = (h-popH)/2;	window.open(url,name,'width=' + popW + ',height=' + popH + ',scrollbars=auto,toolbar=no,status=yes,resizable=no,top=' + topPos + ',left=' + leftPos);void(0);}