// software sviluppato da IusOnDemand srl per www.fatturami.it - utilizzo consentito lasciando questa riga nel codice. function Fatturami_formAction(svalue) { var objAction = document.getElementById("Fatturami_submit"); objAction.value = svalue; } function controllaordine() { var fatturami_obj=""; var buyername=""; var buyeremail=""; var buyeraddress=""; var buyerzip=""; var buyercity=""; var buyerprovincia=""; var buyercf=""; var buyerpiva=""; var buyertos=""; var fatturami_err=""; var fatturami_error=""; var fatturami_vuoto=""; buyername = Fatturami_TrimString(document.getElementById("iodbuyername").value); buyeremail = Fatturami_TrimString(document.getElementById("iodbuyeremail").value); buyeraddress = Fatturami_TrimString(document.getElementById("iodbuyeraddress").value); buyerzip = Fatturami_TrimString(document.getElementById("iodbuyerzip").value); buyercity = Fatturami_TrimString(document.getElementById("iodbuyercity").value); //buyerprovincia = Fatturami_TrimString(document.getElementById("iodbuyerprovincia").value); buyercf = Fatturami_TrimString(document.getElementById("iodbuyercf").value); buyerpiva = Fatturami_TrimString(document.getElementById("iodbuyerpiva").value); buyertos = document.getElementById("iodbuyertos").checked; var iodsel = document.getElementById("iodbuyerprovincia"); buyerprovincia = iodsel.options[iodsel.selectedIndex].value; // var iodselprovincia = document.getElementById("iodbuyerprovincia"); // buyerprovincia = iodselprovincia.options[iodselprovincia.selectedIndex].value; // var iodselcountry = document.getElementById("iodbuyercountry"); // buyercountry = iodselcountry.options[iodselcountry.selectedIndex].value; // ************************************************************************** if (buyername=="" ) { document.getElementById("iodbuyername").className = 'iodinputempty'; //document.getElementById("iodbuyername").placeholder = "nome e cognome o azienda"; fatturami_err=fatturami_err+"