var javascript_version = 1.0;
javascript_version = 1.1;

newWin=null;
function detailWin(detailName,winName){
	if (navigator.userAgent.indexOf("Mac",1) <1) {
	//for not macs
		if ((newWin==null) || (newWin.closed)) {
			win=window.open(detailName,winName,"toolbars=1,height=550,width=770,scrollbars=1,resizable=1,screenx=000,screeny=100,dependent=yes");
		} 
		else {
			newWin.close();
			newWin=null;
			newWin=window.open(detailName,winName,"toolbars=1,height=550,width=770,scrollbars=1,resizable=1,screenx=000,screeny=100,dependent=yes");
		}
	}
	else {
		//for macs
		//for netscape
		if (navigator.appName=="Netscape") {
			if ((newWin==null) || (newWin.closed)) {
				newWin=window.open(detailName,winName,"height=550,width=770,scrollbars=1,resizable=1,screenx=100,screeny=100,dependent=yes");
			} 
			else {
				newWin.close();
				newWin=null;
				newWin=window.open(detailName,winName,"height=550,width=770,scrollbars=1,resizable=1,screenx=100,screeny=100,dependent=yes");
			}
		}
		else {
			newWin=window.open(detailName,winName,"height=550,width=770,scrollbars=1,resizable=1,screenx=100,screeny=100,dependent=yes");
		}
	}
};


var newwin;
function launchwin(winurl,winname,winfeatures)
{
	//This launches a new window and then
	//focuses it if window.focus() is supported.
	newwin = window.open(winurl,winname,winfeatures);
	if(javascript_version > 1.0) {
		//delay a bit here because IE4 encounters errors
		//when trying to focus a recently opened window
		setTimeout('newwin.focus();',250);
	}
};

