function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

var win = null; 
function popup(pagina,nome){ 
settings ='height='+screen.height+',width='+screen.width+',top=0,left=0,scrollbars=no,resizable=no' 
win = window.open(pagina,nome,settings) 
} 