Uncaught TypeError: Cannot call method 'Runme' of undefined
<p>I've been bug checking this for a while, but I still cant figure out whats wrong. It's supposed to take my grades, and spit out my allowance. It was working before, but JSfiddle messed it up, and now it's having OTHER problems. Can anyone tell what's wrong?
Code:</p>

<pre><code>&lt;head&gt;
&lt;script&gt;
alert('loaded');
function Runme() {
    alert("running");
    document.forms["form"].Runme();
    var Mathematics = document.personal.Mathematics;
    var OMathematics = document.personal.OMathematics;
    var Sci = document.personal.Sci;
    var OSci = document.personal.OSci;
    var ELA = document.personal.ELA;
    var OELA = document.personal.OELA;
    var SS = document.personal.SS;
    var OSS = document.personal.OSS;
    var Elec1 = document.personal.Elec1;
    var OElec1 = document.personal.OElec1;
    var Elec2 = document.personal.Elec2;
    var OElec2 = document.personal.OElec2;
    var Elec3 = document.personal.Elec3;
    var OElec3 = document.personal.OElec3;
    var Elem1 = document.personal.Elec1;
    var OElem1 = document.personal.OElec1;
    var Elem2 = document.personal.Elec2;
    var OElem2 = document.personal.OElec2;
    var Elem3 = document.personal.Elec3;
    var OElem3 = document.personal.OElec3;
    var Owed = 0;
    var Calc = function(n, o) {
        if (n &gt;= 90) {
            Owed = Owed + 1;
            if (n &gt;= 95) {
                Owed = Owed + 1;
            }
        }
        else if (owed &gt;= 80) {
            Owed = Owed + 0.5;
        }
        if (n &gt; o) {
            Owed = Owed + 0.5;
        }
        if (n &lt; o) {
            if (n &gt; 95) {
                Owed = Owed - 0.25;
            }
        }
    };
    Calc(Mathematics, OMathematics);
    Calc(Sci, OSci);
    Calc(ELA, OELA);
    Calc(SS, OSS);
    Calc(Elec1, Elec1);
    Calc(Elec2, Elec2);
    Calc(Elec3, Elec3);
    Calc(Elem1, Elem1);
    Calc(Elem2, Elem2);
    Calc(Elem3, Elem3);
    alert(Owed);
};
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;center&gt;
&lt;h1&gt;Grade Calculator&lt;/h1&gt;
&lt;!--form name="form" action="grades.pl" onsubmit="return checkscript()"--&gt;
&lt;h5&gt;Math&lt;/h5&gt;&lt;input type=text size=20 name=Mathematics&gt;
&lt;h5&gt;Old Math&lt;/h5&gt;&lt;input type=text size=20 name=OMathematics&gt;
&lt;h5&gt;Science&lt;/h5&gt;&lt;input type=text size=20 name=Sci&gt;
&lt;h5&gt;Old Science&lt;/h5&gt;&lt;input type=text size=20 name=OSci&gt;
&lt;h5&gt;English&lt;/h5&gt;&lt;input type=text size=20 name=ELA&gt;
&lt;h5&gt;Old English&lt;/h5&gt;&lt;input type=text size=20 name=OELA&gt;
&lt;h5&gt;Social Studies&lt;/h5&gt;&lt;input type=text size=20 name=SS&gt;
&lt;h5&gt;Old Social Studies&lt;/h5&gt;&lt;input type=text size=20 name=OSS&gt;
&lt;h5&gt;Elective One&lt;/h5&gt;&lt;input type=text size=20 name=Elec1&gt;
&lt;h5&gt;Old Elective One&lt;/h5&gt;&lt;input type=text size=20 name=OElec1&gt;
&lt;h5&gt;Elective Two&lt;/h5&gt;&lt;input type=text size=20 name=Elec2&gt;
&lt;h5&gt;Old Elective Two&lt;/h5&gt;&lt;input type=text size=20 name=OElec2&gt;
&lt;h5&gt;Elective Three&lt;/h5&gt;&lt;input type=text size=20 name=Elec3&gt;
&lt;h5&gt;Old Elective Three&lt;/h5&gt;&lt;input type=text size=20 name=OElec3&gt;
&lt;h5&gt;Elem One&lt;/h5&gt;&lt;input type=text size=20 name=Elec3&gt;
&lt;h5&gt;Old Elem One&lt;/h5&gt;&lt;input type=text size=20 name=OElec3&gt;
&lt;h5&gt;Elem Two&lt;/h5&gt;&lt;input type=text size=20 name=Elec3&gt;
&lt;h5&gt;Old Elem Two&lt;/h5&gt;&lt;input type=text size=20 name=OElec3&gt;
&lt;h5&gt;Elem Three&lt;/h5&gt;&lt;input type=text size=20 name=Elec3&gt;
&lt;h5&gt;Old Elem Three&lt;/h5&gt;&lt;input type=text size=20 name=OElec3&gt;
&lt;/form&gt;
&lt;br/&gt;
&lt;input type="button" value="Submit and Calculate" onClick="Runme()"/&gt;
&lt;/center&gt;

&lt;/body&gt;
</code></pre>
