if (navigator.appName=="Microsoft Internet Explorer") {isIE=true} else {isIE=false}

//function OverlibOnLoadSys() {return}
function OverlibOnMouseMoveSys(e) {return}	//for calendar use
function OverlibOnLoad(e) {return}					// use this function to add onload commands (add this line to asp file and replace "return" by required commands)
function OverlibOnLoadSys(e) {return}
onload=function(e){OverlibOnLoad(e); OverlibOnLoadSys(e);};

function pop(path,w,h){msgWindow=window.open(path,"",'toolbar=no,scrollbars=yes,resizable=no,width='+w+',height='+h);}
function openFull(url){msgWindow=window.open(url,"","toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=no,fullscreen=yes, width=100%, height=100%, top=0, left=0");}
function openLH(name){msgWindow=window.open("http://compex2.compexinc.com/lh/default.asp?project=4&name="+name,"","toolbar=no,scrollbars=no,resizable=no,width=400,height=300;")}
function clearDefault(el){el.value = ""}
function check_email(el){if (el.email.value.indexOf('@')<2 || el.email.value.indexOf('.')<1 || el.email.value.length<6) {alert('Your email address does not match the standard. Enter it again please!'); return false} else {return true}}
function check_email_address(el){if (el.indexOf('@')<2 || el.indexOf('.')<1 || el.length<6) {alert('Your email address does not match the standard. Enter it again please!'); return false} else {return true}}
function check_l(el)
{
	if (el.login.value=="") {alert("Please, enter your user name first!"); return false;}
	if (el.password.value=="") {alert("You have forgotten to enter your password, please do so!"); return false;}
}

function makeVisible(cur,which){if (isIE) {if (which==0) {cur.filters.alpha.opacity=100; cur.filters.gray.enabled=false;} else {cur.filters.alpha.opacity=30; cur.filters.gray.enabled=true;}}}
function makeVisible2(cur,which){if (isIE) {if (which==0) {cur.filters.alpha.opacity=100;} else {cur.filters.alpha.opacity=30;}}}
function cClass(item, cl){item.className=cl}

function MaxCharacters(obj, chars) {if (obj.value.length >= chars) {event.returnValue = false;}}	// use in onkeypress
function OnlyNumbers() {if ((event.keyCode <48) || (event.keyCode >57)) event.returnValue = false;}	// use in onkeypress