/* echo '<SCRIPT language="JavaScript" type="text/javascript" src="http://www.'.$domanin.'/scripts/remotewin.js"></SCRIPT>'; */


function newWin(w, h, typ, road, winname) {
if(typ==1) {
scr='no'; stat='no'; res='yes'
}
else {
scr='yes'; stat='yes'; res='yes'
}

var win_left = (screen.width - w) / 2;
var win_top = (screen.height - h) / 3;
remote = window.open("", winname,'scrollbars='+scr+',height='+h+',width='+w+',top='+win_top+',left='+win_left+', resizable='+res+', status='+stat+'');
remote.location.href = road;
    if (remote.opener == null) remote.opener = window; 
remote.opener.name = "opener";

}
