<!--
//#############################################################
function valida_FaleConosco(){
	msg = "Todos os campos marcados com * devem ser preenchidos."
	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 (setor.value == 0){
			alert(msg);
			setor.focus();
			return false;
		}
		if (mensagem.value.length == 0){
			alert(msg);
			mensagem.focus();
			return false;
		}
	}
	return true;
}
//#############################################################
function valida_EnvieAmigo(){
	msg = "Todos os campos marcados com * devem ser preenchidos."
	with(document.form1){
		if (remNome.value.length == 0){
			alert(msg);
			remNome.focus();
			return false;
		}
		if (remEmail.value.length == 0){
			alert(msg);
			remEmail.focus();
			return false;
		}else{
			prim = remEmail.value.indexOf("@");
			if((remEmail.value.indexOf("@",prim + 1) != -1) || (remEmail.value.indexOf(".") < 1)){
				alert("Esse não é um e-mail válido.");
				remEmail.focus();
				return false;
			}
		}
		if (desNome.value.length == 0){
			alert(msg);
			desNome.focus();
			return false;
		}
		if (desEmail.value.length == 0){
			alert(msg);
			desEmail.focus();
			return false;
		}else{
			prim = desEmail.value.indexOf("@");
			if((desEmail.value.indexOf("@",prim + 1) != -1) || (desEmail.value.indexOf(".") < 1)){
				alert("Esse não é um e-mail válido.");
				desEmail.focus();
				return false;
			}
		}
	}
	return true;
}
//#############################################################
function loadBanner(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>');
}
//#############################################################
function loadBannersMostra(){
	var ran_number = Math.floor(Math.random() * 3) + 1;			//NÚMERO RADÔMICO DE 1 A 3.
	loadBanner(468,60,'http://www.fumec.br/midia/fullbanner_mostra2008_'+ran_number+'.swf');
}
//#############################################################
function jumpTo(URL_List){
   var URL = URL_List.options[URL_List.selectedIndex].value;
   window.location.href = URL;
}
//#############################################################
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);
}
//#############################################################
-->