$(document).ready(function(){$('#comment_submit_btn').click(function(e){var name=$('#commentform #name').val();var email=$('#commentform #email').val();var comment=$('#commentform #comment').val();var filter=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(!filter.test(email)){email=false;}
if(!email||name.length<3||comment.length<8){e.preventDefault();$('#commentform #error').show();}})
$('#commentform #error').click(function(){$(this).hide();})})
