var Fox = navigator.userAgent.indexOf("Firefox") != -1;
var Safari = navigator.userAgent.indexOf("Safari") != -1;
var IE = navigator.userAgent.indexOf("MSIE") != -1;
var NN = navigator.userAgent.indexOf("Netscape") != -1;

function opwin(fWidth,fHeight,wUrl){
	var wObj;
	wWidth = fWidth;
	wHeight = fHeight;
	scWidthCenter = screen.availWidth / 2;
	scHeightCenter = screen.availHeight / 2;
	wOption = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=" + wWidth + ",height=" + wHeight + ",left=" + (scWidthCenter - (wWidth / 2)) + ",top=" + (scHeightCenter - (wHeight / 2));
	sWinName = "newWin";
	wObj = window.open(wUrl,sWinName,wOption);
	if(navigator.appVersion.indexOf("Mac") > -1){
		if(NN){
			wWidth = fWidth;
			wHeight = fHeight+1;
		}else if(Fox){
			wWidth = fWidth;
			wHeight = fHeight+1;
		}else if(Safari){
			wWidth = fWidth;
			wHeight = fHeight+3;
		}
	} else{
		if(NN){
			wWidth = fWidth+5;
			wHeight = fHeight+20;
		}else if(Fox){
			wWidth = fWidth+8;
			wHeight = fHeight+67;
		}else if(IE){
			wWidth = fWidth+8;
			wHeight = fHeight+48;
		}
	}
	wObj.resizeTo(wWidth,wHeight);
	wObj.focus();
}