function OpenWindow(url,width,height,name,options)
{
var left = (screen.width-width)/2;
var top = (screen.height-height)/2;
if(options ==null)
options ="";
var newWin =  window.open(url,name,"left=" +left+",top="+top+",width="+width+",height="+height+","+options);
newWin.focus();
return newWin;

}

posted on 2007-01-26 16:16  微星  阅读(998)  评论(0编辑  收藏  举报