function toBin(form,i) {
base = checkvalue(form.base+i+.value);
num = checkvalue(form.num+i+.value);
sum = eval(base)+eval(sum);
alert(comma(sum));
form.amount+i+.value=comma(sum);
}
<% for i = 1 to 2 %>
<input type=text name=num<%=i%> size=8 value="100,000"> +
<input type=text name=base<%=i%> size=8 value="200,000"> =
<input type=button value="ÇÕ°è" onclick="toBin(this.form,<%=i%>)">
<input type=text name=amount<%=i%> size=15>
<% next %>
À§ÀÇ °Íó·³ Çհ踦 Çϳª¸¸ ÅؽºÆ® ¹Ú½º·Î ÀÔ·ÂÇÏ¿© °è»êÇϸé ÀÌ»óÀÌ ¾ø´Âµ¥ µÎ°³ ÀÌ»ó ÇÏ¸é ¿¡·¯°¡ ³ª¿À³×¿ä
ÇÔ¼ö¸¦ Àú·¸°Ô ¾²¸é ¸Â´ÂÁö¿ä? °¡¸£ÃÄ ÁÖ½Ã¸é °¨»ç^^