// NOVAS MDM
function creditos(){var LARGURA_TOTAL = (screen.availWidth - 500) / 2;var ALTURA_TOTAL = (screen.availHeight - 250) / 2; window.open("http://www.mdmstudio.com.br/creditos/index.php?BOX_QUAL_SITE=Copyright 2007 - 2008 - Polystell do Brasil&BOX_DIREITOS_SITE=Desenvolvimento do website, sistema, suporte e hospedagem<br>O conteúdo cadastrado neste website é de uso exclusivo da empresa<br>A cópia total ou parcial são proibidas&BOX_COD_SITE=56","","toolbar=no,statusbar=no,resizable=no,location=no,menubar=no,scrollbars=no,width=500,height=250,left="+LARGURA_TOTAL+",top="+ALTURA_TOTAL+"")}
function executarSwf_transparent(filme,alt,lar){document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + lar + '" height="' + alt + '">\n');document.write('<param name="movie" value="' + filme + '.swf" />\n');document.write('<param name="quality" value="high" />\n');document.write('<param name="menu" value="false" />\n');document.write('<param name="wmode" value="transparent" />\n');document.write('<embed src="' + filme + '.swf" width="' + lar + '" height="' + alt + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent">\n');document.write('</embed>\n');document.write('</object>\n');}
function executarSwf_white(filme, alt, lar){document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + lar + '" height="' + alt + '">\n');document.write('<param name="movie" value="' + filme + '.swf" />\n');document.write('<param name="quality" value="high" />\n');document.write('<param name="menu" value="false" />\n');document.write('<embed src="' + filme + '.swf" width="' + lar + '" height="' + alt + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash">\n');document.write('</embed>\n');document.write('</object>\n');}
function cdContrato (END, LAR, ALT, ROLAR){if (confirm('Deseja assinar este plano de hospedagem?')){var LARGURA_TOTAL = (screen.availWidth - LAR) / 2;var ALTURA_TOTAL = (screen.availHeight - ALT) / 2; ABRIR = window.open(""+END+"","","toolbar=no,statusbar=no,resizable=no,location=no,menubar=no,scrollbars="+ROLAR+",width="+LAR+",height="+ALT+",left="+LARGURA_TOTAL+",top="+ALTURA_TOTAL+""); if (parseInt(navigator.appVersion) >= 4) {ABRIR.window.focus();}}    } 
function cd (END, LAR, ALT, ROLAR){var LARGURA_TOTAL = (screen.availWidth - LAR) / 2;var ALTURA_TOTAL = (screen.availHeight - ALT) / 2; ABRIR = window.open(""+END+"","","toolbar=no,statusbar=no,resizable=no,location=no,menubar=no,scrollbars="+ROLAR+",width="+LAR+",height="+ALT+",left="+LARGURA_TOTAL+",top="+ALTURA_TOTAL+""); if (parseInt(navigator.appVersion) >= 4) {ABRIR.window.focus();}}
function contrato (END, LAR, ALT, ROLAR){var LARGURA_TOTAL = (screen.availWidth - LAR) / 2;var ALTURA_TOTAL = (screen.availHeight - ALT) / 2; ABRIR = window.open(""+END+"","CONTRATO","toolbar=no,statusbar=no,resizable=no,location=no,menubar=no,scrollbars="+ROLAR+",width="+LAR+",height="+ALT+",left="+LARGURA_TOTAL+",top="+ALTURA_TOTAL+""); if (parseInt(navigator.appVersion) >= 4) {ABRIR.window.focus();}}
function esconderMostrar(ELEMENTO, ACAO){document.getElementById(ELEMENTO).style.display = ACAO;}
function escreve(TEXTO, DIV){esconderMostrar(DIV, 'block');document.getElementById(DIV).innerHTML = TEXTO;}

function enviarOrcamento(form){
if(document.orcamento.b_nome.value == ""){alert('Por favor preencha todos os campos');document.orcamento.b_nome.focus(); return false; }
if(document.orcamento.b_email.value == ""){alert('Por favor preencha todos os campos'); document.orcamento.b_email.focus(); return false; }
if(document.orcamento.b_email.value.indexOf('@', 0) == -1 || document.orcamento.b_email.value.indexOf('.', 0) == -1){ window.alert("Por favor confira o endereço de e-mail."); document.orcamento.b_email.focus(); return false; }
if(document.orcamento.b_empresa.value == ""){alert('Por favor preencha todos os campos');document.orcamento.b_empresa.focus(); return false; }
if(document.orcamento.b_telefone.value == ""){alert('Por favor preencha todos os campos');document.orcamento.b_telefone.focus(); return false; }
if(document.orcamento.b_resumo.value == ""){alert('Por favor preencha todos os campos'); document.orcamento.b_resumo.focus(); return false; }
if(document.orcamento.b_publico.value == ""){alert('Por favor preencha todos os campos'); document.orcamento.b_publico.focus(); return false; }
if(document.orcamento.b_importancia.value == ""){alert('Por favor preencha todos os campos'); document.orcamento.b_importancia.focus(); return false;
} else {
document.orcamento.submit();
}}

function validaCont(){
if(document.contato.b_nome.value == ""){alert('Por favor informe-nos seu nome'); document.contato.b_nome.focus(); return false; } 
if(document.contato.b_email.value == ""){alert('Por favor preencha todos os campos'); document.contato.b_email.focus(); return false; }
if(document.contato.b_email.value.indexOf('@', 0) == -1 || document.contato.b_email.value.indexOf('.', 0) == -1){ window.alert("Por favor confira o endereço de e-mail."); document.contato.b_email.focus(); return false; }
if(document.contato.b_empresa.value == ""){alert('Por favor preencha todos os campos'); document.contato.b_empresa.focus(); return false; } 
if(document.contato.b_telefone.value == ""){alert('Por favor informe um telefone para contato'); document.contato.b_telefone.focus(); return false; }
if(document.contato.b_mensagem.value == ""){alert('Por favor preencha todos os campos'); document.contato.b_mensagem.focus(); return false;
} else {
document.contato.submit();
}}

function filtrar(){
	var filtro_tecnologia;
	var filtro_aplicacao;
	var filtro_propriedade;
	var checar1;
	var checar2;
	var checar3;
	
	filtro_tecnologia = window.document.localizador.filtro_tecnologia.value;
	filtro_aplicacao = window.document.localizador.filtro_aplicacao.value;
	filtro_propriedade = window.document.localizador.filtro_propriedade.value;
	
	if(filtro_tecnologia==0 	|| filtro_tecnologia=="Selecione...")	{checar1 = "0";} else {checar1 = "1";}
	if(filtro_aplicacao==0 		|| filtro_aplicacao=="Selecione...")	{checar2 = "0";} else {checar2 = "1";}
	if(filtro_propriedade==0 	|| filtro_propriedade=="Selecione...")	{checar3 = "0";} else {checar3 = "1";}
	
	window.open("produtos.php?filtro_linha=0&filtro_aplicacao="+checar2+"&filtro_propriedade="+checar3+"&filtro_tecnologia="+checar1+"&linha_sel=&aplicacao_sel="+filtro_aplicacao+"&propriedade_sel="+filtro_propriedade+"&tecnologia_sel="+filtro_tecnologia+"#resultado", "_self");
	
}

function fecha_exibicao(){
	
	document.getElementById('exibe_produtos').style.display='none';
	
	
	document.getElementById('filtro_tecnologia').style.display='block';
	document.getElementById('filtro_aplicacao').style.display='block';
	document.getElementById('filtro_propriedade').style.display='block';
	document.getElementById('filtro_linha').style.display='block';
	
}
