<!-- 
    function confirm_delete(pLink,pAlert) {
        if (confirm(pAlert)) {
            top.location.href=pLink
        }
    }
    function check_users_galleries_form(pForm) {
        var err_msg="";
        if (!is_present(pForm.gallery_name.value,2,255)) {
            err_msg +="Nome galleria 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_galleries_images_form(pForm) {
        var err_msg="";
        if (pForm.gallery_id.value == "@@") {
            err_msg +="Galleria mancante o valore non valido.\n";
        }
        if (!is_present(pForm.gallery_image_name.value,2,255)) {
            err_msg +="Nome 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_auth_form(pForm) {
        var err_msg="";
        if (!is_login(pForm.user_login.value,6,32)) {
            err_msg +="Login/Nick mancante o valore non valido.\n";
        }
        if (!is_present(pForm.user_password.value,6,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_comment_form(pForm) {
        var err_msg="";
        if (!is_present(pForm.comment_user_name.value,2,255)) {
            err_msg +="Nome mancante o valore non valido.\n";
        }
        if (!is_present(pForm.comment_user_text.value,2,3000)) {
            err_msg +="Commento 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_first_name.value,4,255)) {
            err_msg +="Nome mancante o valore non valido.\n";
        }
        if (!is_present(pForm.user_last_name.value,4,255)) {
            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.statement_1.checked) {
            err_msg +="Non e' stata accettata la clausola sul trattamento dei dati personali.\n";
        }
        if (pForm.user_country_code_3.value=="@@") {
            err_msg +="Nazione mancante o valore non valido.\n";
        }
        if (!is_email(pForm.user_email.value)) {
            err_msg +="E-Mail mancante o valore non valido.\n";
        }
        if (!is_present(pForm.user_message.value,2,10000)) {
            err_msg +="Messaggio 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_login(pForm.user_login.value,6,32)) {
            err_msg +="Login mancante o valore non valido.\n"
        }
        if (!is_present(pForm.user_password.value,6,32)) {
            err_msg +="Password mancante o valore non valido.\n"
        }
        if (!is_present(pForm.user_password_confirm.value,6,32)) {
            err_msg +="Conferma Password mancante o valore non valido.\n"
        }
        if (pForm.user_password.value || pForm.user_password_confirm.value) {
            if (pForm.user_password.value!=pForm.user_password_confirm.value) {
                err_msg +="I campi Password e Conferma Password sono diversi.\n";
            }
        }
        if (!is_present(pForm.user_birth_day.value,1,2)) {
            err_msg +="Giorno di nascita mancante o valore non valido.\n"
        }
        if (!is_present(pForm.user_birth_month.value,1,2)) {
            err_msg +="Mese di nascita mancante o valore non valido.\n"
        }
        if (!is_present(pForm.user_birth_year.value,1,4)) {
            err_msg +="Anno di nascita mancante o valore non valido.\n"
        }
        
        if (!pForm.statement_1[0].checked) {
            err_msg +="Non avete approvato la clausola sulla privacy.\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_newsletters_form(pForm) {
        var err_msg="";
        if (!is_email(pForm.newsletter_user_email.value,2)) {
            err_msg +="Indirizzo e-mail mancante o valore non valido.\n";
        }
        if (pForm.newsletter_action.value == "@@") {
            err_msg +="Specificare l'azione desiderata (iscrizione o cancellazione).\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 (!pForm.linked_table.value) {
            err_msg +="Devi scegliere in quale sezione desideri cercare.";
        }   
        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_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;
        }
    }

    MM_reloadPage(true);
-->
