function textCounter(field,cntfield,maxlimit) { if (field.value.length > maxlimit) field.value = field.value.substring(0, maxlimit); else cntfield.value = maxlimit - (field.value.length ); } function isNumberKey(evt) { var charCode = (evt.which) ? evt.which : event.keyCode if (charCode > 31 && (charCode < 48 || charCode > 57)) return false; return true; } function submitForm(){ //validazione if(document.form1.PhoneNumber.value.length<5 || document.form1.PhoneNumber.value.length>7) { alert("Numero non valido."); } else { document.form1.submit(); } } SmsAdBox = { render:function(){ document.write("
"); document.write("
"); document.write("Sito partner "); document.write("SmsAd.it "); document.write("

Gli invii sono tracciati, per eventuali richieste da parte degli organi di polizia compententi.

"); document.write(""); document.write(" "); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write("
"); document.write("\"Compravendite"); document.write("
"); document.write(""); document.write("
"); document.write("
"); document.write("
"); } } SmsAdBox.render();