$(function (){ 
        $('#no').click(function() { 
            $.unblockUI(); 
            $('blockUI').hide();
        }); 
});

function showAlert(file_path,url){
		var new_url=base64_encode(url+'&file='+file_path);
		var text=	"<script src='/js/alert_info.js' type='text/javascript'></script><h3>You must be logged in to download this file!<br />Please <a href='/login.php?url="+new_url+"'>Login</a> or <a href='/register.php?url="+new_url+"'>Register</a> </h3>"+ 
        			"<input type='button' id='no' value='Cancel' /> ";
	  $.blockUI({ message:text , css: { width: '475px' } }); 
}