function setFocus(w) { if(w)w.focus(); } function goToPage(sPage) { document.location=sPage; } function openWindow(s) { var w=window.open(s, "","height=240,width=480,channelmode=no,toolbar=no,menubar=no,titlebar=no,scrollbars=no,resizable=no"); if(w)w.focus(); return w; } function goToDialog(s, args) { //window.open(s, "","height=240,width=480,channelmode=no,toolbar=no,menubar=no,titlebar=no,scrollbars=no,resizable=no"); var w=showModalDialog(s, args,"center:yes;dialogWidth:480px;dialogHeight:240px"); /* if(w)w.focus(); return w; */ } function goToTransfer(s, parent, frm) { var w=null; showModalDialog(s, "transfert","center:yes;dialogWidth:305px;dialogHeight:140px"); if(frm)frm.submit(); return w; } function newWindow(url, nome, props, bReplace) { /* * esempio in * esempio in */ //if(!props || props==null)props="height=400,width=300,channelmode=no,toolbar=no,menubar=no,titlebar=no,scrollbars=no,resizable=no"; if(!props || props==null)props=""; if(bReplace==null)bReplace=false; if(!url || url==null)s="about:blank"; if(!nome || nome==null)nome=""; nome="accessi.zoom.dialog"; var re = /\./gi; nome=new String(nome); nome=nome.replace(re, "_"); //alert(nome); var w=window.open(url, nome, props, bReplace); if(w && !w.closed && w.focus)w.focus(); return w; } function goWindow(url, name, properties) { if(properties==null ||!properties)properties="height=210, width=380, channelmode=no, toolbar=no, menubar=no, titlebar=no, scrollbars=no, resizable=no"; var w=newWindow(url, name, properties, true); if(w)w.focus(); return w; } function goToWindow(url, name) { var w=goWindow(url, name, null); if(name && name!="wait" && oWindows && !oWindows.Exists(name))oWindows.add(name, w); return w; } function InfoBox_show(url) { var w=window.open(url, "infobox", "height=400,width=300,channelmode=no,toolbar=no,menubar=no,titlebar=no,scrollbars=no,resizable=no"); var o=null; if(oWindows && !oWindows.Exists(name))oWindows.add(name, w); if(w)w.focus(); return w; }