<!--
var ie, nn
if (navigator.appName == "Microsoft Internet Explorer"){
  ie = true
} else{
  nn = true
}

//ie = document.all?1:0
//ns4 = document.layers?1:0

function lostfocus(E){
E.className = "";	
E.value = trim(E.value);
}

function gotfocus(E){
//alert(E);
E.className = "GD";
	if (E.type != 'select-one'){
		E.select();
	}
}


function fieldfocus(){
   if (ie){
   window.event.srcElement.style.backgroundColor = "yellow";   
   window.event.srcElement.select();
   }
}

function fieldblur(){
   if (ie){   
   window.event.srcElement.style.backgroundColor = "white";
   }
   }
   
function buttonin(){
   if (ie){
   //window.event.srcElement.style.borderBottom = "inset";
   //window.event.srcElement.style.borderRight = "inset";
   //window.event.srcElement.style.borderLeft = "inset";
   //window.event.srcElement.style.borderTop = "inset";
   window.event.srcElement.style.cursor = "hand";
   window.event.srcElement.style.color = "red";
   window.status = window.event.srcElement.title;
}   
}

function buttonout(){
   if (ie){
   //window.event.srcElement.style.borderBottom = "outset";
   //window.event.srcElement.style.borderRight = "outset";
   //window.event.srcElement.style.borderLeft = "outset";
   //window.event.srcElement.style.borderTop = "outset";
   window.event.srcElement.style.cursor = "";
   window.event.srcElement.style.color = "black";
   window.status = "";
}
}

function unload_nologoff() {
	if (document.title != "CourtNet"){
		window.open('name_ssn.asp','NoLogoff','RESIZABLE=NO,SCROLLBAR=YES,WIDTH=600,HEIGHT=350');
		}
}

function enter_submit_form(form) {
	var key_press = (window.event) ? window.event.keyCode : window.event.which // String.fromCharCode(whichCode); // window.event.keyCode;
	if (key_press == "13"){
		if (form != 'undefinded'){
			form.submit();
			}
		}
}

function trim(str) {
  while (str.charAt(str.length - 1)==" ")
    str = str.substring(0, str.length - 1);
  while (str.charAt(0)==" ")
    str = str.substring(1, str.length);
  return str;
}

//-->