<!--
foto_p = "width=490,height=315,resizable=no,location=no,directories=no,status=no,toolbar=no,menubar=no,scrollbars=no";
foto_r = "width=315,height=490,resizable=no,location=no,directories=no,status=no,toolbar=no,menubar=no,scrollbars=no";

function imp_coluna(coluna){
imp_coluna_win=window.open(coluna,"coluna","MARGINHEIGHT=0,MARGINWIDTH=0,TOPMARGIN=0,LEFTMARGIN=0,width=580,height=368,resizable=yes,location=no,directories=no,status=no,toolbar=no,menubar=yes,scrollbars=yes");
}

function charge(foto){
charge_win=window.open(foto,"charge","MARGINHEIGHT=0,MARGINWIDTH=0,TOPMARGIN=0,LEFTMARGIN=0,width=500,height=500,resizable=no,location=no,directories=no,status=no,toolbar=no,menubar=no,scrollbars=no");
}

function mossoro(foto){
mossoro_win=window.open(foto,"mossoro","MARGINHEIGHT=0,MARGINWIDTH=0,TOPMARGIN=0,LEFTMARGIN=0,width=580,height=368,resizable=no,location=no,directories=no,status=no,toolbar=no,menubar=no,scrollbars=no");
}

function chat(){
chat_win=window.open("chat_frame.php","chat","resizable=yes,location=no,directories=no,status=no,toolbar=no,menubar=yes,scrollbars=yes");
}

function fecharmesmo(){
window.new_win.close();
}

function  fechar(){
//se "new_win" existir
if (window.new_win)
//feche a janela
//window.new_win.close()
fecharmesmo();
//caso contrario
else
//retorne
return
}

function  abrir(num, formato, janela){
new_win=window.open("galeria/foto.php?foto="+num+formato+".jpg","foto",janela);
}


// codigo novo
function myvoid() {
}
var popup = '';

function showpopup(url,w,h,s) {
	pgWindow=window.open('','windowname','width='+w+',height='+h+',scrollbars='+s+',left=100,top=0,screenX=100,screenY=0');
//	pgWindow.document.write('<body>' + "aguarde..." + '</body>');
	abre = url;
	pgWindow.location=abre;
	pgWindow.document.close();
}
function closepopup() {
	if (!pgWindow.closed)
		pgWindow.close();
}
//-->
