// JavaScript Document
function GF_openWindow(surl,w,h,resFlag,scrollFlag){    
	hv=h;
	wv=w;
	if (w==0) wv=screen.availWidth;
	if (h==0) hv=screen.availHeight;
	lv=(screen.width-wv)/2+2;
	tv=(screen.height-hv)/2-10; 
		 
	 
	tmpres="";
	tmpscroll="";
	 
	if (resFlag==undefined) resFlag=1; //默认可以改变大小
	if (resFlag==1) tmpres="resizable=yes";
	else tmpres="resizable=no";
	 
	if (scrollFlag==undefined) scrollFlag=1;//默认可以滚动
	if (scrollFlag==1) tmpscroll="scrollbars=yes";
	else tmpscroll="scrollbars=no";
	 
	ty="toolbar=no,location=no,directories=no,status=yes,menubar=no,left="+lv+",top="+tv+",width="+wv+",height="+hv;
	ty=ty+","+tmpres+","+tmpscroll;
	 
	t=window.open(surl,"",ty);
}