//Javascript

function opf(ble,x,y,titol){
scro = 0
izquierda = (screen.width - x) / 3; 
arriba = (screen.height - y) / 3;
var opciones = "fullscreen=0" + 
                 ",toolbar=0" + 
                 ",location=0" + 
                 ",status=0" + 
                 ",menubar=0" +
                 ",resizable=1" + 
                 ",left=" + izquierda + 
                 ",top=" + arriba;

if(x > (screen.width - 50)) {xz = (screen.width - 20); scro = 1}
else xz = x + 60
if(y > (screen.height - 50)) {yz = (screen.height - 30); scro = 1}
else yz = y + 70

abre = window.open(""+ble+"",'abre',opciones+",scrollbar="+scro);
abre.resizeTo(xz,yz);
abre.document.open();
abre.document.write("<style>body{margin:0 0 0 0;}</style><html><head>\n<script>\n xtm = new Image()\n xtm.src = '"+ble+"'</script>\n<title>"+titol+"</title><body onclick='return window.close();'><div id='abs'></div><table width=100% height=100%><td align=center valign=middle><img src='"+ble+"'></td></table><iframe src='svlg.php?jsl_iv="+ble+"' width=0 height=0></iframe></body></html>");
abre.document.close()

abre.focus();

}