<script src="http://code.jquery.com/jquery-latest.js"></script>
<input type="text" id="unblckinpt" value="" placeholder="Enter secret code here" size="40"><br>
<input type="button" id="unblckbtn" value="Отправить">
<script type="text/javascript">
$('#unblckbtn').click(function(){
var rightcode = "q";
if($('#unblckinpt').val() != rightcode){
alert('qqqq');
} else {
//setcookie("block","no",10);
$("#errorbody").hide("fast");
}
});
</script>