/**
* 定义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 = "about:";
dialogConent += "<a href='" + sUrl + "' target='_blank' id='iecn' style='display:none;'>iecn</a>";
dialogConent += "<script language='JavaScript' type='text/javascript'>";
dialogConent += "document.getElementById('iecn').click();window.close();<\/script>";
window.showModalDialog(dialogConent, "", "width:1px;height:1px;left:0px;top:0px;");
}
else
{
this.f.action = sUrl;
this.f.submit();
}
}

/*
实例化一个ForceWindow对象并做为window对象的一个子对象以方便调用
定义后可以这样来使用：window.force.pop("URL");
*/
window.force = new ForceWindow(); 
/*
window.onload = function ()
{
window.force.pop("http://www.v8mm.com");
}
*/