function Foto(URL, width, height) {
//   var width = 680;
//   var height = 410;

   var left = 50;
   var top = 50;

   window.open('../php/verFoto.php?img='+URL, 'Foto', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=auto, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
} 
function move_i(what) { what.className = 'menu2'; }
function move_o(what) { what.className = 'menu'; }
function alteracaoDados(){
email = document.formAltera.email.value;
senha = document.formAltera.senha.value;
senha2 = document.formAltera.senha2.value;

erros = '';
	if (email.length < 10)
		erros += 'Email em branco ou muito curto.\n';
	else {
		if(email.indexOf("@") < 1) {
			erros += 'Email incorreto.\n';
		}
		if(email.indexOf(".") < 1) {
			erros += 'Email incorreto.\n';
		}
	}
	
	if(senha.length > 0){
		if(senha != senha2)
			erros += 'Senhas nao conferem.\n';
	}
	
	if(erros != ''){
	alert('Corrija os erros abaixo e envie novamente:\n'+erros);
	return false
	} else
	return true;
	
}
