<!--
function MM_popupMsg(msg)
 {
alert(msg);
}
//-->


<!-- Begin
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
countfield.value = maxlimit - field.value.length;
}
// End -->


<!-- Begin
function Inserir()
{ //open function's key
var Form, URL, resposta, s;
Form = document.comentarioForm;
URL = document.URL.toString();
if (Form.nome.value.length < 8)
{
alert("Por favor digite um nome válido.");
Form.nome.focus();
return false;
}
if (Form.idade.value.length < 2)
{
alert("Por favor, informe sua idade.");
Form.idade.focus();
return false;
}
if (Form.disciplina.value.length < 2)
{
alert("Por favor, informe a disciplina que leciona. Se não leciosa, escreva nenhuma.");
Form.disciplina.focus();
return false;
} if (Form.endereco.value.length < 12)
{
alert("Por favor, informe um endereço válido.");
Form.endereco.focus();
return false;
}
if (Form.numero.value.length <1)
{
alert("Por favor, informe o número!");
Form.numero.focus();
return false;
}
if (Form.cidade.value.length <4)
{
alert("Por favor, informe a sua cidade!");
Form.cidade.focus();
return false;
}
if(Form.estado == "")
{
alert("Por favor, selecione o Estado.");
document.getElementById('estado').focus();
return false;
}
if (Form.email.value.length < 10)
{
alert("Por favor, informe um endereço de e-mail válido.");
Form.email.focus();
return false;
}
if (Form.DDD.value.length < 2)
{
alert("Por favor, informe o DDD");
Form.DDD.focus();
return false;
}
if (Form.fone.value.length < 8)
{
alert("Por favor, informe um número de telefone válido.");
Form.fone.focus();
return false;
}
var div_enviando = document.getElementById('bot_con');
var div_envia = document.getElementById('bot_env');
div_enviar.style.display = 'none'; div_enviando.innerHTML = 'Enviando...'; return true;
}
// End -->
