<!--
//#############################################################
function valida_Curso(){
	msg = "Os campos marcados com * são de preenchimento obrigatório"
	with(document.form1){
		if (nome.value.length == 0){
			alert(msg);
			nome.focus();
			return false;
		}
		if (profissao.value.length == 0){
			alert(msg);
			profissao.focus();
			return false;
		}
		if (email.value.length == 0){
			alert(msg);
			email.focus();
			return false;
		}else{
			prim = email.value.indexOf("@");
			if((email.value.indexOf("@",prim + 1) != -1) || (email.value.indexOf(".") < 1)){
				alert("Esse não é um e-mail válido.");
				email.focus();
				return false;
			}
		}
		if (endereco.value.length == 0){
			alert(msg);
			endereco.focus();
			return false;
		}
		if (telefone.value.length == 0){
			alert(msg);
			telefone.focus();
			return false;
		}
		if (curso.value.length == 0){
			alert(msg);
			curso.focus();
			return false;
		}
		if (data.value.length == 0){
			alert(msg);
			data.focus();
			return false;
		}
		if (local.value.length == 0){
			alert(msg);
			local.focus();
			return false;
		}
	}
	return true;
}
//#############################################################
function valida_ProdutosContato(){
	msg = "Os campos marcados com * são de preenchimento obrigatório"
	with(document.form1){
		if (nome.value.length == 0){
			alert(msg);
			nome.focus();
			return false;
		}
		if (email.value.length == 0){
			alert(msg);
			email.focus();
			return false;
		}else{
			prim = email.value.indexOf("@");
			if((email.value.indexOf("@",prim + 1) != -1) || (email.value.indexOf(".") < 1)){
				alert("Esse não é um e-mail válido.");
				email.focus();
				return false;
			}
		}
		if (mensagem.value.length == 0){
			alert(msg);
			mensagem.focus();
			return false;
		}
	}
	return true;
}
//#############################################################
function valida_Contato(){
	msg = "Os campos marcados com * são de preenchimento obrigatório"
	with(document.form1){
		if (nome.value.length == 0){
			alert(msg);
			nome.focus();
			return false;
		}
		if (email.value.length == 0){
			alert(msg);
			email.focus();
			return false;
		}else{
			prim = email.value.indexOf("@");
			if((email.value.indexOf("@",prim + 1) != -1) || (email.value.indexOf(".") < 1)){
				alert("Esse não é um e-mail válido.");
				email.focus();
				return false;
			}
		}
		if (assunto.value == 0){
			alert(msg);
			assunto.focus();
			return false;
		}
		if (mensagem.value.length == 0){
			alert(msg);
			mensagem.focus();
			return false;
		}
	}
	return true;
}
//#############################################################
function loadSwf(swfWidht,swfHeight,swfPath){
	document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + swfWidht + '" height="' + swfHeight + '">');
	document.writeln('  <param name="movie" value="../en/swf/' + swfPath + '">');
	document.writeln('  <param name="quality" value="high">');
	document.writeln('  <embed src="../en/swf/' + swfPath + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + swfWidht + '" height="' + swfHeight + '"></embed>');
	document.writeln('</object>');
}
//#############################################################
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//#############################################################
-->
