<!--
//##########################################################################
function valida_busca(){
	msg = "Digite pelo menos uma palavra com no mínimo 3 letras"
	with(document.formBusca){
		if (key.value.length < 3){
			alert(msg);
			key.focus();
			return false;
		}
	}
	return true;
}
//##########################################################################
function valida_contato(){
	msg = "Todos os campos 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;
		}
		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>');
}
//##########################################################################
//-->