function openModalDialog2(servletpath,url,width,height){
	if (servletpath!=""){
		url = servletpath +"/"+ url;
	}
	url = encodeURIComponent(url);
	return window.showModalDialog(servletpath+"/dialog-blank.jsp?p="+url, '', 'dialogWidth:'+width+'px;dialogHeight:'+height+'px;dialogTop:scree.height/2-60;dialogLeft:scree.width/2-150;status:no;resizable=no');
}
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');
}
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);
}



