function openNewwin(strURL,intWidth,intHeight){
var posX;
var posY;
var porps;
var wWidth = 600;
var wHeight = 400;
if(strURL == ""){
alert("很抱歉,您没有输入要弹出窗口的URL值!!")
}
else
{
if(intWidth == null || intWidth == 0 || intWidth == "")
{
posX = Math.round((screen.width - wWidth)/2);
}
else
{
wWidth = intWidth
posX = Math.round((screen.width - parseInt(intWidth))/2);
}
if(intHeight == null || intHeight == 0 || intHeight == "")
posY = Math.round((screen.height - wHeight)/2);
else
{
posY = Math.round((screen.height - parseInt(intHeight))/2);
wHeight = intHeight
}
porps = "scrollbars=1,resizable=1,munubar=0,toolbar=0,location=0,left=" + posX +",top=" + posY + ",width=" + wWidth + ",height=" + wHeight;
window.open(strURL,"_blank",porps)
}
}