function limpiar(campo)
{
	if(campo.defaultValue==campo.value)
	{
		campo.value="";
	}
}

 function contador_letras(field, countfield, maxlimit) {
   if(field.value.length > maxlimit){
      field.value = field.value.substring(0, maxlimit);
   }
   else{ 
      countfield.value = maxlimit - field.value.length;
   }
}


function agregar_emoticon(emoticon){
	document.tformu.tmensaje.focus(); 
	document.tformu.tmensaje.value=document.tformu.tmensaje.value +" "+ emoticon; 
	document.tformu.tmensaje.focus()
	 }
