noSpam = function( user, domain ) {
    document.location = 'mailto:' + user + '@' + domain;
}

trimiteFormular = function( formular_id )
{
    if ( ( $( 'ContactEmail' ).value == '' ) )
    {
        alert( 'Vă rugăm să introduceţi adresa dvs de e-mail.' );
        return false;
    }
    if ( ( $( 'ContactMesaj' ).value == '' ) )
    {
        alert( 'Vă rugăm să introduceţi mesajul dvs.' );
        return false;
    }

    this.emailRegExp = /^[-_a-z0-9]+(\.[-_a-z0-9]+)*@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]{2,6}$/;

    this.email = $( 'ContactEmail' ).value;

    this.expresie = this.email.match( this.emailRegExp );

    if ( $( 'ContactEmail' ).value === '' || !this.expresie )
    {
        alert( 'Vă rugăm să introduceţi o adresă de e-mail validă.' );
        return false;
    }
    if ( $( 'ContactMesaj' ).value === '' )
    {
        alert( 'Vă rugăm să introduceţi mesajul dvs.' );
        return false;
    }
    $( formular_id ).send(
                                        {
                                            method: 'post',
                                            onRequest: function() { formular_id.setOpacity( 0.1 ); },
                                            onComplete: function() { alert( 'Mesajul a fost trimis. Vă mulţumim!' ); formular_id.setOpacity( 1 ); }
                                        }
                                    );
    return false;
}