<!--
function ValidarInput (PesquisaDeOpiniao)
	{
	bad = new Boolean;
	bad = false;
	ErrorText = new String;
	if (!PesquisaDeOpiniao.R1[0].checked && !PesquisaDeOpiniao.R1[1].checked &&!PesquisaDeOpiniao.R1[2].checked)
		{
		if (PesquisaDeOpiniao.mensagem.value=="") {bad = true; ErrorText = "Favor preencha a mensagem ou indique se gostou desta matéria"};
		}
	if (!bad && PesquisaDeOpiniao.email.value != '') 
		{
		ErrorText = "O endereço de e-mail é incorreto";
		var szEmail = PesquisaDeOpiniao.email.value;
		var atpos = szEmail.indexOf ('@', 0);
		if (atpos <= 0) {bad = true;}
		else if (szEmail.charAt (++atpos) == '.')  {bad = true;}
		else 
			{
			if (szEmail.charAt (++atpos) == '.')  {bad = true;}
			atpos = szEmail.indexOf ('.', 0);
			if (atpos <= 0) {bad = true;}
			else
				{
				var nStringLength = szEmail.length;
				if (nStringLength == (atpos + 1)) {bad = true;}
				else if (szEmail.charAt (++atpos) == '.')  {bad = true;}
				if (!bad)
					{
					for (sIndex = 0; sIndex < nStringLength; sIndex ++)
						{
						var cChar = szEmail.charAt (sIndex);
						if (cChar == ' ') {bad = true;};
						}
					}
				}
			}
		}
	if (bad) {alert (ErrorText);} 
	else 
		{
		PesquisaDeOpiniao.submit();
		}
	}
//-->
