function MM_openBrWindow(strURL, winName, intWidth, intHeight,strFeatures,blnCenter) {
  if(blnCenter==null) blnCenter=true;
  if(strFeatures==null) strFeatures="";
  if(blnCenter){
	  left1 = Math.floor( (screen.width - intWidth) / 2);
	  top1 = Math.floor( (screen.height - intHeight) / 2);
	  
  }
  else{
	  left1 = 0;
	  top1 = 0;
  }
  strFeatures = "width=" + intWidth + ",height=" + intHeight + ",left=" +
	  left1 + ",top=" + top1 + "," + strFeatures;
  newWindow = window.open(strURL, winName, strFeatures);
  if(typeof(newWindow) == "undefined" || newWindow == false || newWindow == null)
  {
  	// is stopped by 3721
  	alert("画面は存在しません");
  	return null;
  }
}
function MM_openBrWindow1(strURL, winName, intWidth, intHeight,strFeatures,blnCenter) {
  if(blnCenter==null) blnCenter=true;
  if(strFeatures==null) strFeatures="";
  if(blnCenter){
	  left1 = Math.floor( (screen.width - intWidth) / 1);
	  top1 = Math.floor( (screen.height - intHeight) / 2);
	  
  }
  else{
	  left1 = 0;
	  top1 = 0;
  }
  strFeatures = "width=" + intWidth + ",height=" + intHeight + ",left=" +
	  left1 + ",top=" + top1 + "," + strFeatures;
  newWindow = window.open(strURL, winName, strFeatures);
  if(typeof(newWindow) == "undefined" || newWindow == false || newWindow == null)
  {
  	// is stopped by 3721
  	alert("画面は存在しません");
  	return null;
  }
}


function showDialog(sUrl,iWidth,iHeight,iLeft,iTop,bCenter,bStatus,bHelp,bScroll,bResize,sParameter){
	var strFeatures,strReturn=true;
	if (iLeft==null)iLeft="";
	if (iTop==null)iTop="";
	if (bCenter==null)bCenter="yes";
	if (bStatus==null)bStatus="no";
	if (bHelp==null)bHelp="no";
	if (bScroll==null)bScroll="yes";
	if (bResize==null)bResize="yes";
	if (sParameter==null)sParameter=window;
	strFeatures="dialogWidth:"+iWidth+"px;dialogHeight:"+iHeight+"px;dialogLeft:"+iLeft+"px;dialogTop:"+iTop+"px;center:"+bCenter+";status:"+bStatus+";help:"+bHelp+";scroll:"+bScroll+";resizable:"+bResize+";"
    if (strReturn){
	  strReturn=showModalDialog(sUrl,sParameter,strFeatures);
	  return strReturn;
    }
}





