Ok so now I learn I really dont have a clue apprently this is Javascript????

To make this alittle easier and so people kind of get the idea of what I am aim at - please find below - its very simple - and doesnt actually work as it doesnt YET show the Isk P/U of unrefined ore values - nor does it calculate any quantity input - but for someone who has never even looked at a bit ok code - I guess its a start - if someone could assist - please let me know.
--------
<html>
<head>
<title>ORE</title>
<style>
body { background-color: #dddddd; font-family: Verdana;}
.TblHeader {font-size:20px; font-weight:bold; text-align:center;}
.TblHeader2 {font-size:14px; text-align:center; font-weight:bold;}
.TblData {font-size:14px; padding:2px;}
</style>
<script Language="JavaScript">
var Ores = new Array('Veldspar', 'Pyerite', 'Mexallon', 'Isogen', 'Nocxium', 'Zydrine', 'Megacyte', 'Morphite');
var Ores = new Array();
Ores['Veldspar'] = new Array();
Ores['Veldspar']['PricePU'] = 2.89;
function UpdateList ()
{
for (var i in Ores)
{
var Ores = Ores[i];
eval ("var "+Material+"Price = parseFloat(document.getElementById(\""+Material+"Price\").value);");
}
for (var i in Materials)
{
var Ores = Ores[i];
var Price = 555;
for (var j in Ores['PricePU'])
{
eval ("var PricePerUnit = "+j+"Price;");
if (MaterialPrice > 0 && Price >= 0)
{
Price += PricePerUnit * Ores['PricePU'][j];
}
else
{
Price = -1;
break;
}
}
if (Price >= 0)
{
var PricePerUnit = Math.round(Price / Asteroid['Batchsize']*100)/100;
var PriceTotal = Math.round(((Ore / Ore['PricePU']);
if ((PricePerUnit*100)%10 == 0)
{
PricePerUnit = String.concat(PricePerUnit+"0");
}
if ((PricePerM3*100)%10 == 0)
{
PricePerM3 = String.concat(PricePerM3+"0");
}
}
else
{
PricePerUnit = 0.00;
PricePerM3 = 0.00;
}
document.getElementById(i+"_Unit").innerHTML = PricePerUnit;
document.getElementById(i+"_m3").innerHTML = PricePerM3;
}
}
</script>
</head>
<body onLoad="javascript:UpdateList();">
<table border="0" cellpadding="0" cellspacing="0" width="1000">
<tr>
<td width="45%" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="400">
<tr>
<td class="TblHeader" colspan="2">ORE TYPE</td>
</tr>
<tr>
<td class="TblData">Veldspar:</td>
<td class="TblData"><input class="TxtField" id="TotalIsk" onKeyUp="javascript:UpdateList();" onChange="javascript:UpdateList();"<? if (isset($result)) echo ' value="'.$result['Tritanium'].'"'; ?>></td>
</tr>
</script>
</table>
</td>
<td width="10%"> </td>
<td width="45%" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="400">
<tr>
<td class="TblHeader" colspan="3">Price</td>
</tr>
<tr>
<td class="TblHeader2">Name</td>
<td class="TblHeader2">ISK P/u</td>
<td class="TblHeader2">ISK Total</td>
</tr>
<tr>
<td class="TblData">Veldspar:</td>
<td class="TblData" align="right"><span id="VeldsparPrice">---</span></td>
<td class="TblData" align="right"><span id="Veldspar_Unit">---</span></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
</script>
</head>
<body onLoad="javascript:UpdateList();">
<table border="0" cellpadding="0" cellspacing="0" width="1000">
<tr>
<td width="45%" valign="bottom">
<table border="0" cellpadding="0" cellspacing="0" width="400">
<tr>
<td class="TblHeader" colspan="2">TOTAL ISK</td>
</tr>
<tr>
<td class="TblData">TOTAL:</td>
<td class="TblData"><input class="TxtField" id="TotalIsk" onKeyUp="javascript:UpdateList();" onChange="javascript:UpdateList();"<? if (isset($result)) echo ' value="'.$result['Tritanium'].'"'; ?>></td>
</tr>
</script>