function openModalDialog(url,width,height) {

	return window.showModalDialog(url, '', 'dialogWidth:'+width+';dialogHeight:'+height+';dialogTop:scree.height/2-60;dialogLeft:scree.width/2-150;status:no;resizable=yes');

	var sWidth=new String(width);
	if (sWidth.indexOf("p")<0){
		sWidth+="pt";
	}
	var sHeight=new String(height);
	if (sHeight.indexOf("p")<0){
		sHeight+="pt";
	}
	var sFeatures="dialogHeight:"+sHeight;
	//sFeatures+=";dialogLeft:"+iXPos;
	//sFeatures+=";dialogTop:"+iYPos;
	sFeatures+=";dialogWidth:"+sWidth;
	sFeatures+=";center:yes";	//{ yes | no | 1 | 0 } The default is yes.
	sFeatures+=";help:no";		//{ yes | no | 1 | 0 } The default is yes.
	sFeatures+=";resizable:no";	//{ yes | no | 1 | 0 } The default is no.
	sFeatures+=";status:no";	//{ yes | no | 1 | 0 } The default is yes for untrusted and no for trusted dialog windows
	sWidth=null; 
	sHeight=null;
	var result=window.showModalDialog(url, '',sFeatures);
	return result;

}
function MM_openBrWindow(theURL,winName,features) {
  var ret = window.open(theURL,winName,features);
  if (ret==null)
  {
	alert("弹出窗口被拦截，请关闭您浏览器的弹出窗口拦截功能，或者将当前网站设置为可信站点。");
  }
}


function openModalDlgDefW(url){
	return 	openModalDialog(url,"350pt","300pt");
}

function openModalDlgDefH(url){
	return 	openModalDialog(url,"300pt","350pt");
}
function openModalDialogMap(url,width,height)
{return openModalDialog(url,width,height);
}


