  function limitChars(textid, limit, infodiv,no_show_error) {
	  if(!no_show_error) {	no_show_error = 0;}
	  
	  var text = $('#'+textid).val(); 
	
	  var textlength = text.length;
	
	  if(textlength > limit) {
		 if(!no_show_error) {	
			 $('#' + infodiv).html('You cannot write more then '+limit+' characters!');
		 } else {
			 $('#' + infodiv).html(limit +' character limit, 0 left.');
		 }
		 $('#'+textid).val(text.substr(0,limit));
		
		 return false;
	  } else {
		 $('#' + infodiv).html(limit +' character limit, '+ (limit - textlength) +' left.');
		 return true;
	
	 }

}
