isNN4 = (navigator.appVersion.charAt(0)>=4 && 
		(navigator.appName).indexOf("Netscape") != -1);
isIE4 = (navigator.appVersion.charAt(0)>=4 &&
		(navigator.appVersion).indexOf("MSIE") != -1);

function preloadImage( base, imgs ) {
	for ( i = 0; i < imgs.length; i++ ) {
		document.pre=new Image;
		document.pre.src= base + imgs[i];
	}
}

function openWindow( form, winname, w, h ) {
	win=window.open( form, winname,
			"toolbar=No,location=no,directories=no,status=no,menubar=no," +
			"scrollbars=no,resizable=yes,width="+w+",height="+h);
//	win.focus();
}

msgfix1 = "<TABLE BGCOLOR=#ffffcc CELLSPACING=0 CELLPADDING=0 BORDER=1><TR><TD CLASS='inpD2'>";
msgfix2 = "</TD></TR></TABLE>";
function showTips(x,y,msg){
    if(isNN4==true){
		document.layers['tips'].document.write(msgfix1+msg+msgfix2);
		document.layers['tips'].document.close();
		document.layers['tips'].left =  x + 10;
		document.layers['tips'].top  =  y + 10;
		document.layers['tips'].visibility="show";
	}
	if(isIE4 == true){
		tips.innerHTML = msgfix1+msg+msgfix2;
		tips.style.left = x + 10;
		tips.style.top  = y + 10;
		tips.style.visibility = 'visible';
	}
}
function hideTips(){
    if(isNN4 == true){
		document.layers['tips'].visibility="hide";
	}
	if(isIE4 == true){
		tips.style.visibility = 'hidden';
	}
}

