// scripts


//----------------------------


// script de mensagem da barra de status
defaultStatus=" ---->  B R  d e s i g n  -  web design and web development solutions   -  w w w . b r d e s i g n . n e t "





// -->  Função de validação do formulário - sugestões

<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->



//----------------
 function contato_orcamento() {
open("?area=contato_orcamento","janela","height=500,width=480,top=20,left=150,menubar=no,toolbar=no,status=no,scrollbars=no")
}


//-----------
 function contato_contato() {
open("?area=contato_contato","janela","height=500,width=480,top=20,left=150,menubar=no,toolbar=no,status=no,scrollbars=no")
}



//-------- Validação - Contato
function ValidacaoContato() {
	if(document.getElementById("Nome").value==''){
		alert('O campo Nome não foi preenchido!');	
		document.getElementById("Nome").focus();
		return false;
	}else if(document.getElementById("Email").value==''){
		alert('O campo Email não foi preenchido!');	
		document.getElementById("Email").focus();
		return false;
	}else if(document.getElementById("Assunto").value==''){
		alert('O campo Assunto não foi preenchido!');	
		document.getElementById("Assunto").focus();
		return false;
	}else if(document.getElementById("Mensagem").value==''){
		alert('O campo Mensagem não foi preenchido!');	
		document.getElementById("Mensagem").focus();
		return false;
	}
}


//-------- Validação - Orçamento
function ValidacaoOrcamento() {
	if(document.getElementById("Nome").value==''){
		alert('O campo Nome não foi preenchido!');	
		document.getElementById("Nome").focus();
		return false;
	}else if(document.getElementById("Email").value==''){
		alert('O campo Email não foi preenchido!');	
		document.getElementById("Email").focus();
		return false;
	}else if(document.getElementById("Cidade").value==''){
		alert('O campo Cidade/UF não foi preenchido!');	
		document.getElementById("Cidade").focus();
		return false;
	}else if(document.getElementById("Servico").value==''){
		alert('O campo Serviço não foi preenchido!');	
		document.getElementById("Servico").focus();
		return false;
	}else if(document.getElementById("ExecucaodoProjeto").value==''){
		alert('O campo Execução do Projeto não foi preenchido!');	
		document.getElementById("ExecucaodoProjeto").focus();
		return false;
	}else if(document.getElementById("DescricaodoServico").value==''){
		alert('O campo Descricao do Servico não foi preenchido!');	
		document.getElementById("DescricaodoServico").focus();
		return false;
	}
}

function popPortfolioDetalhe(varImagem,varAltura,varLargura) {
	var vAltura = (screen.height-varAltura)/2;
	var vLargura =(screen.width-varLargura)/2;
	window.open("PortfolioDetalhe.php?Imagem="+varImagem,"pop_"+varImagem,"top="+vAltura+",left="+vLargura+",height="+varAltura+",width="+varLargura+",status=no,menubar=no,toolbar=no,scrollbars=yes,location=no,resizable=no")
}

function Fade(img){
	if (document.getElementById(img).className == "PortfolioIMG"){
		document.getElementById(img).className = "PortfolioIMG2";
	} else {
		document.getElementById(img).className = "PortfolioIMG";
	}
}

