//MACROMEDIA function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } 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= len && !containsElement(filter,keyCode)) { input.value = input.value.slice(0, len); //input.form[(getIndex(input)+1) % input.form.length].focus(); input.form[(getIndex(input)+1) % input.form.length].select(); } function containsElement(arr, ele) { var found = false, index = 0; while(!found && index < arr.length) if(arr[index] == ele) found = true; else index++; return found; } function getIndex(input) { var index = -1, i = 0, found = false; while (i < input.form.length && index == -1) if (input.form[i] == input)index = i; else i++; return index; } return true; } // nella textfield --> onKeyUp="return autoTab(this, 4, event);" // permette di digitare pių caratteri per posizionarsi su una tendina var timerid = null; var matchString = ""; var mseconds = 1000; // Length of time before search string is reset function shiftHighlight(keyCode,targ) { keyVal = String.fromCharCode(keyCode); // Convert ASCII Code to a string matchString = matchString + keyVal; // Add to previously typed characters elementCnt = targ.length - 1; // Calculate length of array -1 for (i = elementCnt; i > 0; i--) { selectText = targ.options[i].text.toLowerCase(); // convert text in SELECT to lower case if (selectText.substr(0,matchString.length) == matchString.toLowerCase()) { targ.options[i].selected = true; // Make the relevant OPTION selected sito(); //aggiorno il campo di testo, aggiunta di Fausto } } clearTimeout(timerid); // Clear the timeout timerid = setTimeout('matchString = ""',mseconds); // Set a new timeout to reset the key press string return false; // to prevent IE from doing its own highlight switching } //FAUSTO //link vuoto function noLink() { //non fa nulla } //lancio una popup con i parametri giusti function zoomIt(tipo,id) { zoom=openIT('zoom.asp?tipo='+tipo+'&id='+id); } function zoomEssenze(url) { zoom=openESSENZE(url); } //lancio una popup con i parametri giusti function contatti() { zoom=openContatti(); } function estensioneJPG(stringa) { var re = /.jpg$/gi; valido = re.test(stringa); if (valido) { return true; } else { return false; } return true; } function estensioneTXT(stringa) { var re = /.txt$/gi; valido = re.test(stringa); if (valido) { return true; } else { return false; } return true; } function azzeraTutto() { // Imposta tutti i campi di testo e tutte le textarea a '' // e tutte le tendine sull'ultimo valore for (i=0; i