function popUp2(URL) {day = new Date();id = day.getTime();eval("page" + id + " = window.open(URL, '" + id + "','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=475,height=400');");}function popUp(URL,width,height) {day = new Date();id = day.getTime();eval("page" + id + " = window.open(URL, '" + id + "','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+width+",height="+height+"');");}function Is (){   // convert all characters to lowercase to simplify testing    var agt=navigator.userAgent.toLowerCase()    // *** BROWSER VERSION ***    this.major = parseInt(navigator.appVersion)    this.nav  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1)                && (agt.indexOf('compatible') == -1)))    this.nav4 = (this.nav && (this.major == 4))    this.nav4up = this.nav && (this.major >= 4)    this.ie   = (agt.indexOf("msie") != -1)    this.ie4  = (this.ie && (this.major == 4))    this.ie4up  = this.ie  && (this.major >= 4)}var is = new Is();function setUpHelp(){   maketheBalloon("noclip", 150, "Sorry, No Clip for this description");}function maketheBalloon(id, width, message){   var theString = '<STYLE TYPE="text/css">#'+id+'{width:'+width+';}</STYLE>';   theString+='<DIV CLASS="balloon" id="'+id+'">'+message+'</DIV>';   document.write(theString);}function makeItVisible(id, event){	if (is.nav4up) {		document.layers[id].left = event.pageX + 10;		document.layers[id].top = event.pageY + 5;;		document.layers[id].visibility="show";	}	else {		document.all[id].style.pixelLeft = (document.body.scrollLeft +event.clientX) + 10;		document.all[id].style.pixelTop = (document.body.scrollTop + event.clientY) + 5;		document.all[id].style.visibility="visible";	}		}function hideHelp(id){	is.nav4up ? document.layers[id].visibility="hide" : document.all[id].style.visibility="hidden";}function hidestat(string){	window.status=string;	return true;}//preloading images	homeon = new Image();	homeon.src = "images/home_ON.gif";	homeoff = new Image();	homeoff.src = "images/home_OFF.gif";	signupon = new Image();	signupon.src = "images/signup_ON.gif";	signupoff = new Image();	signupoff.src = "images/signup_OFF.gif";	teamon = new Image();	teamon.src = "images/team_ON.gif";	teamoff = new Image();	teamoff.src = "images/team_OFF.gif";	policyon = new Image();	policyon.src = "images/policy_ON.gif";	policyoff = new Image();	policyoff.src = "images/policy_OFF.gif";	genobson = new Image();	genobson.src = "images/genobs_ON.gif";	genobsoff = new Image();	genobsoff.src = "images/genobs_OFF.gif";	MSon = new Image();	MSon.src = "images/MS_ON.gif";	MSoff = new Image();	MSoff.src = "images/MS_OFF.gif";	CNon = new Image();	CNon.src = "images/CN_ON.gif";	CNoff = new Image();	CNoff.src = "images/CN_OFF.gif";	GSon = new Image();	GSon.src = "images/GS_ON.gif";	GSoff = new Image();	GSoff.src = "images/GS_OFF.gif";	MOTORon = new Image();	MOTORon.src = "images/MOTOR_ON.gif";	MOTORoff = new Image();	MOTORoff.src = "images/MOTOR_OFF.gif";	COORDon = new Image();	COORDon.src = "images/COORD_ON.gif";	COORDoff = new Image();	COORDoff.src = "images/COORD_OFF.gif";	SENSon = new Image();	SENSon.src = "images/SENS_ON.gif";	SENSoff = new Image();	SENSoff.src = "images/SENS_OFF.gif";	REFLon = new Image();	REFLon.src = "images/REFL_ON.gif";	REFLoff = new Image();	REFLoff.src = "images/REFL_OFF.gif";	SKULLon = new Image();	SKULLon.src = "images/SKULL_ON.gif";	SKULLoff = new Image();	SKULLoff.src = "images/SKULL_OFF.gif";	NEUROon = new Image();	NEUROon.src = "images/NEURO_ON.gif";	NEUROoff = new Image();	NEUROoff.src = "images/NEURO_OFF.gif";	blankon = new Image();	blankon.src = "images/BLANK_ON.gif";	blankoff = new Image();	blankoff.src = "images/BLANK_OFF.gif";function rollOn(iName,str) 	{	window.status=str	if (document.images) 		{		document[iName].src = eval(iName + "on.src");		}	return true;	}function rollOff(iName) 	{	window.status=''	if (document.images) 		{		document[iName].src = eval(iName + "off.src");		}	return true;	}function rolltitleOn(iName) 	{	if (document.images) 		{		document[iName].src = eval(iName + "titleon.src");		}	}function rolltitleOff(iName) 	{	if (document.images) 		{		document[iName].src = eval(iName + "titleoff.src");		}	}function ShowHide( ref, no){   var color='aa0000';   var temp;   for (var i = 1; i <= no; i++) {   	temp = 'Structure'+i;     eval(temp).style.display ='none';	}	   eval(ref).style.display ='';}function ShowHide2( ref,no ){    var color='aa0000';	var temp;     	if (eval(ref).style.display =='none')   	{	   for (var i = 1; i <= no; i++) {   	 		temp = 'Structure'+i;	        eval(temp).style.display ='none';		}	      eval(ref).style.display ='';   }   else   {   	   for (var i = 1; i <= no; i++) {   	 		temp = 'Structure'+i;	        eval(temp).style.display ='none';		}   }   }function checkequalpwd(){	if ((document.pwdchange.newpwd.value=="")||(document.pwdchange.rnewpwd.value=="")||(document.pwdchange.opwd.value==""))	{		alert("Passwords should not be empty");		return false;	}	if (document.pwdchange.newpwd.value==document.pwdchange.rnewpwd.value)	{		return true;	}	else	{		alert("Your new passwords doesnot match each oher");		return false;	}}function checklogin(){	if ((document.signin.username.value=="")||(document.signin.password.value==""))	{		alert("Login details should not be empty");		return false;	}	return true;}function checksearch(){	if ((document.srch.searchtext.value==""))	{		alert("Please type in search word");		return false;	}	return true;}