function checkForm(o){ var bFound; bFound=true; try{ if(altriCheck.length != 0){ var altriCheckMsg = "Correggere i seguenti errori per proseguire:\r\n\r\n"; for(var z = 0; z != altriCheck.length; z++){ altriCheckMsg += (z + 1) + ". " + altriCheck[z].split("|")[1] + "\r\n"; } alert(altriCheckMsg); return false; } } catch(e){} for(x=0; x-1){ if(oInput.selectedIndex==-1 || oInput.options[oInput.selectedIndex].value==''){ bFound=false; sTxtAlert = (oInput.getAttribute("friendlyAlert") != null) ? oInput.getAttribute("friendlyAlert") : oInput.parentNode.innerHTML.replace(/([^<]*)(<.*)/,"$1").replace("*",""); oError = "Il campo " + sTxtAlert + " e' obbligatorio." } } if(!bFound){ oInput.style.border="1px solid red"; oInput.style.color="red"; oInput.style.fontWeight="bold"; }else{ oInput.style.border="2px inset"; oInput.style.color="black"; oInput.style.fontWeight="normal"; } if(!bFound){alert(oError)}; if(!bFound)return false; } for(x=0; x-1){ if(oInput.className.indexOf("obb(")>-1){ var re = new RegExp(/(.*)(obb\()([\d\w\W]+[,]*)(\))(.*)/); oInputs=oInput.className.replace(re,"$3") oInputNamesToCheck = oInputs.split(",") oInputsToCheck = new Array() var oError=""; oInputsToCheck[0]=oInput; for(y=0; y