$(document).ready(function() {
if (getParameterByName("s") == "1")
 {
    $.blockUI({css: {width: '581px', marginLeft: '-90px', border: 'none'}, message: $('#msgbox-sucesso') });
 }
 else if (getParameterByName("s") == "2")
 {
    $.blockUI({css: {width: '581px', marginLeft: '-90px', border: 'none'}, message: $('#msgbox-erro') });
 }

function getParameterByName(name) { 
 
    var match = RegExp('[?&]' + name + '=([^&]*)') 
                    .exec(window.location.search); 
 
    return match && decodeURIComponent(match[1].replace(/\+/g, ' ')); 
 
} 
    $('body').click(function() {
        $.unblockUI();
    });
});
