(function( $ ){
	$.fn.checkInput = function(text) {
		return this.each(function() { // for chainability
			if(!$(this).val()) $(this).val(text);
			$(this).focus(function(){
				if($(this).val() == text) $(this).val('');
				$(this).css('color', '#131313');
			});
			$(this).blur(function(){
				if($.trim($(this).val()) === '') {
					$(this).val(text);
					$(this).css('color', '#999');
				}
			});
		});
	}
})( jQuery );
