function pop(mypage, myname, w, h, scroll) {
	pos_left = (screen.width - w) / 2;
	pos_height = (screen.height - h) / 2;
	winprops = 'resizable=1,height='+h+',width='+w+',scrollbars='+scroll+',left='+ pos_left +',top='+ pos_height +'';
	win = window.open(mypage, myname, winprops);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
function popImg(myPath, myfile, myname, w, h, scroll) {
	pos_left = (screen.width - w) / 2;
	pos_height = ((screen.height - h) / 2)-60;
	winprops = 'height='+h+',width='+w+',left='+ pos_left +',top='+ pos_height +',scrollbars='+scroll+',toolbar="",menubar="",location="",status=0';
	win = window.open('', myname, winprops);
	win.document.open();
	win.document.write('<html><title>SEAFESP</title><body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0"><table border="0" width="100%" height="100%" cellpadding="0" cellspacing="0"><tr><td valign="middle" align="center"><img src="'+myPath+myfile+'" border="0"></td></tr></table></body></html>');
	win.document.close();
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
function popTB(mypage, myname) {
	intW = screen.width - 10;
	intH = screen.height - 190;
	winprops = 'height='+ intH +',width='+ intW +",scrollbars=yes,toolbar=yes,menubar=yes,location=yes,status=yes,left=0,top=0";
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
