<!-- 
    function check_users_auth_form(pForm) {
        var err_msg="";
        if (!is_present(pForm.user_login.value,4,255)) {
            err_msg +="Login mancante o valore non valido.\n";
        }
        if (!is_present(pForm.user_password.value,4,32)) {
            err_msg +="Password mancante o valore non valido.\n";
        }
        if (err_msg!="") {
            err_msg="ATTENZIONE!\n\n"+err_msg;
            alert(err_msg);
            err_msg="";
            return false;
        } else {
            return true;
        }
    }

    function check_abstract_submission_form(pForm) {
        var err_msg="";
        if (!is_present(pForm.user_company.value,2,255)) {
            err_msg +="Invalid value for Institution field.\n";
        }
        if (!is_present(pForm.user_title.value,2,255)) {
            err_msg +="Invalid value for Title field.\n";
        }
        if (!is_present(pForm.user_first_name.value,4,255)) {
            err_msg +="Invalid value for Firstname field.\n";
        }
        if (!is_present(pForm.user_last_name.value,4,255)) {
            err_msg +="Invalid value for Surname field.\n";
        }
        if (!is_present(pForm.user_address.value,2,64)) {
            err_msg +="Invalid value for Address field.\n"
        }


        if (!is_present(pForm.user_phone.value,2,64)) {
            err_msg +="Invalid value for Phone field.\n"
        }
        if (!is_present(pForm.user_fax.value,2,64)) {
            err_msg +="Invalid value for Fax field.\n"
        }
        if (!is_email(pForm.user_email.value)) {
            err_msg +="Invalid value for E-Mail field.\n";
        }
        if (!is_present(pForm.abstract_title.value,2,10000)) {
            err_msg +="Invalid value for Abstract Title field.\n"
        }
        if (!is_present(pForm.abstract_authors.value,2,10000)) {
            err_msg +="Invalid value for Abstract Author(s) field.\n"
        }
        if (!is_present(pForm.abstract_text.value,2,100000)) {
            err_msg +="Invalid value for Abstract Text field.\n"
        }
        if (!pForm.statement_1[0].checked) {
            err_msg +="Please accept our privacy policy.\n";
        }
        if (err_msg!="") {
            err_msg="WARNING!\n\n"+err_msg;
            alert(err_msg);
            err_msg="";
            return false;
        } else {
            return true;
        }
    }

    function check_users_subscription_form(pForm) {
        var err_msg="";


        if (!is_present(pForm.user_first_name.value,2,64)) {
            err_msg +="Nome mancante o valore non valido.\n"
        }
        if (!is_present(pForm.user_last_name.value,2,64)) {
            err_msg +="Cognome mancante o valore non valido.\n"
        }

        if (!is_email(pForm.user_email.value)) {
            err_msg +="E-Mail dell'utente mancante o valore non valido.\n"
        }
        if (!pForm.statement_1[0].checked) {
            err_msg +="Non e' stata accettata la clausola sul trattamento dei dati personali.\n";
        }
        if (err_msg!="") {
            err_msg="ATTENZIONE!\n\n"+err_msg;
            alert(err_msg);
            err_msg="";
            return false;
        } else {
            return true;
        }
    }
    
    function check_users_update_form(pForm) {
        var err_msg="";
        if (!is_present(pForm.user_company.value,2,64)) {
            err_msg +="Azienda mancante o valore non valido.\n"
        }
        if (!is_present(pForm.user_first_name.value,2,64)) {
            err_msg +="Nome mancante o valore non valido.\n"
        }
        if (!is_present(pForm.user_last_name.value,2,64)) {
            err_msg +="Cognome mancante o valore non valido.\n"
        }
        if (!is_present(pForm.user_city.value,2,64)) {
            err_msg +="Citta' mancante o valore non valido.\n"
        }
        if (!is_present(pForm.user_state.value,2,64)) {
            err_msg +="Provincia mancante o valore non valido.\n"
        }
        if (pForm.user_country_code_3.value=="@@") {
            err_msg +="Nazione mancante o valore non valido.\n";
        }
        if (!is_present(pForm.user_phone.value,2,32)) {
            err_msg +="Telefono mancante o valore non valido.\n"
        }
        if (!is_email(pForm.user_email.value)) {
            err_msg +="E-Mail dell'utente mancante o valore non valido.\n"
        }
        if (!pForm.statement_1[0].checked) {
            err_msg +="Non e' stata accettata la clausola sul trattamento dei dati personali.\n";
        }
        if (err_msg!="") {
            err_msg="ATTENZIONE!\n\n"+err_msg;
            alert(err_msg);
            err_msg="";
            return false;
        } else {
            return true;
        }
    }

    function check_newsletter_subscription_form(pForm) {
        var err_msg="";
        if (!is_email(pForm.mlist_user_email.value,2)) {
            err_msg +="Indirizzo e-mail mancante o valore non valido.\n";
        }
        if (err_msg!="") {
            err_msg="ATTENZIONE!\n\n"+err_msg;
            alert(err_msg);
            err_msg="";
            return false;
        } else {
            return true;
        }
    }


    function check_search_form(pForm) {
        var err_msg="";
        if (!is_present(pForm.search_query.value,2)) {
            err_msg +="Non e' stato indicato nulla da cercare.\n(Minimo 2 caratteri)";
        }
        if (err_msg!="") {
            err_msg="ATTENZIONE!\n\n"+err_msg;
            alert(err_msg);
            err_msg="";
            return false;
        } else {
            return true;
        }
    }

    function check_users_change_password_form(pForm) {
        var err_msg="";
        if (!is_present(pForm.user_old_password.value,4,32)) {
            err_msg +="Password attuale mancante o valore non valido.\n";
        }
        if (!is_present(pForm.user_new_password.value,4,32)) {
            err_msg +="Nuova password mancante o valore non valido.\n";
        }
        if (!is_present(pForm.user_confirm_password.value,4,32)) {
            err_msg +="Conferma password mancante o valore non valido.\n";
        }
        if (pForm.user_new_password.value!=pForm.user_confirm_password.value) {
            err_msg +="I campi nuova password e conferma password contengono valori diversi.\n";
        }
        if (err_msg!="") {
            err_msg="ATTENZIONE!\n\n"+err_msg;
            alert(err_msg);
            err_msg="";
            return false;
        } else {
            return true;
        }
    }
    
    function check_users_retrieve_password_form(pForm) {
        var err_msg="";
        if (!is_present(pForm.user_login.value,4,255)) {
            err_msg +="Login mancante o valore non valido.\n";
        }
        if (err_msg!="") {
            err_msg="ATTENZIONE!\n\n"+err_msg;
            alert(err_msg);
            err_msg="";
            return false;
        } else {
            return true;
        }
    }

function addbookmark(){
    var bookmarkurl="http://www.aeroservizi.com"
    var bookmarktitle="AEROSERVIZI GROUP"
    if (confirm("Desiderate aggiungere il nostro sito ai vostri preferiti?")) {
            window.external.AddFavorite(bookmarkurl,bookmarktitle)
    }
}

-->
