i am not able the get the varstatus value...which is needed for me to pass as a parameter to my function...

<c:forEach items="${batchVo.objInvoices}" var="var1" varStatus="counter">
<bean:define id="transactionId" name="var1" property="strTransactionId" type="java.lang.String" />
<bean:define id="cnt" name="counter" property="count" type="java.lang.Integer" />

<script>
invoices[cnt] = new Object();
invoices[cnt].flag=true;
invoices[cnt].invoiceId = '<%=invoiceSeq%>';
invoices[cnt].batchNum = '<%=transactionId%>';
</script>
<tr align="center">
<td>
<html:radio property="chkInvDts" onclick="totInvRadOnClick('<%=cnt %>'),onClickdelEnable()" styleClass="RadioBtn" value="<%=invoiceSeq%>" ></html:radio>
</td>
<td> <html:text property="txtInv" style="text-align:center; background-color:#c0c0c0;" styleClass="textbox" readonly="true" value="<%= transactionId%>" ></html:text>
</td>
<td><html:text property="txtPlan" style="text-align:center;" styleClass="textbox" onkeypress="return numbersonly(event);" maxlength="5" onblur="planNumLen(temp)" value="<%= planNumber%>" ></html:text>
</td>
</tr>
</c:forEach>