
function getCurso(curso)
{
	if(curso.indexOf('.') >= 0)
	{
		MM_openBrWindow(curso,'','scrollbars=yes,width=710,height=550');return false
	}
}
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

function validaFormContato(nome, email, assunto, mensagem)
{
	nome     = document.getElementById(nome).value;
	email    = document.getElementById(email).value;
	assunto  = document.getElementById(assunto).value;
	mensagem = document.getElementById(mensagem).value;
	
	if(nome.length < 3)
	{
		alert('Preencha o nome corretamente');
		return false;
	}
	if(email.indexOf('@') < 0 || email.indexOf('.') < 0)
	{
		alert('Preencha o E-mail corretamente');
		return false;
	}
	if(assunto.length < 3)
	{
		alert('Preencha o assunto corretamente');	
		return false;
	}
	if(mensagem.length < 3)
	{
		alert('Preencha a mensagem corretamente');	
		return false;
	}
}
function validaFormCadastro(nome, email, cemail, end, n, bairro,estado, cidade, cep1, cep2, op,tel, data_dia,data_mes,data_ano, tipo1,tipo2,tipo3)
{
	nome     = document.getElementById(nome).value;
	email    = document.getElementById(email).value;
	cemail   = document.getElementById(cemail).value;
	end      = document.getElementById(end).value;
	n        = document.getElementById(n).value;
	bairro   = document.getElementById(bairro).value;
	estado   = document.getElementById(estado).value;
	cidade   = document.getElementById(cidade).value;
	cep1     = document.getElementById(cep1).value;
	cep2     = document.getElementById(cep2).value;
	op       = document.getElementById(op).value;
	tel      = document.getElementById(tel).value;
	data_dia = document.getElementById(data_dia).value;
	data_mes = document.getElementById(data_mes).value;
	data_ano = document.getElementById(data_ano).value;
	tipo1    = document.getElementById(tipo1);
	tipo2    = document.getElementById(tipo2);
	tipo3    = document.getElementById(tipo3);

	if(nome.length < 3)
	{
		alert('Preencha o nome corretamente');
		return false;
	}
	if(email.indexOf('@') < 0 || email.indexOf('.') < 0)
	{
		alert('Preencha o E-mail corretamente');
		return false;
	}
	if(email != cemail || cemail==0)
	{
		alert('O campo Confirme o E-mail: deve ser igual ao E-mail');
		return false;
	}
	/*
	if(end.length < 3 || n.length < 1 || bairro.length < 3)
	{
		alert('Preencha os campos do endereço corretamente');	
		return false;
	}
	if(cidade.length == '')
	{
		alert('Preencha o campo cidade corretamente');	
		return false;
	}
	if((isNaN(cep1) == true) || isNaN(cep2)== true)
	{
		alert('Preencha o campo cep corretamente');	
		return false;
	}
	*/
	if(isNaN(op) == true || isNaN(tel) == true)
	{
		alert('Preencha o campo telefone corretamente');	
		return false;
	}
	/*
	if(tipo1.checked == false && tipo2.checked == false && tipo3.checked == false)
	{
		alert('Preencha uma das alternativas abaixo');	
		return false;
	}
	
	if(isNaN(data_dia) == true || isNaN(data_mes) == true || isNaN(data_ano) == true)
	{
		alert('Preencha a data de aniversário corretamente');	
		return false;
	}
	*/
}

