function abrecontato(){
	fechaanexo();
	document.getElementById("formcontato").style.display='block';
}
function fechacontato(){
	document.getElementById("formcontato").style.display='none';
}
function abreanexo(){
	fechacontato();
	document.getElementById("anexo").style.display='block';
}
function fechaanexo(){
	document.getElementById("anexo").style.display='none';
}
function voltaOpcoesDown(){
	var nav=document.getElementById('centralnav');
	var marg=parseInt(nav.style.marginLeft);		
	if (marg < 3000 && marg!=0 ){
		marg += 100;
		document.getElementById('centralnav').style.marginLeft = marg + 'px';
	}
	document.getElementById("anterior").style.marginTop="2px";
	document.getElementById("anterior").style.marginLeft="2px";	
}	
function voltaOpcoesUp(){
	document.getElementById("anterior").style.marginTop="0px";
	document.getElementById("anterior").style.marginLeft="0px";
}
function andaOpcoesDown(){
	var nav=document.getElementById('centralnav');
	var marg=parseInt(nav.style.marginLeft);		
	if (marg > -3000){
		marg -= 100;
		document.getElementById('centralnav').style.marginLeft = marg + 'px';
	}	
	document.getElementById("proximo").style.marginTop="2px";
	document.getElementById("proximo").style.marginLeft="2px";
}
function andaOpcoesUp(){
	document.getElementById("proximo").style.marginTop="0px";
	document.getElementById("proximo").style.marginLeft="0px";
}

function campo_obri(frm,arr_campos,arr_linhas){
	for (c=0; c<arr_campos.length; c++){
		campo	= arr_campos[c];
		linha		= arr_linhas[c];
		if ((!eval('frm.'+campo+'.value'))||(eval('frm.'+campo+'.value')==" ")){
			document.getElementById(linha).bgColor="#FFCC66";
			eval('frm.'+campo+'.focus()');
			return false;
		}
		else {
			document.getElementById(linha).bgColor="";
		}
	}
}
