function checkIt(e)
{ 
  var charCode = (navigator.appName == "Netscape") ? e.which : e.keyCode;
  status = charCode;
  if (charCode == 13)
  {
    checkFields();
  }
  return true;
} 
function swapImg(name, ON_OFF, path, stat_txt){
	var suff = ""
	var type = ".gif";
		suff = ON_OFF ? "_h" : "";
	document.images[name].src = path + name + suff + type;
	window.status = stat_txt;
}

function NewWindow(mypage,myname,w,h){
if(navigator.userAgent.indexOf("MSIE")==-1)
{
	var winl =(screen.width)?(screen.width-w)/2:100;
	var wint =(screen.height)?(screen.height-h)/2:100;
	var settings ='height='+h+',';
	settings +='width='+w+',';
	settings +='height='+h+',';
	settings +='top='+wint+',';
	settings +='left='+winl+',';
	settings +='scrollbars=auto'+',';
	settings +='resizable=yes';
	win=window.open(mypage,myname,settings);
	win.focus();
}
else
{
	var winl =(screen.width)?(screen.width-w)/2:100;
	var wint =(screen.height)?(screen.height-h)/2:100;
	var settings ='height='+h+',';
	settings +='width='+w+',';
	settings +='height='+h+',';
	settings +='top='+wint+',';
	settings +='left='+winl+',';
	settings +='scrollbars=auto'+',';
	settings +='resizable=yes';
	win=window.open(mypage,myname,settings);
	win.focus();
}
}

