//---------------------------------------------------------------------------------------------------------------

function MM_jumpMenu(targ,selObj,restore){ //redirect to quickmenu link
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

//---------------------------------------------------------------------------------------------------------------

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//---------------------------------------------------------------------------------------------------------------

function recomende (valor) {  //recomende
  search = window.open(valor,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=330,height=300")
}

//---------------------------------------------------------------------------------------------------------------

function ficha (valor) {  //ficha cadastral
  search = window.open(valor,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=740,height=500")
}

//---------------------------------------------------------------------------------------------------------------

function detalhes (valor) {  //especificações detalhadas
  search = window.open(valor,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=500,height=460")
}

//---------------------------------------------------------------------------------------------------------------

function detalhes2 (valor) {  //especificações detalhadas
  search = window.open(valor,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=760,height=380")
}

//---------------------------------------------------------------------------------------------------------------

function montagem (valor) {  //montagem dos produtos
  search = window.open(valor,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=700,height=500")
}

//---------------------------------------------------------------------------------------------------------------

function fotos (valor) {  //fotos
  search = window.open(valor,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=250,height=370")
}

//---------------------------------------------------------------------------------------------------------------

function fotos2 (valor) {  //fotos
  search = window.open(valor,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=370,height=250")
}

//---------------------------------------------------------------------------------------------------------------

function troca (valor) {  //ponto de troca
  search = window.open(valor,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=750,height=500")
}

//---------------------------------------------------------------------------------------------------------------

	function valida_form_dados(form){

		var nome = form.nome.value
		if (nome == ""){
			alert("Preencha o campo Nome.");
			form.nome.focus()
			return false
		}
		var telefone = form.telefone.value
		if (telefone == ""){
			alert("Preencha o campo Telefone.");
			form.telefone.focus()
			return false
		}
		var email = form.email.value;
		if (email == "" || email == null){
			alert("Preencha o campo E-mail corretamente.")
			form.email.focus()
			return false
		}
		var posponto = form.email.value.indexOf('.', 0);
		var contaemail = email.length;
		var contadominio = contaemail - posponto;
		if (form.email.value.indexOf('@', 0) == -1 || form.email.value.indexOf('.', 0) == -1 ||
			contadominio < 3) {
			alert("E-mail invalido. Verifique-o.");
			form.email.focus()
			return false
		}
		var assunto = form.assunto.value
		if (assunto == ""){
			alert("Preencha o campo Assunto.");
			form.assunto.focus()
			return false
		}
		var mensagem = form.mensagem.value
		if (mensagem == ""){
			alert("Preencha o campo Mensagem.");
			form.mensagem.focus()
			return false
		}
		form.submit();
	}

//---------------------------------------------------------------------------------------------------------------
