var GO = { basePath: "", iconPath: "/icons", removeElement: function(el) { if(typeof el == 'string') el = document.getElementById(el); el.parentNode.removeChild(el); }, getElementsByClass: function(node,searchClass,tag) { var classElements = []; if(!tag) tag = '*'; var els = node.getElementsByTagName(tag); var c = els.length; var rx = new RegExp("(^|\\s)" + searchClass + "(\\s|$)"); for(var i=0; i'+ '
'+ '
'+ '
'+ 'Go!!! non riesce ad aprire una pop-up, utile al corretto funzionamento di tutto il sistema.
'+ 'E’ quindi necessario abilitare le pop-up. Segui il seguente link se hai bisogno di aiuto.
'+ 'Grazie. Help!
'+ '
'+ '
' }); } return new_win; } } //------------------------------------------------------------------------------ /* setTimeout( function() { GO.alertDiv({ style: "background: #EFEFEF;border: 2px outset #676767;padding: 4px;", html: '
'+ ''+ 'Non è stato possibile aprire la finestra PopUp!
Help' }); }, 3000); */ //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ function avvisa(user) { apriPopup('http://intra.netbuilder.it/scriba/go_chat_new/avvisa.html?user='+user, 300, 150, '', 'resizable=no,toolbar=no,status=no,scrollbars=no,menubar=no', '','') } //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ /* function Orario() { if (document.getElementById('orologio')) { var oggi=new Date(); var hh = oggi.getHours(); hh = (hh<10) ? "0"+hh : ""+hh; var mm = oggi.getMinutes(); mm = (mm<10) ? "0"+mm : ""+mm; var ss = oggi.getSeconds(); ss = (ss<10) ? "0"+ss : ""+ss; document.getElementById('orologio').innerHTML = hh + ":" + mm + ":" + ss; window.setTimeout('Orario();',1000); } } */ function apriPopup(pagina, w, h, nome, attributi, x, y) { // Se non sono stati passati x e y apro la finestra al centro dello schermo if (!x) x = Math.ceil( (window.screen.width - w) / 2 ); if (!y) y = Math.ceil( (window.screen.height - h) / 4 ); // Se non sono stati passati gli attributi... if (!attributi) attributi = 'resizable=yes,toolbar=no,status=no,scrollbars=yes,menubar=yes'; // Se non è stato passato il nome della finestra ne imposto uno di default if (!nome) nome = "popup_window"; popup = window.open(pagina, nome, attributi + ',width=' + w + ',height=' + h); popup.moveTo(x,y); popup.focus(); } function stampaPagina() { self.print(); } //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ // Disabilito i vari campi DATA function disableField() { document.forms['ricercaeventi'].elements['dDataE'].disabled = true; document.forms['ricercaeventi'].elements['mDataE'].disabled = true; document.forms['ricercaeventi'].elements['yDataE'].disabled = true; document.forms['ricercaeventi'].elements['dDataF'].disabled = true; document.forms['ricercaeventi'].elements['mDataF'].disabled = true; document.forms['ricercaeventi'].elements['yDataF'].disabled = true; } // Abilito i vari campi DATA function enableField() { document.forms['ricercaeventi'].elements['dDataE'].disabled = false; document.forms['ricercaeventi'].elements['mDataE'].disabled = false; document.forms['ricercaeventi'].elements['yDataE'].disabled = false; document.forms['ricercaeventi'].elements['dDataF'].disabled = false; document.forms['ricercaeventi'].elements['mDataF'].disabled = false; document.forms['ricercaeventi'].elements['yDataF'].disabled = false; } function abilita_disabilita() { valore=document.forms['ricercaeventi'].elements['uData'].checked; if (valore) enableField() else disableField() return true; } // Disabilito i vari campi DATA function disableField2() { document.forms['frm_ricerca_imap'].elements['dDataE'].disabled = true; document.forms['frm_ricerca_imap'].elements['mDataE'].disabled = true; document.forms['frm_ricerca_imap'].elements['yDataE'].disabled = true; } // Abilito i vari campi DATA function enableField2() { document.forms['frm_ricerca_imap'].elements['dDataE'].disabled = false; document.forms['frm_ricerca_imap'].elements['mDataE'].disabled = false; document.forms['frm_ricerca_imap'].elements['yDataE'].disabled = false; } function abilita_disabilita2() { valore=document.forms['frm_ricerca_imap'].elements['uData'].checked; if (valore) enableField2() else disableField2() return true; } //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ var ie = /MSIE/.test(navigator.userAgent); var moz = !ie && navigator.product == "Gecko"; function emulateCurrentStyle() { HTMLElement.prototype.__defineGetter__("currentStyle", function () { return this.ownerDocument.defaultView.getComputedStyle(this, null); } ); } if(moz) { emulateCurrentStyle(); } //------------------------------------------------------------------------------ function nextSiblingElement(root_node) { var e = root_node.nextSibling; while(e = e.nextSibling) if(e.nodeType==1) return e; return null; } function sid(sid) { return document.getElementById(sid); } function elAttr(el,attr_name) { if(el!=null) { if(moz) { var attr_obj = el.attributes[attr_name]; if(attr_obj) return attr_obj.value; } else if(ie) { if(el[attr_name]!='undefined') return el[attr_name]; } } return null; } function isArray(obj) { if (typeof obj == 'object' && typeof obj.length == 'number') return true; return false; } function trace(m) { console.log(m); } function escapeHTML(s) { var div = document.createElement('div'); var text = document.createTextNode(s); div.appendChild(text); return div.innerHTML; } function getElementsByAttribute(root_element,tag_name,attr_name) { var elements = root_element.getElementsByTagName(tag_name); var ret = []; var c=elements.length; //alert(c); for (var i=0; i "+opt); opt = (opt && opt.length)?true:false; //alert(i+"> "+opt); if( str_regexp && (!opt || (opt && e.value.length>0)) ) { var rx = new RegExp(str_regexp); var t = rx.test(e.value); //alert("test v:"+e.value+" rx:"+rx+" > "+t); if(!t) { alert(elAttr(e,'errmsg')); return false; } } } return true; } function fade_color(el,bforeground,dest,millisec) { trace("ayo not implemented!"); } function fade_alpha(el,dest_alpha_percentage,millisec) { trace("ayo not implemented!"); } //element = array di oppure oggetto Element function toggle_display(element) { /* function _togel(el) { if(el.currentStyle.display=='none') { if(el._previous_display!='undefined') el.style.display=el._previous_display; else el.style.display=''; //con questo va //sotto firefox ha dei prob con le tabelle non ricalcola le dimensioni!! //el.style.display='block'; } else { el._previous_display = el.currentStyle.display; el.style.display='none'; } }*/ if(typeof element == 'string') element = document.getElementById(element); function _togel(el) { if(el.currentStyle.display=='none') { //if(el.tagName=='TABLE') el.style.display=''; //con questo va /*else el.style.display='block';*/ //sotto firefox ha dei prob con le tabelle non ricalcola le dimensioni!! //el.style.display='block'; } else el.style.display='none'; } if(isArray(element)) { for(var i=0;i0) img.src = '../../icons/esplodi.gif'; else img.src = '../../icons/implodi.gif'; toggle_display(hide_show_el); } /*TABBER ------------------------------------------------------------------------------*/ // var tabfolder = new Tabber('tabs_ul','active'); function Tabber(ul_id_or_obj,active_tab_class) { if(this == window) return null; this.rootEle = ul_id_or_obj; if(typeof this.rootEle == 'string') this.rootEle = document.getElementById(this.rootEle); if(!this.rootEle) return null; this.activeClassName = active_tab_class; //metodo tab_onclick() this.tab_onclick = function(tab_ele) { //console.dir(this.tabs); if(this.tabs && this.tabs.length) { for(var i=0;i