	function charsetcount(cantidad,textarea,contador){
		  var total = cantidad;
		  var comment = document.getElementById(textarea).value.length;
		  
	  	  var total_count = total-comment;
		  
	  	  if (total_count<=0){
		  total_count=0;
			  document.getElementById(textarea).value = document.getElementById(textarea).value.substr(0,total);
		  }
		  
		  document.getElementById(contador).innerHTML = total_count;
	}
