var g_weight=new Array();var dragCoefficients=new Array();var frontalAreas=new Array();function drawWeightBox(id,car){var content="<TABLE>";// Weight
content+="<TR><TD><FONT size='-1'>Weight</FONT>:<TD><input type='text' id='weight_"+car+"' size='5' value="+g_weight[car]+" onChange='g_weight["+car+"]=this.value'> <FONT size='-1'>lbs</FONT>";// Aerodynamics
content+="<TR><TD><FONT size='-1'>Drag Coefficient:</FONT><TD><input type='text' id='dragCoefficient_"+car+"' size='5' value="+dragCoefficients[car]+" onChange='dragCoefficients["+car+"]=this.value'>";content+="<TR><TD><FONT size='-1'>Frontal Area:</FONT><TD><input type='text' id='frontalArea_"+car+"' size='5' value="+frontalAreas[car]+" onChange='frontalAreas["+car+"]=this.value'> <FONT size='-1'>ft<sup>2</sup></FONT>";content+="</TABLE>";document.getElementById(id).innerHTML=content;}
