function openWin(url, width, height, sb){
	w = parseInt(width);
	h = parseInt(height);
	NS = navigator.appName.charAt(0) == "N";
	MAC = navigator.userAgent.toUpperCase().indexOf("MAC")>=0;
	WIN = navigator.userAgent.toUpperCase().indexOf("WIN")>=0;
	
	if (MAC && !NS) { w += 0; h += 0; }
	if (WIN && !NS) { w += 0; h += 0; }
	if (MAC && NS) { w += 0; h += 0; }
	if (WIN && NS) { w += 0; h += 0; }
	if (!MAC && !WIN && NS) { w += 0; h += 0; }
	
	features = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + sb + ",resizable=no,width=" + w + ",height=" + h;
	window.open(url, "_blank", features);
}