function helpBox() {
	alert('Actualmente cada visitante tiene 3 mensajes disponibles al día, cada número sólo puede recibir 1 mensaje al día y existe un limite global de 50 mensajes diarios.\n\nCon ayuda de Ustedes y del buen uso que le den a esta herramienta, esta cantidad aumentará en un futuro cercano y podremos prestarles nuevos servicios.');
	return true;
}

function sendSms() {
	document.smsSender.submit();

}

function cleanForm() {
	document.smsSender.number.value = '';
	document.smsSender.message.value = '';
}

/*
Snippets from others
*/

/* 
Created by: Steve | http://jsmadeeasy.com/ 
*/

function getObject(obj) {
  var theObj;
  if(document.all) {
    if(typeof obj=="string") {
      return document.all(obj);
    } else {
      return obj.style;
    }
  }
  if(document.getElementById) {
    if(typeof obj=="string") {
      return document.getElementById(obj);
    } else {
      return obj.style;
    }
  }
  return null;
}

function toCount(entrance,exit,text,characters) {
  var entranceObj=getObject(entrance);
  var exitObj=getObject(exit);
  var length=characters - entranceObj.value.length;
  if(length <= 0) {
    length=0;
    text='<span class="disable"> '+text+' </span>';
    entranceObj.value=entranceObj.value.substr(0,characters);
  }
  exitObj.innerHTML = text.replace("{CHAR}",length);
}

function numOnly(e){
     tecla = (document.all) ? e.keyCode : e.which;
    
    if (tecla==8) return true;
    
    patron = /\d/;
    
    te = String.fromCharCode(tecla);
    
    return patron.test(te);
}