// Função somente para tecla de números e backspace (das idades)
function desabilitateclas()
{
	var tecla = event.keyCode;
	if ((tecla >= 0 && tecla <= 7)||(tecla >= 9 && tecla <= 12)||(tecla >= 14 && tecla <= 43)||(tecla >= 58 && tecla <= 127))
	{ return false; }
	return tecla;
}
// Muda o focus do telefone
function muda_focus(a,b)
{
	if(a.length==2)
		b.focus();
}
// Função mascara de FONE
function mascaraFONE(objeto)
{
	campo = eval (objeto);
	separacao1 = '-';
	conjunto1 = 4;
	conjunto2 = 9;
	if (desabilitateclas())
	{
			if (campo.value.length < (conjunto2))
			{
			  if (campo.value.length == conjunto1)
					campo.value = campo.value + separacao1;
			}
	}
	else
		event.returnValue = false;
}