function countChars(form) {
if(document.formcon.msg.value.length>800) {
alert("Sua mensagem deve conter no máximo 800 caracteres.");
document.formcon.msg.value = document.formcon.msg.value.substring(0,800);
}
document.formcon.callback.value = document.formcon.msg.value.length;
}
function isDigit (c) {
return ( ((c >= "0") && (c <= "9")) )
}
function isInteger (s)
{   var i;
for (i = 0; i < s.length; i++)
{
var c = s.charAt(i);
if (!isDigit(c)) return false;
}
return true;
}