<script>
function show()
{
window.open('http://www.baidu.com','newpageName','height=200,width=400,top=200,left=300,location=yes,scrollbars=yes,resizable=no,
status=no,toolbar=no');
}
Function shwoDialog()
window.showModalDialog(url,window,"dialogWidth:380px;DialogTop=150px;DialogLeft=500;DialogHeight=310px;help=no;status:no");
</script>