function change(preview, file, flashing) { // disattiviamo il sistema del fade flashing = false; // aggiorniamo l'immagine solo il file ha un nome valido // e se è diversa da quella attuale var preview = MM_findObj(preview); if (file != "") if (preview.src.indexOf(file) == -1) { preview.src = file; if (flashing && typeof(preview.style.filter) != "undefined") { preview.style.filter="alpha(opacity=0)"; setTimeout("dynchange('" + preview + "',0)", 25); } } } function openTellAFriend(url) { popup = window.open(url, 'tellafriend', 'width=650, height=400, scrollbars=1, resizable=1, statusbar=1'); popup.focus(); return false; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i della tabella "+unescape(table)+""; txt = ""+unescape(txt)+""; } // se il testo è vuoto, via if (txt) window.top.msgframe.msg_info(txt); else window.top.msgframe.msg_clear(); } /////////////// // INDEX ONLY // //////////////// function debug_mode() { // Confidiamo sul fatto che il nostro hidden frame è il primo var r = document.body.rows.split("%") var n = Number(r[0]); if (n == 0) { n = 30; n2 = 10; } else { n = 0; n2 = 0; } document.body.rows = n+"%,*,50,"+n2+"%"; } function debug_write(txt) { // Scriviamo il testo solamente se siamo in modalità di debug var r = document.body.rows.split("%") var n = Number(r[0]); if (n) alert(unescape(txt)); } ///////////////////////////////////////////////////////// // CHANGE - opportunamente modificate per enerpoint.it // ///////////////////////////////////////////////////////// function change_regione(th,unused) { var id = th.value; var listbox = document.getElementById("iid_provincia"); var lang = document.getElementById("id_lang").value; window.top.runtime_id = listbox; common_listbox_clear(); common_listbox_add(0, "%5B...loading...%5D"); if (id) { window.top.hiddenframe.location = "/runtime_ext.php?what=5¶m1="+id+"&lang="+lang; } else { // svuotiamola common_listbox_clear(); common_listbox_add(0, "%5B...select%20a%20Region...%5D"); // svuotiamo anche la collega, se esiste if (listbox = document.getElementById("iid_localita")) { window.top.runtime_id = listbox; common_listbox_clear(); common_listbox_add(0, "%5B...select%20a%20Province...%5D"); } } } function change_provincia(th,unused) { var id = th.value; var listbox = document.getElementById("iid_localita"); var lang = document.getElementById("id_lang").value; window.top.runtime_id = listbox; common_listbox_clear(); common_listbox_add(0, "%5B...loading...%5D"); if (id) window.top.hiddenframe.location = "/runtime_ext.php?what=6¶m1="+id+"&lang="+lang; else { // svuotiamola common_listbox_clear(); common_listbox_add(0, "%5B...select%20a%20Province...%5D"); } } function change_profilo(th, unused) { var id = th.value; var listbox = document.getElementById("iid_utenza"); var lang = document.getElementById("id_lang").value; window.top.runtime_id = listbox; common_listbox_clear(); common_listbox_add(0, "%5B...loading...%5D"); if (id) window.top.hiddenframe.location = "/runtime_ext.php?what=10¶m1="+id+"&lang="+lang; else { // svuotiamola common_listbox_clear(); common_listbox_add(0, "%5B...select%20a%20profile...%5D"); // svuotiamo anche la collega, se esiste if (listbox = document.getElementById("iid_utenza_tipo")) { window.top.runtime_id = listbox; common_listbox_clear(); common_listbox_add(0, "%5B...select%20a%20profile%202...%5D"); } } } function change_utenza(th, unused) { var id = th.value; var listbox = document.getElementById("iid_utenza_tipo"); var lang = document.getElementById("id_lang").value; window.top.runtime_id = listbox; common_listbox_clear(); common_listbox_add(0, "%5B...loading...%5D"); if (id) window.top.hiddenframe.location = "/runtime_ext.php?what=8¶m1="+id+"&lang="+lang; else { // svuotiamola common_listbox_clear(); common_listbox_add(0, "%5B...select%20a%20profile%202...%5D"); } } function change_provenienza(th,unused) { var id = th.value; var listbox = document.getElementById("iid_provenienza"); var lang = document.getElementById("id_lang").value; window.top.runtime_id = listbox; common_listbox_clear(); common_listbox_add(0, "%5B...loading...%5D"); if (id) window.top.hiddenframe.location = "/runtime_ext.php?what=9¶m1="+id+"&lang="+lang; else { // svuotiamola common_listbox_clear(); common_listbox_add(0, "%5B...select%20a%20provenance...%5D"); } }