function setResolution() { window.open('/comun/setRes.asp?x=' + screen.width + '&y=' + screen.height,'guardar','toolbar=no,left=7000, top=7000, border=0, scrollbars=no, resizable=no, width=1, height=1','true'); } function imprimir() { window.print(); } function AbreVentana(sFicheroWeb ,sTexto,sAncho,sAlto,sleft) { //window.close (sTexto); var ventana; //alert(parent.item(sTexto).name); //reserva.close(); //ventana= window.open (sFicheroWeb,sTexto,'toolbar=no,left=' + eval(sleft) +', top=0, border=0, scrollbars=yes, resizable=yes, width=' + eval(sAncho+20) + ', height=' + eval(sAlto+20),"true"); // de momento cada ventana se dara a si misma el foco........ //window.open (sFicheroWeb,"Auxiliar",'toolbar=yes,menubar=yes, left=0, top=0, border=0, scrollbars=yes, resizeable=yes, width=' + eval(sAncho+20) + ', height=' + eval(sAlto+20),"yes"); //window.item(sTexto).focus(); if (ventana) ventana.focus(); } function AbrePopUp(sFicheroWeb ,sTexto,sAncho,sAlto,sleft) { //window.close (sTexto); ventana=window.open (sFicheroWeb,sTexto,'toolbar=no,left=' + eval(sleft) +', top=0, border=0, status=no, scrollbars=no, resizable=no, width=' + eval(sAncho) + ', height=' + eval(sAlto),"yes"); //window.open (sFicheroWeb,"Auxiliar",'toolbar=yes,menubar=yes, left=0, top=0, border=0, scrollbars=yes, resizeable=yes, width=' + eval(sAncho+20) + ', height=' + eval(sAlto+20),"yes"); //window.item(sTexto).focus(); if (ventana) ventana.focus(); } function AbreInForme(pathInforme) { if (pathInforme) { // hay que pasar al crystal una formula distinta cada vez para que refresque.....!!!!!! HitCount = Math.round(Math.random() * 1000); //This line generates a 3 digit random number //form.sf.value=HitCount + '=' + HitCount + ' and ' + form.sforig.value; AbreVentana('/comun/espera.html','informe',750,550,0); // suponemos siempre que la selection formula es el ultimo parametro y le concatenamos la constante AbreVentana(pathInforme,'informe',750,550,0); // + ' and ' + HitCount + '=' + HitCount,'informe',750,550,0); } else { alert ('Debe Seleccionar un Informe'); } }