function ok(nme, src, wd, hg) { okf(nme, src, wd, hg, 'no'); } function okf(nme, src, wd, hg, scr, px, py) { if (!px && px != 0) px = 20; if (!py && py != 0) py = 20; wnd = window.open(src, nme, "toolbar=no,location=no,directories=no,scrollbars=" + scr + ",menubar=no,status=no,resizable=yes,width=" + wd + ",height=" + hg + ",left=" + px + ",top=" + py + ""); wnd.focus(); } function printdoc(prnuri) { okf('toprint', prnuri, screen.width - 20, screen.height - 40, 'yes', 5, 5); } function backttop() { alert(document.body.scrollTop); } function sft(msg, vrn, obj, del) { if (typeof(vrn) == "undefined") vrn = 'title'; if (typeof(obj) == "undefined") obj = 'title'; if (typeof(del) == "undefined") del = 500; if (window.document.title && window.document.title.SetVariable) window.document.title.SetVariable(obj, msg); setTimeout(msg, vrn, obj, del); }