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

70 lines
No EOL
1.5 KiB
JavaScript

/////////////////////////////////////////////////////////////////
// gestione window secondarie di ricerca
/////////////////////////////////////////////////////////////////
var ggWinHelp;
function openHelpW() {
//alert("pio");
title=arguments[0];
helpText = arguments[1];
//larghezza finestra di ricerca
if (arguments[2]!=null)
{
windowWidth=arguments[2];
}
else
{
windowWidth="600";
}
//altezza finestra di ricerca
if (arguments[3]!=null)
{
windowHeigth=arguments[3];
}
else
{
windowHeigth="350";
}
// alert(searchSvlt);
// alert(returnItemKey);
// alert(returnItemDesc);
ggWinHelp = window.open("", "Help","width="+windowWidth+",height="+windowHeigth+",status=no,resizable=yes,top=100,left=100");
//debug
//ggWinHelp = window.open();
ggWinHelp.opener = self;
buildHelpWindow(title,helpText);
//this.ggWinHelp.document.menu.submit();
}
function wd(text)
{
this.ggWinHelp.document.writeln(text);
}
function buildHelpWindow(title,helpText) {
wd(' <html>');
wd(' <head>');
wd(' <title>Help Window</title>');
wd(' <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');
wd('<link href="../../Script/admin/_css/style.css" rel="stylesheet" type="text/css">');
wd('<link href="../../admin/_css/style.css" rel="stylesheet" type="text/css">');
wd('</head>');
wd('<body bgcolor="#FFFFFF" text="#000000" >');
wd('<span class="riga1"><strong>');
wd(title);
wd('</strong></span>');
wd('<div align="left"><textarea name="textarea" cols="70" rows="18" readonly>');
wd(helpText);
wd('</textarea></div>');
wd('</body>');
wd('</html>');
}