
		$(document).ready(function(){
				$("input").each(function(){
					var t = $(this);
					var title = t.attr("title");
					
					if (title && t.val()=="") { 
				      // on blur, set value to title attr if text is blank
				      t.blur(function (){
				        if (t.val() == '') {
				          t.val(title);
				          t.addClass('blur');
				        }
				      });
				      // on focus, get rid of hint text
					  t.focus(function (){
				        if (t.val() == title) {
				          t.val('');
				          t.removeClass('blur');
				        }
				      });
					  // clear the pre-defined text when form is submitted
				      t.parents('form:first').submit(function(){
				          if (t.val() == title) {
				              t.val('');
				              t.removeClass('blur');
				          }
				      });
				      // blur all
					  t.blur().addClass('blur');
				    }
				});
				
		});
		
