| Server IP : 89.46.109.6 / Your IP : 216.73.216.84 Web Server : Apache System : Linux hlpi1ws-c284v20.ad.aruba.it 6.8.0-139-generic #139-Ubuntu SMP PREEMPT_DYNAMIC Sat Aug 1 03:52:05 UTC 2026 x86_64 User : ID19067310 ( 19067310) PHP Version : 5.3.29 Disable Function : system,popen,dl,passthru,proc_open,shell_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /web/htdocs/www.edizacco.it/home/js/form/ |
Upload File : |
///////////////////////////////////////////////////////////////////////////////////////////
//// NEWSLETTER /////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
//// NEWSLETTER ISCRIZIONE HOME PAGE /////////////////////////////////////////////////////
function OkNewsletterBox(theForm) {
if (theForm.invia_email.value.indexOf("@", 0) == -1) { alert("Attenzione. Indirizzo email non valido."); theForm.invia_email.focus(); return (false); }
if (theForm.invia_email.value.indexOf(".", 0) == -1) { alert("Attenzione. Indirizzo email non valido."); theForm.invia_email.focus(); return (false); }
}
//// NEWSLETTER ISCRIZIONE ///////////////////////////////////////////////////////////////
function OkNewsletter(theForm) {
if (theForm.nome.value == "") { alert("Attenzione. Per favore indica il tuo NOME"); theForm.nome.focus(); return (false); }
if (theForm.cognome.value == "") { alert("Attenzione. Per favore indica il tuo COGNOME"); theForm.cognome.focus(); return (false); }
if (theForm.email.value.indexOf("@", 0) == -1) { alert("Attenzione. Indirizzo email non valido."); theForm.email.focus(); return (false); }
if (theForm.email.value.indexOf(".", 0) == -1) { alert("Attenzione. Indirizzo email non valido."); theForm.email.focus(); return (false); }
if (theForm.id_categoria.selectedIndex == 0 ) { alert ( "Attenzione. Seleziona la Categoria." ); return false; }
if (theForm.captcha_code.value == "") { alert("Attenzione. Scrivere il codice CAPTCHA"); theForm.captcha_code.focus(); return (false); }
if (theForm.privacy.checked == false ) { alert ( "Attenzione. Per iscriverti devi autorizzare il trattamento dei tuoi dati personali." ); return false; }
}
//// NEWSLETTER DELETE ///////////////////////////////////////////////////////////////////
function OkNewsletterDelete(theForm) {
if (theForm.email.value.indexOf("@", 0) == -1) { alert("Attenzione. Indirizzo email non valido."); theForm.email.focus(); return (false); }
if (theForm.email.value.indexOf(".", 0) == -1) { alert("Attenzione. Indirizzo email non valido."); theForm.email.focus(); return (false); }
if (theForm.captcha_code.value == "") { alert("Attenzione. Scrivere il codice CAPTCHA"); theForm.captcha_code.focus(); return (false); }
}
///////////////////////////////////////////////////////////////////////////////////////////
//// CONTATTI ///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
function OkContatti(theForm) {
if (theForm.nome.value == "") { alert("Attenzione. Per favore indica il tuo NOME"); theForm.nome.focus(); return (false); }
if (theForm.cognome.value == "") { alert("Attenzione. Per favore indica il tuo COGNOME"); theForm.cognome.focus(); return (false); }
if (theForm.email.value.indexOf("@", 0) == -1) { alert("Attenzione. Indirizzo email non valido."); theForm.email.focus(); return (false); }
if (theForm.email.value.indexOf(".", 0) == -1) { alert("Attenzione. Indirizzo email non valido."); theForm.email.focus(); return (false); }
if (theForm.oggetto.value == "") { alert("Attenzione. Per favore indica l'OGGETTO DEL MESSAGGIO"); theForm.oggetto.focus(); return (false); }
if (theForm.captcha_code.value == "") { alert("Attenzione. Scrivere il codice CAPTCHA"); theForm.captcha_code.focus(); return (false); }
if (theForm.privacy.checked == false ) { alert ( "Attenzione. Per iscriverti devi autorizzare il trattamento dei tuoi dati personali." ); return false; }
}
///////////////////////////////////////////////////////////////////////////////////////////
//// PREVENTIVO /////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
function OkPreventivo(theForm) {
if (theForm.tipologia.selectedIndex == 0 ) { alert ( "Attenzione. Per favore seleziona la TIPOLOGIA" ); return false; }
if (theForm.nome.value == "") { alert("Attenzione. Per favore indica il tuo NOME"); theForm.nome.focus(); return (false); }
if (theForm.cognome.value == "") { alert("Attenzione. Per favore indica il tuo COGNOME"); theForm.cognome.focus(); return (false); }
if (theForm.email.value.indexOf("@", 0) == -1) { alert("Attenzione. Indirizzo email non valido."); theForm.email.focus(); return (false); }
if (theForm.email.value.indexOf(".", 0) == -1) { alert("Attenzione. Indirizzo email non valido."); theForm.email.focus(); return (false); }
if (theForm.oggetto.value == "") { alert("Attenzione. Per favore indica l'OGGETTO DEL MESSAGGIO"); theForm.oggetto.focus(); return (false); }
if (theForm.captcha_code.value == "") { alert("Attenzione. Scrivere il codice CAPTCHA"); theForm.captcha_code.focus(); return (false); }
if (theForm.privacy.checked == false ) { alert ( "Attenzione. Per iscriverti devi autorizzare il trattamento dei tuoi dati personali." ); return false; }
}
///////////////////////////////////////////////////////////////////////////////////////////
//// ORDINE1 /////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
function OkOrdine1(theForm) {
if (theForm.nome.value == "") { alert("Attenzione. Per favore indica il tuo NOME"); theForm.nome.focus(); return (false); }
if (theForm.cognome.value == "") { alert("Attenzione. Per favore indica il tuo COGNOME"); theForm.cognome.focus(); return (false); }
if (theForm.indirizzo.value == "") { alert("Attenzione. Per favore indica il tuo INDIRIZZO"); theForm.indirizzo.focus(); return (false); }
if (theForm.nc.value == "") { alert("Attenzione. Per favore indica il tuo NUMERO CIVICO"); theForm.nc.focus(); return (false); }
if (theForm.cap.value == "") { alert("Attenzione. Per favore indica il tuo CAP"); theForm.cap.focus(); return (false); }
if (theForm.citta.value == "") { alert("Attenzione. Per favore indica la tua CITTA'"); theForm.citta.focus(); return (false); }
if (theForm.id_provincia.selectedIndex == 0 ) { alert ( "Attenzione. Per favore seleziona la PROVINCIA" ); return false; }
if (theForm.id_regione.selectedIndex == 0 ) { alert ( "Attenzione. Per favore seleziona la REGIONE" ); return false; }
if (theForm.telefono.value == "") { alert("Attenzione. Per favore indica il tuo numero di TELEFONO"); theForm.telefono.focus(); return (false); }
if (theForm.email.value.indexOf("@", 0) == -1) { alert("Attenzione. INDIRIZZO EMAIL NON VALIDO"); theForm.email.focus(); return (false); }
if (theForm.email.value.indexOf(".", 0) == -1) { alert("Attenzione. INDIRIZZO EMAIL NON VALIDO"); theForm.email.focus(); return (false); }
if ( ( theForm.metodo_pagamento[0].checked == false ) && ( theForm.metodo_pagamento[1].checked == false ) && ( theForm.metodo_pagamento[2].checked == false ) ) { alert ( "Attenzione. Per favore indica il METODO DI PAGAMENTO." ); return false; }
if (theForm.privacy.checked == false ) { alert ( "Attenzione. Per continare il tuo ordine devi autorizzare il trattamento dei tuoi dati personali" ); return false; }if (theForm.condizioni.checked == false ) { alert ( "Attenzione. Per continare il tuo ordine devi accettare le condizioni generali d'acquisto" ); return false; }
}
///////////////////////////////////////////////////////////////////////////////////////////
//// ORDINE2 /////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
function OkOrdine2(theForm) {
if (theForm.captcha_code.value == "") { alert("Attenzione. Per favore copiare il codice CAPTCHA per proseguire"); theForm.captcha_code.focus(); return (false); }
}