function testVal(myA) {
    check=true;
    for(var i=0; i<myA.length; i++) {
        if(!document.getElementById(myA[i]) || document.getElementById(myA[i]).value.length<1) {
            check=false;
            if(document.getElementById('tr_'+myA[i])) {
                document.getElementById('tr_'+myA[i]).style.backgroundColor='orange';
            }
        }
    }
    if(!check) {
        self.alert('Bitte alle Pflichtfelder ausfuellen!');
    }
    return check;
}

$(document).ready(function() {
    $('.searchForm .inputField').attr('standardValue', $('.searchForm .inputField').val());
    $('.searchForm .inputField').focus(function() {
        if ($(this).val() == $(this).attr('standardValue')) {
            this.value = '';
        }
    });
    $('.searchForm .inputField').blur(function() {
        if (jQuery.trim($(this).val()) == '') {
            this.value = $(this).attr('standardValue');
        }
    });
});

$(document).ready(function() {
    $('a[href^=mailto:]').each(function() {
        this.href=this.href.replace('-at-','@');
        $(this).html($(this).html().replace('-at-', '@'));
    });
    //this.href=this.href.replace(\'-at-\',\'@\');
});
