I’m trying to make a little javascript program that can do the following:
Input Square foot of wallpaper in container
Input Surface Area of Wall + Input 10% of Surface Area of Wall = Out of Total Square Feet
Output: Total Number of Containers needed to meet Total Square Feet
Below I have the following code. It worked previously, but after a recent change I can’t seem to get it to caculate. Can anyone offer another set of eyes?
<table cellpadding=“0” id=“section0” >
<tr valign=“top”>
<td style=“padding-left:20px;padding-top:10px;” colspan=“2”>
<a class=“content”>First enter the square footage per box of the product you are ordering.<br /><br />
There is <input type=“text” id=“prod1Coverage” size=“4” class=“content” onchange=“javascript:jsCalcSQFT(‘prod’,1);”> S/Ft. per box.
<br /><br />Then, enter the area you wish to cover below to calculate quantity needed. </a>
</td>
</tr>
<tr valign=“top”>
<td>
<table cellpadding=“0” id=“wallsqft”>
<tr valign=“top” id=“rmQuestion”>
<td style=“padding-left:20px;” colspan=“2”><a class=“content”>In how many wall will you be using for wallpaper? </a>
<select class=“content” name=“numRooms” onChange=“javascript:jsCreateWalls(this.value);this.value=‘0’;”>
<option selected value=“0”></option>
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
<option value=5>5</option>
<option value=6>6</option>
<option value=7>7</option>
<option value=8>8</option>
<option value=9>9</option>
</select><br /><br />
</td>
</tr>
<script language=“JavaScript” type=“text/javascript”>
//<!–
for (var i=1; i <= 9; i++) {
document.write(‘<tr valign=“top” style=“display:none;” id="wall’ + i + ‘">’);
document.write(‘<td style=“padding-left:20px;”><a class=“content”>Wall ‘+ i + ‘: </a></td>’);
document.write(’<td><input type=text id="r’+i+‘Length" size=“2” value=“” onChange=“javascript:jsAdvCalcProduct(\‘prod\’);jsCalcSQFT(\‘prod\’,1);”><a class=“content”> by </a>’);
document.write(‘<input type=text id="r’+i+‘Width" size=“2” value=“” onChange=“javascript:jsAdvCalcProduct(\‘prod\’);jsCalcSQFT(\‘prod\’,1);”> <a class=“content”> Feet</a></td>’);
document.write(‘</tr>’);
}
//–>
</script>
</table>
</td>
</tr>
<tr valign=“top”>
<td style=“padding-left:20px;padding-top:20px;” colspan=“2”><a class=“content”>
Area: <input type=text id=“prodArea1” size=“3” maxlength=“5” onchange=“javascript:jsCalcSQFT(‘prod’,1);”>
S/FT + <input type=text id=“prodWaste1” size=“1” maxlength=“2” value=“10” onchange=“javascript:jsCalcSQFT(‘prod’,1);”>
% Waste = <input type=text id=“prodTArea1” size=“5” readonly style=“border:0;text-align:right;background-color:#eee;”> S/F
= <input type=text id=“prodQty1” size=“1” readonly style=“border:0;text-align:right;background-color:#eee;”> Box(es) 
</a>
</td>
</tr>
<tr valign=“top”>
<td class=“maincontent” colspan=“2”>
<a class=“content” href=“javascript:jsToggleSection(‘wallsqft’)” style=“text-decoration:none;”><span class=“headline”><u>Calculate Square Footage</u></span></a><a class=“content”> based on the size of wall(s).</a>
</td>
</tr>
</table>