<!-- 
    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 (min. 2 caratteri).\n";
        }
        if (err_msg!="") {
            err_msg="ATTENZIONE!\n\n"+err_msg;
            alert(err_msg);
            err_msg="";
            return false;
        } else {
            return true;
        }
    }

    function check_structures_search_form(pForm) {
        var err_msg="";
        if (!is_present(pForm.structure_query.value,2)) {
            err_msg +="Non e' stato indicato nulla da cercare (min. 2 caratteri).\n";
        }
        if (err_msg!="") {
            err_msg="ATTENZIONE!\n\n"+err_msg;
            alert(err_msg);
            err_msg="";
            return false;
        } else {
            return true;
        }
    }


    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_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 (min. 2 - max 64).\n";
        }
        if (!is_present(pForm.user_last_name.value,2,64)) {
            err_msg +="Cognome mancante o valore non valido (min. 2 - max 64).\n";
        }
        if (!is_present(pForm.user_login.value,4,255)) {
            err_msg +="Login mancante o valore non valido (min. 4 - max 255).\n";
        }
        if (!is_present(pForm.user_password.value,4,32)) {
            err_msg +="Password mancante o valore non valido (min. 4 - max 32).\n";
        }
        if (!is_present(pForm.user_city.value,4,64)) {
            err_msg +="Cittą mancante o valore non valido (min. 4 - max 64).\n";
        }
        if (!is_present(pForm.user_profession.value,4,32)) {
            err_msg +="Professione mancante o valore non valido (min. 4 - max 128).\n";
        }
        if (!is_present(pForm.user_address.value,2,64)) {
            err_msg +="Indirizzo mancante o valore non valido (min. 2 - max 64).\n";
        }
        if (!is_present(pForm.user_apartment.value,1,64)) {
            err_msg +="Num. civico mancante o valore non valido (min. 2 - max 64).\n";
        }
        if (!is_present(pForm.user_zip.value,2,64)) {
            err_msg +="CAP mancante o valore non valido (min. 2 - max 64).\n";
        }
        if (pForm.user_country_code_3.value=="") {
            err_msg +="Nazione mancante o valore non valido (min. 2 - max 64).\n";
        }
        if (!is_email(pForm.user_email.value)) {
            err_msg +="E-Mail dell'utente 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_users_change_password(pForm) {
        var err_msg="";
        if (!is_present(pForm.old_user_password.value,4,32)) {
            err_msg +="Password attuale mancante o valore non valido.\n";
        }
        if (!is_present(pForm.new_user_password.value,4,32)) {
            err_msg +="Nuova password mancante o valore non valido.\n";
        }
        if (!is_present(pForm.confirm_user_password.value,4,32)) {
            err_msg +="Conferma password mancante o valore non valido.\n";
        }
        if (pForm.new_user_password.value!=pForm.confirm_user_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_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 check_newsletters_subscribe_form(pForm) {
        var err_msg="";
        if (!is_email(pForm.user_email.value,4,255)) {
            err_msg +="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_newsletters_unsubscribe_form(pForm) {
        var err_msg="";
        if (!is_email(pForm.user_email.value,4,255)) {
            err_msg +="E-Mail 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_users_contact_form(pForm) {
        var err_msg="";
        if (!is_present(pForm.user_message.value,4,255)) {
            err_msg +="Messaggio mancante o valore non valido.\n";
        }
        if (!is_email(pForm.user_email.value,4,255)) {
            err_msg +="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_forums_messages_form(pForm) {
        var err_msg="";
        if (!is_present(pForm.forum_message_subject.value,2,255)) {
            err_msg +="Oggetto mancante o valore non valido.\n";
        }
        if (!is_present(pForm.forum_message_body.value,4,255)) {
            err_msg +="Testo del messaggio mancante 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_v_hospitals_form(pForm) {
        var err_msg="";
        if (!is_email(pForm.patient_email.value)) {
            err_msg +="E-Mail mancante o valore non valido.\n";
        }
        if (!is_present(pForm.patient_message.value,4,255)) {
            err_msg +="Testo del messaggio mancante 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;
        }
    }

-->