/**function showChooseWindow(url,args){ 
 	 var dialogWidth = 800;
	 var dialogHeight = 620;
	 var dialogLeft = (window.screen.dialogWidth - dialogWidth)/2;
	 var dialogTop = 60; 
	 var feature = "dialogLeft="+ dialogLeft +"px;dialogTop="+ dialogTop +"px;center=yes;help=yes;resizable=yes;status=no;scroll=yes;dialogWidth="+ dialogWidth +"px;dialogHeight="+ dialogHeight+"px;"
	 var returnValue = window.showModalDialog(url,args,feature);
	 return returnValue;
}*/

function showChooseWindow(url,args,width,height){
	 if(width==null){
		width = 800; 
	 }
	 if(height==null){
		height = 620; 
	 }
	 var dialogWidth = width;
	 var dialogHeight = height;
	 var dialogLeft = (window.screen.dialogWidth - dialogWidth)/2;
	 var dialogTop = 60; //dialogLeft="+ dialogLeft +"px;dialogTop="+ dialogTop +"px;
	 var feature = "center=yes;help=no;resizable=yes;status=no;scroll=no;dialogWidth="+ dialogWidth +"px;dialogHeight="+ dialogHeight+"px;"
	 var returnValue = window.showModalDialog(url,args,feature);
	 return returnValue;
}

function showNullWindow(url,args,width,height){
	 if(width==null){
		width = 0; 
	 }
	 if(height==null){
		height = 0; 
	 }
	 var dialogWidth = width;
	 var dialogHeight = height;
	 var dialogLeft = 0;
	 var dialogTop = 0; 
	 var feature = "dialogLeft="+ dialogLeft +"px;dialogTop="+ dialogTop +"px;center=no;help=no;resizable=no;status=no;scroll=no;visible=no;dialogWidth="+ dialogWidth +"px;dialogHeight="+ dialogHeight+"px;"
	 var returnValue = window.showModalDialog(url,args,feature);
	 return returnValue;
}


 //(window.screen.dialogHeight - dialogHeight)/2
	// center: {yes | no | 1 | 0 }：窗口是否居中，默认yes，但仍可以指定高度和宽度。
 　//　help: {yes | no | 1 | 0 }：是否显示帮助按钮，默认yes。
 　//　resizable: {yes | no | 1 | 0 } ［ＩＥ５＋］：是否可被改变大小。默认no。
 //　　status: {yes | no | 1 | 0 } ［IE5+］：是否显示状态栏。默认为yes[ Modeless]或no[Modal]。
 // scroll:{ yes | no | 1 | 0 | on | off }：指明对话框是否显示滚动条。默认为yes。
