<!--
//#############################################################
function valida_procuro(){
	msg = "Os campos marcados com * são de preenchimento obrigatório";
	with(document.form1){
		if (nome.value.length == 0){
			alert(msg);
			nome.focus();
			return false;
		}
		if (empresa.value.length == 0){
			alert(msg);
			empresa.focus();
			return false;
		}
		if (endereco.value.length == 0){
			alert(msg);
			endereco.focus();
			return false;
		}
		if (cidade.value.length == 0){
			alert(msg);
			cidade.focus();
			return false;
		}
		if (estado.value == 0){
			alert(msg);
			estado.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("O e-mail digitado não é válido.");
				email.focus();
				return false;
			}
		}
		if (telefone.value.length == 0){
			alert(msg);
			telefone.focus();
			return false;
		}
		if (tipo.value.length == 0){
			alert(msg);
			tipo.focus();
			return false;
		}
		if (funcao.value.length == 0){
			alert(msg);
			funcao.focus();
			return false;
		}
		if (fabricante.value.length == 0){
			alert(msg);
			fabricante.focus();
			return false;
		}
		if (descricao.value.length == 0){
			alert(msg);
			descricao.focus();
			return false;
		}
	}
	return true;
}
//#############################################################
function valida_contato(){
	msg = "Os campos marcados com * são de preenchimento obrigatório";
	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("O e-mail digitado não é válido.");
				email.focus();
				return false;
			}
		}
		if (assunto.value.length == 0){
			alert(msg);
			assunto.focus();
			return false;
		}
		if (mensagem.value.length == 0){
			alert(msg);
			mensagem.focus();
			return false;
		}
	}
	return true;
}
//#############################################################
function valida_anuncie(){
	msg = "Os campos marcados com * são de preenchimento obrigatório";
	with(document.form1){
		if (proEmpresa.value.length == 0){
			alert(msg);
			proEmpresa.focus();
			return false;
		}
		if (proResponsavel.value.length == 0){
			alert(msg);
			proResponsavel.focus();
			return false;
		}
		if (proEndereco.value.length == 0){
			alert(msg);
			proEndereco.focus();
			return false;
		}
		if (proTel.value.length == 0){
			alert(msg);
			proTel.focus();
			return false;
		}
		if (proEmail.value.length == 0){
			alert(msg);
			proEmail.focus();
			return false;
		}else{
			prim = proEmail.value.indexOf("@");
			if((proEmail.value.indexOf("@",prim + 1) != -1) || (proEmail.value.indexOf(".") < 1)){
				alert("O e-mail digitado não é válido.");
				proEmail.focus();
				return false;
			}
		}
		if (proNomeBR.value.length == 0){
			alert(msg);
			proNomeBR.focus();
			return false;
		}
		if (proPrecoBR.value.length == 0){
			alert(msg);
			proPrecoBR.focus();
			return false;
		}else{
			if (isNaN(proPrecoBR.value)){
				alert('Digite apenas números no preço do equipamento.');
				proPrecoBR.focus();
				return false;
			}
		}
		if (subId.value == 0){
			alert(msg);
			subId.focus();
			return false;
		}
		if (proDescricaoBR.value.length == 0){
			alert(msg);
			proDescricaoBR.focus();
			return false;
		}
	}
	return true;
}
//#############################################################
function valida_info(){
	msg = "Os campos marcados com * são de preenchimento obrigatório";
	with(document.form1){
		if (proEmpresa.value.length == 0){
			alert(msg);
			proEmpresa.focus();
			return false;
		}
		if (proResponsavel.value.length == 0){
			alert(msg);
			proResponsavel.focus();
			return false;
		}
		if (proEndereco.value.length == 0){
			alert(msg);
			proEndereco.focus();
			return false;
		}
		if (proTel.value.length == 0){
			alert(msg);
			proTel.focus();
			return false;
		}
		if (proEmail.value.length == 0){
			alert(msg);
			proEmail.focus();
			return false;
		}else{
			prim = proEmail.value.indexOf("@");
			if((proEmail.value.indexOf("@",prim + 1) != -1) || (proEmail.value.indexOf(".") < 1)){
				alert("O e-mail digitado não é válido.");
				proEmail.focus();
				return false;
			}
		}
		if (proObservacoes.value.length == 0){
			alert(msg);
			proObservacoes.focus();
			return false;
		}
	}
	return true;
}
//#############################################################
function loadSwf(swfWidht,swfHeight,swfPath){
	document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + swfWidht + '" height="' + swfHeight + '">');
	document.writeln('  <param name="movie" value="/swf/' + swfPath + '">');
	document.writeln('  <param name="quality" value="high">');
	document.writeln('  <embed src="/swf/' + swfPath + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + swfWidht + '" height="' + swfHeight + '"></embed>');
	document.writeln('</object>');
}
//#############################################################
function exibeMenu(menu){
	if (document.getElementById(menu).style.display == 'none'){
		document.getElementById(menu).style.display = 'block';
	} else {
		document.getElementById(menu).style.display = 'none';
	}
}
//#############################################################
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if(restore) selObj.selectedIndex=0;
}
//#############################################################
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}
//#############################################################
-->
