jQuery.fn.makeNiceInput = function(){
	
	this.each(function(){

		if($(this).hasClass('makenice')){
			
			name = $(this).attr('id');
			value = $('label[for='+name+']').hide().text();

			$(this).val(value);

			$(this).focus(function(){
			
				if($(this).val() == $('label[for='+$(this).attr('id')+']').text()){
				
					$(this).val('');
					$(this).addClass('current');
				
				};
			
			});
		
			$(this).blur(function(){
			
				if($(this).val() == ''){
				
					$(this).val($('label[for='+$(this).attr('id')+']').text());
					$(this).removeClass('current');
				
				};
				
			});

		}

  	});
	
};
