Within a repeat region user will enter the amount of money received, but it can only be as high as the 'balance' remaining.
If user enters a higher value it should not let him/her.
The value is: PaymentLines.Fields.Item("Balance")
The text box where user enters the amount being received is:
<input name="amount" type="text" class="bodytext" id="item<%=(PaymentLines.Fields.Item("Id").Value)%>" value="0" size="5" maxlength="10" disabled="true">
I have googled buts seems this is kind of a specific thing and could not find something this particular.
I am using classic ASP/VBscript on this page