$.fn.UpdateLabelState = function() {
    this.each(function() {
        if (this.value == '') 
            $('label[for="'+$(this).attr('id')+'"]').attr('style', '')
        else
            $('label[for="'+$(this).attr('id')+'"]').attr('style', 'display: none')
    })
}
$(document).ready(function() {
    $('input[type="text"].combined').focus(function() {
        $('label[for="'+$(this).attr('id')+'"]').attr('style', 'display: none')
    });
    $('textarea.combined').focus(function() {
        $('label[for="'+$(this).attr('id')+'"]').attr('style', 'display: none')
    });
    $('input[type="text"].combined').blur(function() {
        $(this).UpdateLabelState()
    } );
    $('textarea.combined').blur(function() {
        $(this).UpdateLabelState()
    } );
    $('input[type="text"].combined').UpdateLabelState()
    $('textarea.combined').UpdateLabelState()
})

