function codeValue(chr1, chr2) {
  if (typeof chr2 == 'undefined') {
    return chr1 >= 32 ? chr1 - 32 : chr1 + 64;
  } else {
    return parseInt(String.fromCharCode(chr1) + String.fromCharCode(chr2));
  }
}
//reduce the ascii code to fit into the Code128 char table
reduce the ascii code to fit into the Code128 char table
reduce the ascii code to fit into the Code128 char table
function codeValue(chr1, chr2) {
  if (typeof chr2 == 'undefined') {
    return chr1 >= 32 ? chr1 - 32 : chr1 + 64;
  } else {
    return parseInt(String.fromCharCode(chr1) + String.fromCharCode(chr2));
  }
}
function codeValue ( chr1 , chr2 ) { if ( typeof chr2 == 'undefined' ) { return chr1 >= 32 ? chr1 - 32 : chr1 + 64 ; } else { return parseInt ( String . fromCharCode ( chr1 ) + String . fromCharCode ( chr2 ) ) ; } }
reduce the ascii code to fit into the Code128 char table
reduce the ascii code to fit into the Code128 char table