<!--
function janela( windowURL, windowName, windowFeatures )
{ 
	return window.open( windowURL, windowName, windowFeatures ) ; 
} 
function Validar(theForm)
{
	if (theForm.nome.value == "")
	{
		alert("Digite um valor para \"Nome\".");
		theForm.nome.select();
		return (false);
	}
	if (theForm.email.value == "")
	{
		alert("Digite um valor para \"E-mail\".");
		theForm.email.select();
		return (false);
	}
	var Erro = "Seu e-mail não é válido.\nPreencha-o assim:\nusuario@provedor.com.br";
	if ((theForm.email.value.indexOf("@") == -1) || (theForm.email.value.indexOf(".") == -1))
	{
		alert(Erro);
		theForm.email.select();
		return (false);
	}



	var check_tel = "0123456789-() ";
	var Valid_cel = true;
	var Valid_tel = true;
	for (i = 0;  i < theForm.Celular.value.length;  i++)
	{
		ch = theForm.Celular.value.charAt(i);
		for (j = 0;  j < check_tel.length;  j++)
		if (ch == check_tel.charAt(j))
			break;
		if (j == check_tel.length)
		{
			Valid_cel = false;
			break;
		}
	}
	if (!Valid_cel && theForm.Celular.value.length!=0)
	{
		alert("Digite apenas parênteses, hífen e espaço em \"Celular\".");
		theForm.Celular.select();
		return (false);
	}
	if (theForm.Celular.value.length < 8 && theForm.Celular.value.length!=0)
	{
		alert("Digite pelo menos 8 números em \"Celular\".");
		theForm.Celular.select();
		return (false);
	}
	for (i = 0;  i < theForm.Fone_Comercial.value.length;  i++)
	{
		ch = theForm.Fone_Comercial.value.charAt(i);
		for (j = 0;  j < check_tel.length;  j++)
		if (ch == check_tel.charAt(j))
			break;
		if (j == check_tel.length)
		{
			Valid_tel = false;
			break;
		}
	}
	if (!Valid_tel && theForm.Fone_Comercial.value.length!=0)
	{
		alert("Digite apenas parênteses, hífen e espaço em \"Tel. Comercial\".");
		theForm.Fone_Comercial.select();
		return (false);
	}
	if (theForm.Fone_Comercial.value.length < 7 && theForm.Fone_Comercial.value.length!=0)
	{
		alert("Digite pelo menos 7 números em \"Tel. Comercial\".");
		theForm.Fone_Comercial.select();
		return (false);
	}


	return (true);
}
//-->