ns4 =(navigator.appName =="Netscape"&&parseInt(navigator.appVersion)==4);ns5 =(navigator.appName =="Netscape"&&parseInt(navigator.appVersion)>=5);ie4 =(navigator.appName =="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)>=4);ie5 =(navigator.appVersion.indexOf('MSIE 5')>0);ie6 =(navigator.appVersion.indexOf('MSIE 6')>0);ElById =document.getElementById;function IsInObject(Obj,val){var a;for(a=0;a<Obj.length;a++)if(Obj[a]==val)return true;return false;}function WriteInElem(ID_Name,Text){if(ns4){var Layer =document.layers[ID_Name].document;Layer.write(Text);Layer.close();return;}if(ElById){document.getElementById(ID_Name).innerHTML =Text;return;}if(ie4){document.all(ID_Name).innerHTML =Text;return;}}function SetStatus(Text){if(ns4 ||ns5)window.statusbar=Text;if(ie4)window.status=Text;}function PopUp(Name,SizeX,SizeY,Location){TmpTxt="resizable=yes,scrollbars=yes,location=no,menubar=no,width="+SizeX+",height="+SizeY;window.open(Location,Name,TmpTxt);}function SetTrBgColor(Obj,zeColor){zeList=Obj.all.tags('TD');for(a=0;a<zeList.length;a++)zeList[a].style.background=zeColor;}function setCookie(name,value,expire,path){document.cookie =name +"="+escape(value)+((expire ==null)?"":("; expires="+expire.toGMTString()))+((path ==null)?"":("; path="+path));}function getCookie(Name){var search =Name +"=";if (document.cookie.length >0){offset =document.cookie.indexOf(search);if (offset !=-1){offset +=search.length;end =document.cookie.indexOf(";",offset);if (end ==-1)end =document.cookie.length;return unescape(document.cookie.substring(offset,end))}}}
