Javascripts adding text and multiplication
<p>I need help add the different dives into my math problem </p>

<p>example (Judge A + judge B + Judge C)* 2 which in the case i am about to show you will be 203c. 
I want to pull the user input of 203c with the difficulty of 2 and multiply it buy the sum of the 3 judges </p>

<pre><code>&lt;script&gt;
  var DIFF = {
     //Forward Dives
      '101a': 1.4,
      '101b': 1.3,
      '101c': 1.2,
      '102a': 1.6,
      '102b': 1.5,
      '102c': 1.4,
      '103b': 1.7,
      '103c': 1.6,
      '104b': 2.3,
      '104c': 2.2,
      '105b': 2.6,
      '105c': 2.4,
      '106c': 2.9,
      '107c': 3.0,
      '112b': 1.7,
      '112c': 1.6,
      '113b': 1.9,
      '113c': 1.8,

    //Back Dives
        '201a': 1.7,
        '201b': 1.6,
        '201c': 1.5,
        '202a': 1.7,
        '202b': 1.6,
        '202c': 1.5,
        '203a': 2.5,
        '203b': 2.3,
        '203c': 2.0,
        '204b': 2.5,
        '204c': 2.2,
        '205b': 3.2,
        '205c': 3.0,
        '212b': 1.7,
        '212c': 1.6,

    //Reverse Dives

        '301a': 1.8,
        '301b': 1.7,
        '301c': 1.6,
        '302a': 1.8,
        '302b': 1.7,
        '302c': 1.6,
        '303a': 2.7,
        '303b': 2.4,
        '303c': 2.1,
        '304b': 2.6,
        '304c': 2.3,
        '305b': 3.2,
        '305c': 3.0,
        '312b': 1.8,
        '312c': 1.7,

    //Inward Dives

        '401a': 1.8,
        '401b': 1.5,
        '401c': 1.4,
        '402b': 1.7,
        '402c': 1.6,
        '403b': 2.4,
        '403c': 2.2,
        '404c': 2.8,
        '405b': 3.4,
        '405c': 3.1,
        '412b': 2.1,
        '412c': 2.0,
        '413c': 2.7,

    //Twisting Dives

        '5111a': 1.8,
        '5111b': 1.7,
        '5112a': 2.0,
        '5112b': 1.9,
        '5121a': 1.9,
        '5121b': 1.8,
        '5121d': 1.7,
        '5122d': 1.9,
        '5124d': 2.3,
        '5126d': 2.7,
        '5131b': 2.1,
        '5131c': 2.0,
        '5132d': 2.2,
        '5134d': 2.6,
        '5136d': 3.0,
        '5152b': 3.2,
        '5152c': 3.0,
        '5211a': 1.8,
        '5211a': 2.0,
        '5221d': 1.7,
        '5222d': 1.9,
        '5223d': 2.3,
        '5225d': 2.7,
        '5231d': 2.1,
        '5233d': 2.5,
        '5235d': 2.9,
        '5311a': 1.9,
        '5312a': 2.1,
        '5321d': 1.8,
        '5322d': 2.0,
        '5323d': 2.4,
        '5325d': 2.8,
        '5331d': 2.2,
        '5333d': 2.6,
        '5335d': 3.0,
        '5411a': 2.0,
        '5411b': 1.7,
        '5412a': 2.2,
        '5412b': 1.9,
        '5421b': 1.8,
        '5421c': 1.7,
        '5422d': 2.1,
        '5432d': 2.7,
        '5434d': 3.1,   


  };

  $('[name="dive"]').keyup(function() {
    var v = $(this).val();
    var diff = DIFF[v.toLowerCase()];

    // Make sure it matched
    if(diff) {
      $('#difficulty').text('Difficulty: ' + diff);
    } else {
      // Not found, clear it
      $('#difficulty').text('');
    }
  });
&lt;/script&gt;

&lt;script&gt;
(function () {
function calculateScoring(man, boy, girl) {
    man = parseFloat(man);
    boy = parseFloat(boy);
    girl = parseFloat(girl);
    return (man + boy + girl) * THIS SHOULD BE 203c or 2;
}

var Scoring = document.getElementById("diveScore");
if (Scoring) {
    Scoring.onsubmit = function () {
        this.score.value = calculateScoring(this.man.value, this.boy.value, this.girl.value);
        return false;
    };
}
}());
&lt;/script&gt;
</code></pre>
