function janela(theURL,winName,features) { 
  window.open(theURL,winName,features);
}
function tabela(URL,x,y) { 
Win=window.open(URL,"tabela","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+x+",height="+y);
Win.close();
Win=window.open(URL,"tabela","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+x+",height="+y);
var vx=(Win.screen.width-x)/2;
var vy=(Win.screen.height-y)/2;
Win.moveTo(vx,vy);
}

function Fotos(img,x,y) {
x = x + 10;
y = y + 30;
Foto=window.open("","SLFoto","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+x+",height="+y);
Foto.close();
Foto=window.open("","SLFoto","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+x+",height="+y);
Foto.resizeTo(x,y);
var vx=(Foto.screen.width-x)/2;
var vy=(Foto.screen.height-y)/2;
Foto.moveTo(vx,vy);
Foto.document.open();
Foto.document.write("<html><head><title>Slan Filtros</title></head><body topmargin=0 leftmargin=0><img src='produtos/"+img+"' border='0'><div id='Print' style='position:absolute; width:33px; height:33px; z-index:1; left: "+(x-43)+"px; top: "+(y-90)+"px;'><a href='JavaScript:window.print()'><img src='print.gif' border='0'></a></div></body></html>");
}

function imprime(url) { 
  window.open(url,'PrintMe','top=0,left=5000');
}
