<script type="text/javascript" src="JS/CheckAutoWeight.en.php"></script>
<tr><td height=25 class="question" valign=center>&nbsp;{questionRequire}<span class="textEdit" id="questionName_{questionID}">{questionName}</span>&nbsp;<span class=notes>{questionNotes}</span></td></tr>
<tr><td class="tips"><span class="textEdit" id="questionNotes_{questionID}">{questionTips}</span></td></tr>
<tr><td>
   <table cellSpacing=0 cellPadding=0 width=100% id="qtn_table_{questionID}">
    <!-- BEGIN WEIGHT -->
    <tr style="display:none" id="weight_{baseID}_{questionID}_{optionNameID}">
		<td class="answer tdheight" align=right nowrap>&nbsp;&nbsp;{optionName}</td>
	    <td width=8></td>
		<td class="answer" nowrap align="center" id="weightcheck_{baseID}_{questionID}_{optionNameID}">
		  <input class="answer" type="{inputPrompt}" size=6 name="{optionID}" id="{optionID}" maxlength="8" onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" onblur="AutoReCalcSum_{questionID}({questionID},{minOptionNum},{maxOptionNum},{maxSize},{isHaveOther});" value="{value}">
		</td>
		<td width=99%></td>
    </tr>
	<!-- END WEIGHT -->
     <tr style="display:none" id="weight_{baseID}_{questionID}_text">
	   <td align=right class="answer tdheight" nowrap>Remain:</td>
	   <td width=8></td>
	   <td class="answer" align="center"><input class="answer" type="text" size=6 name="option_{questionID}_total" id="option_{questionID}_total" value="{maxSizeValue}" disabled></td>
	   <td width=99%></td>
	</tr>
   </table>
</td></tr>
<script>
	function AutoReCalcSum_{questionID}(qtnID,minOptionNum,maxOptionNum,maxSize,isHaveOther)
	{
		AutoReCalcSum(qtnID,minOptionNum,maxOptionNum,maxSize,isHaveOther);
		Check_Survey_Conditions();
	}
</script>