function form_simples(ele){
	numero = ele.elements.length
	erro = "";
	for(i=0; i<numero; i++){
		if(ele.elements[i].alt != ""){
			if(ele.elements[i].name == "email" || ele.elements[i].name == "e-mail" || ele.elements[i].name == "mail"){
				if(ele.elements[i].value.indexOf('@')==-1 || ele.elements[i].value.indexOf('.')==-1){
				erro = erro + "Preencha o campo '"+ ele.elements[i].alt.toUpperCase() +"' corretamente. \n"
				}
			}else{
				if(ele.elements[i].value==""){
				erro = erro + "Preencha o campo '"+ ele.elements[i].alt.toUpperCase() +"'. \n"
				}
			}
		}
		if(ele.elements[i].title != ""){
			if(ele.elements[i].value==""){
			erro = erro + "Preencha o campo '"+ ele.elements[i].title.toUpperCase() +"'. \n"
			}
		}
	}

	if(erro != ""){
		alert("Erros:\n"+erro);
		return false
	}else{
		return true
	}
}
function abre_calc(){
		window.open('calculadora.htm','','width='+screen.width-20+',height='+screen.height-100+',scrollbars=yes');
	}
function flash(widht,height,swf,wmode){
 document.writeln('     <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" WIDTH="'+widht+'" HEIGHT="'+height+'" ALIGN="">');
 document.writeln('       <PARAM NAME="movie" VALUE="'+swf+'">');
 document.writeln('       <PARAM NAME="quality" VALUE="high">');
 document.writeln('       <PARAM NAME="wmode" VALUE="'+wmode+'">');
 document.writeln('       <PARAM NAME="bgcolor" VALUE="#FFFFFF">');
 document.writeln('      <EMBED src="'+swf+'" quality="high" wmode="'+wmode+'" bgcolor="#FFFFFF"  WIDTH="'+widht+'" HEIGHT="'+height+'" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
 document.writeln('     </OBJECT>');
 }
function menu_in(){
	document.getElementById("frase").style.display='none';
	document.getElementById("menu_midia").style.display='none';
	document.getElementById("menu_servico").style.display='';
	document.getElementById("menu_parasabermais").style.display='none';
}
function menu_in2(){
	document.getElementById("frase").style.display='none';
	document.getElementById("menu_servico").style.display='none';
	document.getElementById("menu_midia").style.display='';
	document.getElementById("menu_parasabermais").style.display='none';
}
function menu_in3(){
	document.getElementById("frase").style.display='none';
	document.getElementById("menu_servico").style.display='none';
	document.getElementById("menu_midia").style.display='none';
	document.getElementById("menu_parasabermais").style.display='';
}
function menu_out(){
	document.getElementById("frase").style.display='inline';
	document.getElementById("menu_servico").style.display='none';
	document.getElementById("menu_midia").style.display='none';
	document.getElementById("menu_parasabermais").style.display='none';
}
function sorteia_frase(){
ml = Math.round(Math.random()*5)
arrSorteio = new Array();
/*arrSorteio[0] = 'Nós estamos fazendo nossa parte... Participe!';
arrSorteio[1] = 'Contribua com o mundo!';
arrSorteio[2] = 'Contribua com o planeta!';
arrSorteio[3] = 'Se todos fizerem um pouco, o todo será muito!';
arrSorteio[4] = 'Viver hoje, sem comprometer o amanhã!';
arrSorteio[5] = 'Pense a longo prazo e haja a curto prazo!';*/
arrSorteio[0] = '<img src="imagens/frase1.jpg">';
arrSorteio[1] = '<img src="imagens/frase2.jpg">';
arrSorteio[2] = '<img src="imagens/frase3.jpg">';
arrSorteio[3] = '<img src="imagens/frase4.jpg">';
arrSorteio[4] = '<img src="imagens/frase5.jpg">';
arrSorteio[5] = '<img src="imagens/frase6.jpg">';

document.getElementById("frase_impacto").innerHTML = arrSorteio[ml];
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}