<script language=javascript >

function cookieCutter(){
var cook = document.cookie; 
var bitflag=0;
var semiarray = cook.split(";"); 

if (semiarray.length ==1){// just parse the equal signs

	var eqarray = cook.split("=")
	for(j=0;j<eqarray.length;j++){
		if (eqarray[j]=="superusr"){
		   bitflag=1; 
		break
		}		
	}
}


else{ // parse new array with equal signs
	for(i=0;i<semiarray.length;i++){
	   eqarray = semiarray[i].split("="); 
	   for(c=0;c<eqarray.length;c++){
		   if (eqarray[c]=="superusr"){
		   	bitflag=1; 
   		   break
		   }
		}
	}
}
if ((bitflag !=1||isNaN(bitflag))){
	alert("I'm sorry, but your password is incorrect, or your session timed out.\n You will be forwarded to the login page. ")
	window.location.href = "optlogin.htm"; 
}

}// end of cookieCutter
cookieCutter()
</script >