Regalamiunsorriso/rus/admin/_V4/_js/stampe.js
2026-03-14 20:04:39 +01:00

54 lines
956 B
JavaScript

/////////////////////////////////////////////////////////////////
// gestione window secondarie di ricerca
//v. 07-03-2005
/////////////////////////////////////////////////////////////////
var printWin;
var debugPrint=false;
var wwD="700";
var whD="500";
function openPrint() {
searchSvlt = arguments[0];
//campo di ritorno completo
//larghezza finestra di ricerca
if (arguments[1]!=null)
{
windowWidth=arguments[1];
}
else
{
windowWidth=wwD;
}
//altezza finestra di ricerca
if (arguments[2]!=null)
{
windowHeigth=arguments[2];
}
else
{
windowHeigth=whD;
}
if (searchSvlt.charAt(0)=="/")
{//path assoluto
searchSvlt=webApp+searchSvlt;
}
if(debugPrint==false)
{
printWin = window.open(searchSvlt, "Print_Window","width="+windowWidth+",height="+windowHeigth+",status=no,resizable=no,top=100,left=100,scrollbars=no");
}
else
{
printWin = window.open(searchSvlt);
}
printWin.opener = self;
}