<head>
<script language="JavaScript">
function openWindow() {

var url= "main.html";
var name="new";
popupWin = window.open(url, name, 'scrollbars=yes,resizable=yes,width=800,height=600')
}
</script>
</head>

<body onload="openwindow();">