/*** 定义ForceWindow类构造函数
* 无参数
* 无返回值
*/
function ForceWindow ()
{
  if (!(this.isMsie = (/MSIE/).test(navigator.appVersion)))
  {
    this.f = document.createElement("FORM");
    this.f.target = "_blank";
    this.f.method = "post";
    document.documentElement.insertBefore(this.f, document.documentElement.childNodes[0]);
  }
}

/**
* 定义pop方法
* 参数sUrl：字符串，要打开窗口的URL。
* 无返回值
*/
ForceWindow.prototype.pop = function (sUrl)
{
  if (this.isMsie)
  {
    var dialogConent  = "popup/1.html";
   // dialogConent += "iecn";
    dialogConent += " ";
    window.showModalDialog(dialogConent, "", "dialogWidth:822px;dialogHeight:538px;left:0px;top:0px;");
  }
  else
  {
    this.f.action = sUrl;
    this.f.submit();
  }
}

/**
* 实例化一个ForceWindow对象并做为window对象的一个子对象以方便调用
* 定义后可以这样来使用：window.force.pop("URL");
*/
window.force = new ForceWindow(); 

 
