function MascaraCEP(campo,w) {
   var CEP = SoNumero(campo.value);
   var CEPAux = ''; 
   var campo1 = campo.value;

   if (w.keyCode == 8) {      
     if (campo1.length == 3 || campo1.length == 7 || campo1.length == 11) {
        CEP = CEP.substr(0,CEP.length-1);
       } 
    }
     
   if (CEP.length < 16) {
     
     for (var i=0; i<CEP.length; i++) {
       CEPAux = CEPAux + CEP.substr(i,1);     
       if (i == 4 ) {
         CEPAux = CEPAux + "-";
        }
      }  
     campo.value = CEPAux;
    }
   else {
      campo.value = campo.value.substr(0,14);
     }    
}
