//----------------------------------------
// FUNCTION: popUpWindow()
// PURPOSE : opens a new window
// PARAMS  :
//----------------------------------------
function popUpWindow(winUrl, winName, winHeight, winWidth, winLeft, winTop, winScroll, winResize) {        

    var browserName, browserVer;
    var winFeatures;

    browserName = navigator.appName;
	browserVer = parseFloat(navigator.appVersion);

    winFeatures = 'height=' + winHeight + ',width=' + winWidth + ',left=' + winLeft + ',top=' + winTop + ',screenX=' + winLeft + ',screenY=' + winTop + ',scrollbars=' + winScroll + ',resizable=' + winResize + ',status=no,toolbar=no';

    newWindow = window.open(winUrl, winName, winFeatures);

	// Macs 
	if (navigator.appVersion.indexOf("Mac") != -1) {
		if (browserName == "Netscape" && browserVer >= 4.01)	{
            newWindow.focus(); 
		}
	}	 
	// PCs
	else if (browserName == "Microsoft Internet Explorer" && browserVer <= 4) {
		// IE 3,4 
		newWindow.focus();
	}	
	else if (browserName == "Netscape" && browserVer < 4.01) {
		// Netscape 3 
		newWindow.focus(); 
		newWindow.refer = self;
	}
	else {
		// Netscape 4.0+, IE 5
		newWindow.opener = window;
		newWindow.focus();
	}

	return ;        
}