(function($){
	function reset(emt){
		
		$(emt).val($(emt).attr('title'));
	}

	$.fn.makePlaceholder = function(){
		
		$(this).attr('title',$(this).val())
		
		return $(this).each(function(){
			reset(this);
			
			$(this).focus(function(){
				if($(this).val() == $(this).attr('title')){
					$(this).val('');
				}
			});
			
			$(this).blur(function(){
				if(('' + $(this).val()).replace(/\s/g, '') == ''){
					reset(this);
				}
			});
		});
	}
})(jQuery);
