$(document).ready(function() {
	
    $('input[control=cnpj]').blur( function() {
        if ($(this).val() == "") {
            $(this).val('CNPJ');
        }
    });
	
    $('input[control=cnpj]').focus( function() {
        if ($(this).val() == 'CNPJ') {
            $(this).val('');
        }
    });
	
    $('#cpfConvidado').blur( function() {
        if ($(this).val() == "") {
            $(this).val('CPF');
        }
    });
	
    $('#cpfConvidado').focus( function() {
        if ($(this).val() == 'CPF') {
            $(this).val('');
        }
    });
	
    $('input[control=senha]').focus( function() {
        if ($(this).val() == 'Senha') {
            $(this).val('');
        }
    });
	
    $("#senhaEmpresa").keypress(function(event){
        if (isCapsLock(event)) {
            $('#strongMessage').html(message.MN072);
            $('#divMessage').addClass('notice');
            $('#divMessage').show();
        }else{
            $('#divMessage').hide();
        }
    });
	
    $("#senhaConvidado").keypress(function(event){
        if (isCapsLock(event)) {
            $('#strongMessage').html(message.MN072);
            $('#divMessage').addClass('notice');
            $('#divMessage').show();
        }else {
            $('#divMessage').hide();
        }
    });
	
    $('input[control=senha]').blur( function() {
        if ($(this).val() == "") {
            $(this).val('Senha');
        }
    });
	
    $('#tx_email').blur( function() {
        if ($(this).val() == "") {
            $(this).val('E-mail');
        }
    });
	
    $('#tx_email').focus( function() {
        if ($(this).val() == 'E-mail') {
            $(this).val('');
        }
    });
	
});
