function foco(e)
{
	var quantidade = e.value.length;
	
	if(e.name == "ddd"){
		if(quantidade == 2)
		{				
			document.formulario.numero.focus();
		}
		else
		{
			document.formulario.ddd.focus();
		}
	}
	if(e.name == "numero"){
		if(quantidade == 4)
		{				
			document.formulario.digito.focus();
		}
	}
}
