function MascaraNumero(e, oCampo, decimais, bSigned){
 var iKey;
 var bDec         = (decimais!="" && decimais>0);
 var bw           = new Browser();
 var sSelecionado = '';
  if(document.all) {
   iKey = window.event.keyCode;
  } else {
   iKey = e.which;
  }
 if(bw.ie)
  sSelecionado = document.selection.createRange().text;
 if(iKey==0||iKey==8||iKey==13||iKey==27)
  return(true);
 if(!bDec){
  if(iKey==46 || iKey==44)
   return(false);
 }
 if(!bSigned){
  if(iKey==45)
   return(false);
 }
 if(iKey!=44 && iKey!=45 && iKey!=46 && !(iKey>=48 && iKey<=57))
  return(false);
 if(iKey==44 || iKey==46){
  if(oCampo.value.indexOf(",")!=-1)
   return(false);
  if(iKey==46){
   oCampo.value += ',';
   return(false);
  }
 }
 if(iKey==45){
  if(oCampo.value.length>0)
   return(false);
 }
 if(bDec){
  if(oCampo.value.indexOf(",")!=(-1) && sSelecionado==''){
   if((oCampo.value.length-oCampo.value.indexOf(",")-1) >= decimais)
    return(false);
   }
 }
 return(true);
}
