
	var win = null;
	function NewWindow(mypage,myname,w,h,scroll){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings =
	'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable,status=yes'
	win = window.open(mypage,myname,settings);
	}	
	function OpenBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
	  if(window.screen)if(isCenter)if(isCenter=="true"){
		var myLeft = (screen.width-myWidth)/2;
		var myTop = (screen.height-myHeight)/2;
		features+=(features!='')?',':'';
		features+=',left='+myLeft+',top='+myTop;
	  }
	  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
	}
	function pop(name_info, path_info, width, height, scroll, resizable) {
	var str = "toolbar=1,location=1,directories=0,copyhistory=0,status=1";
	if (width != null) { str += ",width=" + width; }
	if (height != null) { str += ",height=" + height; }
	if (scroll != null) { str += ",scrollbars=" + scroll; }
	if (resizable != null) { str += ",resizable=" + resizable; }
	name_info = window.open(path_info, name_info, str);
	}