//FUNCOES PARA FIBRALIT




//////////////////////////////////////////////////////////////////////////////////////////////
//mostrar e ocultar
function mostra(campo){
	document.getElementById(campo).style.display='';
}
function oculta(campo){
	document.getElementById(campo).style.display='none';
}


//MENU 
//NA LINHA DA PAGINA onmouseover="fnMudaOn('NOME DA ID');" onmouseout="fnMudaOff('NOME DA ID');
//CRIAR UMA LINHA DISPLAY NONE CHAMANDO PELA id
function fnMudaOn(id) {
	document.getElementById(id).style.display = '' ;
}	
function fnMudaOff(id) {
	document.getElementById(id).style.display = 'none' ;
}

///////////////////////////////////////////////////
/*VALIDA FORMULÁRIO DE FALE CONOSCO*/

function Form_Trabalhe_Conosco(form){
		
	if(form.nome.value.length<=1){
		alert("O campo Nome deve estar preenchido corretamente.");
		form.nome.focus();
		return false;
	}
	var str_email = form.email.value ;
    if (( str_email.search(/^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/) == -1 ) || ( str_email == 'Email:' ))
	{
    	alert("O campo E-mail deve ser preenchido corretamente");
    	form.email.focus();
    	return false;
	}

	if(form.telefone.value.length<=1){
		alert("O campo Telefone deve estar preenchido corretamente.");
		form.telefone.focus();
		return false;
	}
	if(form.assunto.value.length<=1){
		alert("O campo Assunto deve estar preenchido corretamente.");
		form.assunto.focus();
		return false;
	}
	if(form.mensagem.value.length<=1){
		alert("O campo Mensagem deve estar preenchido corretamente.");
		form.mensagem.focus();
		return false;
	}
	
}

// Função Indique Amigo

	function MM_openBrWindow(theURL,winName,features) { //v2.0
	  window.open(theURL,winName,features);
	  window.open(theURL,winName,features).focus();
	}
		



