var tecla; 
function valida(campo,event){
if (tecla != 9 && tecla != 8){
	if(campo.value.length==0)
	campo.value+="(";
	if(campo.value.length==3)
	campo.value+=")";
	if(campo.value.length==8)
	campo.value+="-";
}
}
