Advertisement
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: |
<script language=javascript>
function ShowInput(id_val) {
var obj_id1 = document.getElementById('div1');
var obj_id2 = document.getElementById('div2');
if (id_val == 1) {
obj_id1.style.display = "none";
obj_id2.style.display = "";}
else {
obj_id2.style.display = "none";
obj_id1.style.display = "";}
}
function PostInput() {
n=gross1.gr_amt.value;
if (n == "") {
alert('Amount cannot be blank');
return false;
}
if (IsNumeric(n)) {
if (n < 0) {
alert('Amount cannot be negative');
return false;
}
else {
return true;
}
}
else {
alert('Amount must be numeric and cannot be negative');
return false;
}
}
</script>
<script language="javascript">
function myRound(num) {
return Math.round(num*1)/1000;
}
</script>
%>
<div id=div1>
<input type=button value="<%=b_title%>" onClick=ShowInput(1)>
</div>
<div id=div2 style="display:none">Prior Year Gross Receipts:
<INPUT NAME="Number" TYPE="TEXT" size=12> <INPUT TYPE="BUTTON" value="Calculate" ONCLICK="this.form.gr_amt.value=myRound(this.form.Number.value).toFixed(0);">
<br>
<br>
Calculated Gross <input name=gr_amt type=text size=9 style="text-align:right" value=<%=rslic.rows(0)("gross_rec_amt")%> readonly onFocus="this.blur()" >
<input class="buttonsub" type="submit" value="Post" onClick="return PostInput()">
<input class="buttonsub" type=button value="Cancel" onClick=ShowInput(2)>
</div>
<% end if %>
|
|
Loading Advertisement... |