 $(function() {  
   $('.req').hide();

   $("#sendform").click(function() {  

	$('.req').hide();  
	  var comment = $("textarea#comment").val();  
	    if (comment == "") {  
	  $("#reqComment").show();
	  $("textarea#comment").focus();  
	  return false;  
	}
	
	    if (comment == "Your Comment") {  
	  $("#reqComment").show();
	  $("textarea#comment").focus();  
	  return false;  
	}
	
	  var author = $("input#author").val();  
	    if (author == "") {  
	  $("#reqName").show();
	  $("input#author").focus();  
	  return false;  
	}
	
	    if (author == "Your Name") {  
	  $("#reqName").show();
	  $("input#author").focus();  
	  return false;  
	}
	
	  var email = $("input#email").val();  
	    if (email == "") {  
	  $("#reqEmail").show();
	  $("input#email").focus();  
	  return false;  
	}
	
	    if (email == "Your Email (will not be used)") {  
	  $("#reqEmail").show();
	  $("input#email").focus();  
	  return false;  
	}
	
	  var url = $("input#url").val();  
	
	$("form#commentform").submit();
	
		$('#commentform').html("<div class='thanks'></div>")  
	     .append("Thanks! Your Comment will be publish soon.")  
	     .hide()  
	     .fadeIn(1500, function() {  
	       $('.toda').append("<!-- -->");  
	     });
	

	/* ajax submission
	 var dataString = 'comment='+ comment + '&author=' + author + '&email=' + email + '&url=' + url;  
	// alert (dataString);return false;

	 $.ajax({  
	   type: "POST",  
	   url: "http://blog.thewwqgame.com/wp-comments-post.php",  
	   data: dataString,  
	   success: function() {  
	     $('#commentform').html("<div class='thanks'></div>");  
	     $('#commentform').html("thank you!<br />")  
	     .append("thanks!")  
	     .hide()  
	     .fadeIn(1500, function() {  
	       $('.toda').append("<!-- -->");  
	     });  
	   } error: function() 	{  
		     $('#commentform').html("<div class='blahhh'></div>");  
		     $('#commentform').html("blahhhh!<br />")  
		     .append("blahhhh!")  
		     .hide()  
		     .fadeIn(1500, function() {  
		       $('.toda').append("<!-- -->");  
		     });  
		   }
	 });  
	 return false; */

   });  
 });