Javascript adding these 2 scripts together
<p>Trying to add the first script</p>

<pre><code>&lt;html&gt;
    &lt;body&gt;
        &lt;select id="sel"&gt;
            &lt;option value="2"&gt;101a&lt;/option&gt;
            &lt;option value="2.5"&gt;101b&lt;/option&gt;
            &lt;option value="1"&gt;101c&lt;/option&gt; 
        &lt;script src="http://code.jquery.com/jquery-1.7.2.min.js"&gt;&lt;/script&gt;
        &lt;script&gt;
            docement.getElementByID('sel") value= "sel"
        &lt;/script&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>to this math problem where the "4" is i want the value of the above script to be </p>

<pre><code>&lt;script&gt;
(function () {
    function calculateScoring(man, boy, girl) {
        man = parseFloat(man);
        boy = parseFloat(boy);
        girl = parseFloat(girl);
        return (man + boy + girl) * 4;
    }

    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>
