<!--
//#############################################################
msg			= "Todos os campos marcados com * devem ser preenchidos.";
msgEmail	= "Esse não é um e-mail válido.";
//#############################################################
function vld_contato(){
	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{
			if(!vld_email(email.value)){
				alert(msgEmail);
				email.focus();
				return false;
			}
		}
		if(mensagem.value.length == 0){
			alert(msg);
			mensagem.focus();
			return false;
		}
	}
	return true;
}
//#############################################################
function vld_email(email){
	prim = email.indexOf("@");
	if((email.indexOf("@",prim + 1) != -1) || (email.indexOf(".") < 1)){
		return false;
	}else{
		return true;
	}
}
//#############################################################
function load_swf(ban_widht,ban_height,ban_swf){
	document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="' + ban_widht + '" height="' + ban_height + '">');
	document.writeln('  <param name="movie" value="' + ban_swf + '">');
	document.writeln('  <param name="quality" value="high">');
	document.writeln('  <embed src="' + ban_swf + '" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + ban_widht + '" height="' + ban_height + '"></embed>');
	document.writeln('</object>');
}
//#############################################################
-->