indice=0;

function navega(p,n,evento,url,z){
	if (z=='s')
		indice=p;
	else
		indice=indice+p;
		if (indice>0)
			MM_showHideLayers('anterior','','show');
		else
			MM_showHideLayers('anterior','','hide');
			
		if (indice<n-1)
			MM_showHideLayers('proximo','','show');
		else
			MM_showHideLayers('proximo','','hide');		
		
		goToURL("ampliada",url+"?foto="+indice+'&evento='+evento);
		return (false);
}


function verifica(form){
	if (form.nome.value==""){
		  alert('Preencha o campo Nome');
		  form.nome.focus();
		  return false;	
	}
	if(form.dtdia.value==""){
			alert('Digite o dia da data de Nascimento');
			form.dtdia.focus();
			return (false);
		}
	if(form.dtmes.value==""){
			alert('Digite o mes da data de Nascimento');
			form.dtmes.focus();
			return (false);
		}
	if(form.dtano.value==""){
			alert('Digite o ano da data de Nascimento');
			form.dtano.focus();
			return (false);
		}
	if ( !form.cursando[0].checked && !form.cursando[1].checked ) 
		{
		  alert("Selecione uma opção para Está cursando na Wizard?");
		  return false;
	}	
	if(form.cursando[0].checked){
			if(form.curso.value==""){
				alert('Selecione um Curso');
				return (false);
				}
		}
	if (form.email.value==""){
		  alert('Preencha o campo Email');
		  form.email.focus();
		  return (false);	
	}
	if (form.msg.value==""){
		  alert('Preencha o campo Mensagem');
		  form.msg.focus();
		  return (false);	
	}		
 return (true);	
}
