﻿var toolwin
	function openToolWindow(which, width, height) {
		which = which.replace("#","%23")
		if (!toolwin || toolwin.closed) {
			if (navigator.appVersion.charAt(0) == "3") {
			xStr = "width=" + width + ",height=" + height;
			} else {
			xStr = "top=0,width=" + width + ",height=" + height;
			}
		toolwin=window.open(which,"toolwin",xStr);
		} else {
	    toolwin.location = which;
	    toolwin.focus();
		}
	}
	
	
function popupWindow(url, w, h, scroll){
	window.open(url, "MyPage", "location=1, width="+w+"px, height="+h+"px, scrollbars="+scroll);
	}



var newwindow;
function MM_openWindow(url)
{
	newwindow=window.open(url,'newWindow','height=545,width=747,scrollbars=yes,resizable=no,location=no,status=no,menubar=no,copyhistory=no,toolbar=no,directories=no');
	if (window.focus) {newwindow.focus()}
}
