var m_NN4 = document.layers?1:0
var m_IE4 = document.getElementById?0:1
var m_NS6 = (!m_IE4 && !(navigator.appVersion.indexOf("MSIE")>-1))?1:0

function light_on(fName,iName) {
if (navigator.appName != "Netscape" || m_NS6) {eval("document."+fName+".elements.item('"+iName+"').style.background = '#99ccff'"); return true;}
}

function light_off(fName,iName) {
 if (navigator.appName != "Netscape" || m_NS6) {
 	eval("if(document."+fName+".elements.item('"+iName+"').value=='')"+"document."+fName+".elements.item('"+iName+"').style.background = '#d0e0f0'");
 	eval("if(document."+fName+".elements.item('"+iName+"').value!='')"+"document."+fName+".elements.item('"+iName+"').style.background = '#FFFFFF'");
 }
}

function newWindow( url, w, h )
{
	if (!w) w = 470;
	if (!h) h = 320;
	var msgWindow = window.open (url, "popup", "height="+h+",width="+w+",status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=yes");
	if (msgWindow != null && msgWindow.opener == null) msgWindow.opener=window;
	if (navigator.appVersion.charAt(0) == 4) {msgWindow.focus();}
}

function newBookWindow( url )
{
	var msgWindow = window.open (url, "book_popup", "height=700,width=715,status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=yes");
	if (msgWindow != null && msgWindow.opener == null) msgWindow.opener=window;
	if (navigator.appVersion.charAt(0) == 4) {msgWindow.focus();}
}

