$(document).ready(function() {

	$('input#s').val("Search the Blog");

	$('input#s').click(function() {
		$('input#s').val("");
	});

	$('input#s').blur(function() {
		$('input#s').val("Search the Blog");
	});
	
	$('.text').click(function() {
		if (this.value == this.defaultValue) {
		this.value = '';
		}
	});
	
	$('.text').blur(function() {
		if (this.value == '') {
		this.value = this.defaultValue;
		}
	});
	
/*
	$("input#submit").click(function(){
	
		$(".error").hide();
		var hasError = false;
		var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
		var emailFromVal = $("#email").val();
		
		if(emailFromVal == 'Your Email Address') {
			$(".ah-form").before('<p class="error">Please enter an email address.</p>');
			hasError = true;
		} else if(!emailReg.test(emailFromVal)) {	
			$(".ah-form").before('<p class="error">Please enter a valid email address.</p>');
			hasError = true;
		}
		
		return false;

	});
*/
	

});	

