//adicianar a classe clearinput no seu input
	/*jQuery.fn.clearinput = function(){				
		$(this).bind('blur', function() {
				rulesParsing = $(this).attr("class");
				rulesRegExp = /\{(.*)\}/;
				getRules = rulesRegExp.exec(rulesParsing);		
				str = getRules[1];
				
				//pattern = /\{|,|\}/;
				//result = str.split(pattern);
			if($(this).val() == ""){				
				$(this).val(str);
			}
        });
		
		
		$(this).bind('focus', function() {
        	$(this).val("");
        });
	};*/

	
		$(function(){
		$(".clearinput").each(function(id){
			$(this).removeClass("clearinput");		  
			$(this).addClass("clearinput{"+$(this).val()+"}");	
			$(this).bind('blur', function() {
				rulesParsing = $(this).attr("class");
				rulesRegExp = /\{(.*)\}/;
				getRules = rulesRegExp.exec(rulesParsing);		
				str = getRules[1];
				
				/*pattern = /\{|,|\}/;
				result = str.split(pattern);*/
				if($(this).val() == ""){				
					$(this).val(str);
				}
        	});
		
		
			$(this).bind('focus', function() {
				$(this).val("");
			});
  		 });			 	
	});
