<!--
<script language="javascript">
if(screen.width=="640")
{
    window.open("news.asp","newwindow","height=480, width=405, top=0, left=225, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no")
}
else if(screen.width=="800")
{
    window.open("news.asp","newwindow","height=480, width=405, top=0, left=385, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no")
}
else if(screen.width=="1024")
{
    window.open("news.asp","newwindow","height=480, width=405, top=0, left=610, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no")
}
</script>
-->
以上是弹出在右上角的。
主要根据窗体跟屏幕大小计算top跟left,top=(screen.height-height)/2  left=(screen.width-width)/2