function openWin2(url, width, height, opt1, opt2){
	if(opt1==null||opt2==null){opt1=0;opt2=1;}
	var win;
	var windowName;
	var params;
	windowName="btns";
	params="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+opt1+",resizable="+opt2+",top=50,left=50,width="+width+",height="+height;
	win=window.open(url, windowName, params);
}
function openWin(url, width, height){
	openWin2(url,width,height,1,1)
}
function OpenWindow( url, width, height, options, name ) {
	 if ( ! width ) width = 640;
	 if ( ! height ) height = 420;
	 if ( ! options ) options = "scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes";
	 if ( ! name ) name = "outsideSiteWindow";

	 var newWin = window.open( url, name, "width=" + width + ",height=" + height + "," + options );
}
