function getkey( e ) {
  var code;
  
  if( !e ) e = window.event;

  if( e.keyCode ) return e.keyCode;
  if( e.which ) return e.which;

  return -1;
}

function numeric(eX) {
  var ret = false;
  
  test = getkey(eX);
  if( test >= 48 && test <= 57 ) ret = true;
  if( test == 9 || test == 8 || test == 13 || test == 37 || test == 39 || test == 46 ) ret = true;
  
  return ret;
}

