function FormatarCEP(campo) 
{
	var tecla = window.event.keyCode;
	vr = campo.value;
	tam = vr.length + 1;

	if ( tecla != 9 && tecla != 8 && tecla != 13 && tecla != 37 && tecla != 39 && tecla != 46 ) 
	{
		if (( tam > 2 ) && ( tam < 4))
	 	{campo.value = vr + '.';}

		if (( tam > 6 )  && ( tam < 8 ))
	 	{campo.value = vr + '-';}


	}
}
