jQuery.validator.setDefaults({
    debug: true
    //success: "valid"
});


$(document).ready(function(){


    // empty input fields on click
    $('textarea#nachricht , input#subject , input#name , input#strasse , input#plz , input#ort , input#tel , input#email').focus(function ()
    {
        $(this).attr('value','');
    });


    // validate Input values (boxes+containers)

    jQuery.extend(jQuery.validator.messages, {
        max: $.validator.format("Bitte geben Sie einen Wert kleiner oder gleich {0} an.")
    });

    $('#request').validate({
        debug: false
    });

});

