$(document).ready(function() {

	$("body input[type='text']").each(function(){
		if ($(this).val() == '') {
			$(this).val($(this).attr('title'));
			$(this).css('color','#ddd');
		} else if ($(this).val() == $(this).attr('title')) {
			$(this).css('color','#ccc');
		} else {
			$(this).css('color','#000');
		}
	});
	
	// Set the value to the title attribute if blank or clear 
	// the value on focus if set to the title attribute
		$("input[type='text']").focus(function() {
	  		if ($(this).val() == $(this).attr('title')) {
	    		$(this).val('');
		 		$(this).css("color","#000");
	  		}
		}).blur(function() {
			if ($(this).val() == '') {
	    		$(this).val($(this).attr('title'));
		  		$(this).css("color","#ddd");
	  		} else if ($(this).val() == $(this).attr('title')) {
				$(this).css("color","#ddd");
			}
		});

}); // This is the end of the $(document).ready(function() ...