dmitriymar, вот вам хтмл-код:
<input type="text" id="unblckinpt" value="" placeholder="Enter secret code here" size="40"><br>
<input type="button" id="unblckbtn" value="Отправить">
ну и скрипт
$('#unblckbtn').click(function(){
var rightcode = "q";
if(document.getElementById('unblckinpt').value != rightcode){
alert('qqqq');
} else {
setcookie("block","no",10);
$("#errorbody").hide("fast");
}
});