<!--
//#############################################################
function valida_publicacoes(){
	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("O e-mail digitado não é válido.");
				email.focus();
				return false;
			}
		}
		if (telefone.value.length == 0){
			alert(msg);
			telefone.focus();
			return false;
		}
		if (empresa.value.length == 0){
			alert(msg);
			empresa.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("O e-mail digitado não é válido.");
				email.focus();
				return false;
			}
		}
		if (assunto.value.length == 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=7,0,19,0" width="' + swfWidht + '" height="' + swfHeight + '">');
	document.writeln('  <param name="movie" value="/swf/' + swfPath + '">');
	document.writeln('  <param name="quality" value="high">');
	document.writeln('  <embed src="/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 exibeDiv(div){
	if(document.getElementById(div).style.display == 'none'){
		document.getElementById(div).style.display = 'block';
	} else {
		document.getElementById(div).style.display = 'none';
	}
}
//#############################################################
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}
//#############################################################
-->