I have a web page where the users are supposed to be able to click a button to add a new table row. I have tried various javascripts found online but I am not a javascript person. The page is written in html and asp. I dynamically fill in the dropdown boxes from a database which change for whatever is selected from the first dropdown box. below is the code for the entire webpage. The first screenshot is when the page opens, the second screenshot is if they were to click the plus sign next to Monday. Any help on this would be greatly appreciated.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%
if request("weekending") <> "" then
thisdate = cdate(request("weekending"))
thisday = weekday(thisdate)
fdtw=dateadd("d", -thisday, thisdate) +1
ldtw=fdtw+6
Else
today=weekday(date())
fdtw=dateadd("d", -today, date()) +1
ldtw=fdtw+6
End If
%>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>KFSA Route Sheet</title>
<script language="javascript" src="modules/popupcal/popcalendarroutesheet.js">
</script>
<script src="/modules/combobox/dhtmlxcommon.js"></script>
<script src="/modules/combobox/dhtmlxcombo.js"></script>
<script src="/modules/combobox/ext/dhtmlxcombo_whp.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/modules/combobox/dhtmlxcombo.css"/>
<script type="text/javascript">
window.dhx_globalImgPath="/modules/combobox/";
</script>
<script language="javascript" type="text/javascript">
function submitexpense(thisValue) {
document.routesheet.subdate.value=thisValue;
document.routesheet.action='expense.asp?addedit=add';
document.routesheet.submit();
}
</script>
<script language="javascript" type="text/javascript">
function submitcontinue(thisValue) {
document.routesheet.subdate.value=thisValue;
document.routesheet.action='modules/addroute.asp';
document.routesheet.submit();
}
</script>
<script language="javascript" type="text/javascript">
function showCols(thisValue) {
if (document.getElementById("type"+thisValue).value=="Existing") {
document.getElementById("leavediv"+thisValue).style.display = 'none';
document.getElementById("meetingdiv"+thisValue).style.display = 'none';
document.getElementById("clientdiv"+thisValue).style.display = '';
document.getElementById("purpose"+thisValue).disabled = false;
}
else if (document.getElementById("type"+thisValue).value=="Prospect") {
document.getElementById("leavediv"+thisValue).style.display = 'none';
document.getElementById("meetingdiv"+thisValue).style.display = 'none';
document.getElementById("clientdiv"+thisValue).style.display = '';
document.getElementById("purpose"+thisValue).disabled = false;
}
else if (document.getElementById("type"+thisValue).value=="Trade") {
document.getElementById("leavediv"+thisValue).style.display = 'none';
document.getElementById("meetingdiv"+thisValue).style.display = '';
document.getElementById("clientdiv"+thisValue).style.display = 'none';
document.getElementById("purpose"+thisValue).disabled = true;
}
else if (document.getElementById("type"+thisValue).value=="Meeting") {
document.getElementById("leavediv"+thisValue).style.display = 'none';
document.getElementById("meetingdiv"+thisValue).style.display = '';
document.getElementById("clientdiv"+thisValue).style.display = 'none';
document.getElementById("purpose"+thisValue).disabled = true;
}
else if (document.getElementById("type"+thisValue).value=="Office") {
document.getElementById("leavediv"+thisValue).style.display = 'none';
document.getElementById("meetingdiv"+thisValue).style.display = 'none';
document.getElementById("clientdiv"+thisValue).style.display = '';
document.getElementById("purpose"+thisValue).disabled = false;
}
else if (document.getElementById("type"+thisValue).value=="Leave") {
document.getElementById("leavediv"+thisValue).style.display = '';
document.getElementById("meetingdiv"+thisValue).style.display = 'none';
document.getElementById("clientdiv"+thisValue).style.display = 'none';
document.getElementById("purpose"+thisValue).disabled = true;
}
else {
document.getElementById("leavediv"+thisValue).style.display = 'none';
document.getElementById("meetingdiv"+thisValue).style.display = 'none';
document.getElementById("clientdiv"+thisValue).style.display = '';
document.getElementById("purpose"+thisValue).disabled = false;
}
}
</script>
</head>
<body>
<%
response.write(request("adddate") & "<br>")
'response.write("First day of this week: " & fdtw & "<br>")
'response.write("Last day of this week: " & ldtw)
Set oConn = Server.CreateObject("ADODB.Connection")
Set oRS = Server.CreateObject("ADODB.Recordset")
oConn.ConnectionString = "DSN=EbixClient;uid=********;pwd=*********"
oConn.Open
oRS.Open "Select Client_Code, Client_Name, Client_FName, Client_City, Client_State From dbo.Client_List WITH (NOLOCK) ORDER By Client_FName", oConn
'Now, read the Recordset into a 2d array
Dim ClientListValues
ClientListValues = oRS.GetRows()
oRS.Close
oRS.Open "Select DISTINCT ACC_DISP_NUMBER, ACC_DESCRIPTION FROM dbo.GL_ACCOUNTS WITH (NOLOCK) WHERE ((ACC_DISP_NUMBER >= 6550.00 AND ACC_DISP_NUMBER <= 6551.00) OR (ACC_DISP_NUMBER >= 6600.00 AND ACC_DISP_NUMBER <= 6601.00)) ORDER By ACC_DESCRIPTION", oConn
Dim MeetingListValues
MeetingListValues = oRS.GetRows()
oRS.Close
oConn.Close
Set oRS = Nothing
Set oConn = Nothing
Const MyClient_Code = 0
Const MyClient_Name = 1
Const MyClient_FName = 2
Const MyClient_City = 3
Const MyClient_State = 4
Const MyMeeting_Number = 0
Const MyMeeting_Desc = 1
%>
<form name="routesheet" action="" method="post">
<table width="1000" align="center" cellpadding="2" cellspacing="0">
<tr bgcolor="black">
<td border="0">
<font face="arial" size="2" color="white"><b>Travel & Expense Report - KFSA</b></font>
</td>
<td align="right" border="0">
<font face="arial" size="2" color="white"><b>Route Sheet for <%=Session("fname")%></b></font>
</td>
</tr>
</table>
<table align="center">
<tr>
<td align=center>
<font face=Arial size=2><b>Week Ending: </b></font><input id="we" style="text-align:center; background-color:#CCCCCC" type="text" size="12" name="weekending" value="<%=ldtw%>" onchange="this.form.submit();" readonly/><img alt="popup calendar" src="Images/calendar.jpg" align="center" width="16" height="16" onclick="popUpCalendar(this, routesheet.weekending, 'mm/dd/yyyy')"/>
</td>
</tr>
</table>
<table align="center" width="1000" cellspacing="0" cellpadding="0">
<tr bgcolor="black" style="border: 2px solid #FFFFFF">
<td align="center" valign="bottom" style="border-right-style: solid; border-width: 2px; border-color: #FFFFFF">
<font face="Arial" size="2" color="white"><b>Date:</b></font>
</td>
<td align="center" valign="bottom" style="border-right-style: solid; border-width: 2px; border-color: #FFFFFF">
<font face="Arial" size="2" color="white"><b>Type:</b></font>
</td>
<td align="center" valign="bottom" style="border-right-style: solid; border-width: 2px; border-color: #FFFFFF">
<font face="Arial" size="2" color="white"><b>Client/Description:</b></font>
</td>
<td align="center" valign="bottom" style="border-right-style: solid; border-width: 2px; border-color: #FFFFFF">
<font face="Arial" size="2" color="white"><b>Purpose:</b></font>
</td>
<% if request.querystring("addedit")="edit" Then %>
<td align="center" valign="bottom" style="border-right-style: solid; border-width: 2px; border-color: #FFFFFF">
<font face="Arial" size="2" color="white"><b>Add Mileage/Expense:</b></font>
</td>
<td align="center">
<table>
<tr>
<td colspan="3">
<font face="Arial" size="2" color="white"><b>Per Diem:</b></font>
</td>
</tr>
<tr>
<td>
<font face="Arial" size="2" color="white"><b>BKFST</b></font>
<font face="Arial" size="2" color="white"><b>LUNCH</b></font>
<font face="Arial" size="2" color="white"><b>DINNR</b></font>
</td>
</tr>
</table>
</td>
<% end if %>
</tr>
<% for i = 0 to 6 %>
<div id="route<%=i%>">
<tr height="50px">
<td width="125px" style="border-bottom:1px solid #000000">
<table>
<tr>
<td>
<input type="image" name="plus<%=i%>" value="plus<%=i%>" src="images/plus.png" alt="Add Another Stop" onclick="addroute(<%=i%>);"/>
</td>
<td style="text-align: center; width: 100px;">
<font face="Arial" size="2" color="black"/><b><%=WeekdayName(Weekday(fdtw)+i)%></b><br/><font size="1"><%=fdtw+i%></font>
<input type="hidden" name="weekday<%=i%>" value="<%=fdtw+i%>"/>
</td>
</tr>
</table>
</td>
<td style="border-bottom:1px solid #000000; text-align: center;">
<select id="type<%=i%>" name="type<%=i%>" onchange="showCols(<%=i%>);">
<option value="Select">Select Type...</option>
<option value="Existing">Existing Client</option>
<option value="Prospect">Prospect</option>
<option value="Trade">Trade Show</option>
<option value="Meeting">Meeting</option>
<option value="Office">In Office</option>
<option value="Leave">Leave Request</option>
</select>
</td>
<td style="border-bottom:1px solid #000000; text-align: center;">
<div id="leavediv<%=i%>" style="display:none;">
<select name="leave<%=i%>" id="leave<%=i%>">
<option value=""></option>
<option value="Vacation">Vacation</option>
<option value="Sick">Sick</option>
<option value="PersonalLeave">Personal Leave</option>
<option value="Birthday">Birthday</option>
<option value="Funderal">Funeral</option>
<option value="JurtyDuty">Jury Duty</option>
</select>
<script>
var z=dhtmlXComboFromSelect("leave<%=i%>",200);
z.enableFilteringMode(true);
z.setOptionWidth(450);
</script>
</div>
<div id="meetingdiv<%=i%>" style="display:none;">
<select name="meeting<%=i%>" id="meeting<%=i%>">
<option value=""></option>
<% For mlvcounter = 0 to UBound(MeetingListValues,2) %>
<option value="<%=(MeetingListValues(MyMeeting_Number,mlvcounter))%>"><%=MeetingListValues(MyMeeting_Desc,mlvcounter)%></option>
<% Next %>
</select>
<script>
var z=dhtmlXComboFromSelect("meeting<%=i%>",200);
z.enableFilteringMode(true);
z.setOptionWidth(450);
</script>
</div>
<div id="clientdiv<%=i%>" style="display:block;">
<select name="client<%=i%>" id="client<%=i%>">
<option value=""></option>
<% For rowcounter = 0 To UBound(ClientListValues,2) %>
<option value="<%=(ClientListValues(MyClient_Code,rowcounter))%>"><%=ClientListValues(MyClient_FName,rowcounter) & " - " & ClientListValues(MyClient_City,rowcounter) & ", " & ClientListValues(MyClient_State,rowcounter)%></option>
<% Next %>
</select>
<script>
var z=dhtmlXComboFromSelect("client<%=i%>",200);
z.enableFilteringMode(true);
z.setOptionWidth(450);
</script>
</div>
</td>
<td style="border-bottom:1px solid #000000; text-align: center;">
<select id="purpose<%=i%>" name="purpose<%=i%>" style="display:block">
<option value="Select">Select Purpose...</option>
<option value="Renewal">Renewal</option>
<option value="New_Business">New Business</option>
<option value="Claim_Related">Claim Related</option>
<option value="Annual_Mtg">Annual Meeting</option>
<option value="BOD_Review">BOD Review</option>
<option value="Other">Other</option>
</select>
</td>
<% if request.querystring("addedit")="edit" Then %>
<td style="border-bottom:1px solid #000000; text-align: center;">
<input type="submit" value="Add Exp" name="Expense<%=i%>" onclick="submitexpense(<%=i%>)"/>
<input type="submit" value="Add Mlge" name="Mileage<%=i%>" onclick="this.form.action='mileage.asp'"/>
</td>
<td align="center" style="border-bottom:1px solid #000000">
<table>
<tr>
<td>
<input type="checkbox" name="BKFST<%=i%>"/>
</td>
<td>
<input type="checkbox" name="LUNCH<%=i%>"/>
</td>
<td>
<input type="checkbox" name="DINNR<%=i%>"/>
</td>
</tr>
</table>
</td>
<% end if %>
</tr>
</div>
<% next %>
</table>
<table align="center" width="1000" cellspacing="0" cellpadding="0">
<tr align="right">
<td>
<br/>
<input type="submit" value="Continue..." name="continue" onclick="submitcontinue(<%=i%>)"/>
</td>
</tr>
</table>
<input type="hidden" value="" name="subdate"/>
<input type="hidden" value="" name="adddate"/>
</form>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%
if request("weekending") <> "" then
thisdate = cdate(request("weekending"))
thisday = weekday(thisdate)
fdtw=dateadd("d", -thisday, thisdate) +1
ldtw=fdtw+6
Else
today=weekday(date())
fdtw=dateadd("d", -today, date()) +1
ldtw=fdtw+6
End If
%>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>KFSA Route Sheet</title>
<script language="javascript" src="modules/popupcal/popcalendarroutesheet.js">
</script>
<script src="/modules/combobox/dhtmlxcommon.js"></script>
<script src="/modules/combobox/dhtmlxcombo.js"></script>
<script src="/modules/combobox/ext/dhtmlxcombo_whp.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/modules/combobox/dhtmlxcombo.css"/>
<script type="text/javascript">
window.dhx_globalImgPath="/modules/combobox/";
</script>
<script language="javascript" type="text/javascript">
function submitexpense(thisValue) {
document.routesheet.subdate.value=thisValue;
document.routesheet.action='expense.asp?addedit=add';
document.routesheet.submit();
}
</script>
<script language="javascript" type="text/javascript">
function submitcontinue(thisValue) {
document.routesheet.subdate.value=thisValue;
document.routesheet.action='modules/addroute.asp';
document.routesheet.submit();
}
</script>
<script language="javascript" type="text/javascript">
function showCols(thisValue) {
if (document.getElementById("type"+thisValue).value=="Existing") {
document.getElementById("leavediv"+thisValue).style.display = 'none';
document.getElementById("meetingdiv"+thisValue).style.display = 'none';
document.getElementById("clientdiv"+thisValue).style.display = '';
document.getElementById("purpose"+thisValue).disabled = false;
}
else if (document.getElementById("type"+thisValue).value=="Prospect") {
document.getElementById("leavediv"+thisValue).style.display = 'none';
document.getElementById("meetingdiv"+thisValue).style.display = 'none';
document.getElementById("clientdiv"+thisValue).style.display = '';
document.getElementById("purpose"+thisValue).disabled = false;
}
else if (document.getElementById("type"+thisValue).value=="Trade") {
document.getElementById("leavediv"+thisValue).style.display = 'none';
document.getElementById("meetingdiv"+thisValue).style.display = '';
document.getElementById("clientdiv"+thisValue).style.display = 'none';
document.getElementById("purpose"+thisValue).disabled = true;
}
else if (document.getElementById("type"+thisValue).value=="Meeting") {
document.getElementById("leavediv"+thisValue).style.display = 'none';
document.getElementById("meetingdiv"+thisValue).style.display = '';
document.getElementById("clientdiv"+thisValue).style.display = 'none';
document.getElementById("purpose"+thisValue).disabled = true;
}
else if (document.getElementById("type"+thisValue).value=="Office") {
document.getElementById("leavediv"+thisValue).style.display = 'none';
document.getElementById("meetingdiv"+thisValue).style.display = 'none';
document.getElementById("clientdiv"+thisValue).style.display = '';
document.getElementById("purpose"+thisValue).disabled = false;
}
else if (document.getElementById("type"+thisValue).value=="Leave") {
document.getElementById("leavediv"+thisValue).style.display = '';
document.getElementById("meetingdiv"+thisValue).style.display = 'none';
document.getElementById("clientdiv"+thisValue).style.display = 'none';
document.getElementById("purpose"+thisValue).disabled = true;
}
else {
document.getElementById("leavediv"+thisValue).style.display = 'none';
document.getElementById("meetingdiv"+thisValue).style.display = 'none';
document.getElementById("clientdiv"+thisValue).style.display = '';
document.getElementById("purpose"+thisValue).disabled = false;
}
}
</script>
</head>
<body>
<%
response.write(request("adddate") & "<br>")
'response.write("First day of this week: " & fdtw & "<br>")
'response.write("Last day of this week: " & ldtw)
Set oConn = Server.CreateObject("ADODB.Connection")
Set oRS = Server.CreateObject("ADODB.Recordset")
oConn.ConnectionString = "DSN=EbixClient;uid=********;pwd=*********"
oConn.Open
oRS.Open "Select Client_Code, Client_Name, Client_FName, Client_City, Client_State From dbo.Client_List WITH (NOLOCK) ORDER By Client_FName", oConn
'Now, read the Recordset into a 2d array
Dim ClientListValues
ClientListValues = oRS.GetRows()
oRS.Close
oRS.Open "Select DISTINCT ACC_DISP_NUMBER, ACC_DESCRIPTION FROM dbo.GL_ACCOUNTS WITH (NOLOCK) WHERE ((ACC_DISP_NUMBER >= 6550.00 AND ACC_DISP_NUMBER <= 6551.00) OR (ACC_DISP_NUMBER >= 6600.00 AND ACC_DISP_NUMBER <= 6601.00)) ORDER By ACC_DESCRIPTION", oConn
Dim MeetingListValues
MeetingListValues = oRS.GetRows()
oRS.Close
oConn.Close
Set oRS = Nothing
Set oConn = Nothing
Const MyClient_Code = 0
Const MyClient_Name = 1
Const MyClient_FName = 2
Const MyClient_City = 3
Const MyClient_State = 4
Const MyMeeting_Number = 0
Const MyMeeting_Desc = 1
%>
<form name="routesheet" action="" method="post">
<table width="1000" align="center" cellpadding="2" cellspacing="0">
<tr bgcolor="black">
<td border="0">
<font face="arial" size="2" color="white"><b>Travel & Expense Report - KFSA</b></font>
</td>
<td align="right" border="0">
<font face="arial" size="2" color="white"><b>Route Sheet for <%=Session("fname")%></b></font>
</td>
</tr>
</table>
<table align="center">
<tr>
<td align=center>
<font face=Arial size=2><b>Week Ending: </b></font><input id="we" style="text-align:center; background-color:#CCCCCC" type="text" size="12" name="weekending" value="<%=ldtw%>" onchange="this.form.submit();" readonly/><img alt="popup calendar" src="Images/calendar.jpg" align="center" width="16" height="16" onclick="popUpCalendar(this, routesheet.weekending, 'mm/dd/yyyy')"/>
</td>
</tr>
</table>
<table align="center" width="1000" cellspacing="0" cellpadding="0">
<tr bgcolor="black" style="border: 2px solid #FFFFFF">
<td align="center" valign="bottom" style="border-right-style: solid; border-width: 2px; border-color: #FFFFFF">
<font face="Arial" size="2" color="white"><b>Date:</b></font>
</td>
<td align="center" valign="bottom" style="border-right-style: solid; border-width: 2px; border-color: #FFFFFF">
<font face="Arial" size="2" color="white"><b>Type:</b></font>
</td>
<td align="center" valign="bottom" style="border-right-style: solid; border-width: 2px; border-color: #FFFFFF">
<font face="Arial" size="2" color="white"><b>Client/Description:</b></font>
</td>
<td align="center" valign="bottom" style="border-right-style: solid; border-width: 2px; border-color: #FFFFFF">
<font face="Arial" size="2" color="white"><b>Purpose:</b></font>
</td>
<% if request.querystring("addedit")="edit" Then %>
<td align="center" valign="bottom" style="border-right-style: solid; border-width: 2px; border-color: #FFFFFF">
<font face="Arial" size="2" color="white"><b>Add Mileage/Expense:</b></font>
</td>
<td align="center">
<table>
<tr>
<td colspan="3">
<font face="Arial" size="2" color="white"><b>Per Diem:</b></font>
</td>
</tr>
<tr>
<td>
<font face="Arial" size="2" color="white"><b>BKFST</b></font>
<font face="Arial" size="2" color="white"><b>LUNCH</b></font>
<font face="Arial" size="2" color="white"><b>DINNR</b></font>
</td>
</tr>
</table>
</td>
<% end if %>
</tr>
<% for i = 0 to 6 %>
<div id="route<%=i%>">
<tr height="50px">
<td width="125px" style="border-bottom:1px solid #000000">
<table>
<tr>
<td>
<input type="image" name="plus<%=i%>" value="plus<%=i%>" src="images/plus.png" alt="Add Another Stop" onclick="addroute(<%=i%>);"/>
</td>
<td style="text-align: center; width: 100px;">
<font face="Arial" size="2" color="black"/><b><%=WeekdayName(Weekday(fdtw)+i)%></b><br/><font size="1"><%=fdtw+i%></font>
<input type="hidden" name="weekday<%=i%>" value="<%=fdtw+i%>"/>
</td>
</tr>
</table>
</td>
<td style="border-bottom:1px solid #000000; text-align: center;">
<select id="type<%=i%>" name="type<%=i%>" onchange="showCols(<%=i%>);">
<option value="Select">Select Type...</option>
<option value="Existing">Existing Client</option>
<option value="Prospect">Prospect</option>
<option value="Trade">Trade Show</option>
<option value="Meeting">Meeting</option>
<option value="Office">In Office</option>
<option value="Leave">Leave Request</option>
</select>
</td>
<td style="border-bottom:1px solid #000000; text-align: center;">
<div id="leavediv<%=i%>" style="display:none;">
<select name="leave<%=i%>" id="leave<%=i%>">
<option value=""></option>
<option value="Vacation">Vacation</option>
<option value="Sick">Sick</option>
<option value="PersonalLeave">Personal Leave</option>
<option value="Birthday">Birthday</option>
<option value="Funderal">Funeral</option>
<option value="JurtyDuty">Jury Duty</option>
</select>
<script>
var z=dhtmlXComboFromSelect("leave<%=i%>",200);
z.enableFilteringMode(true);
z.setOptionWidth(450);
</script>
</div>
<div id="meetingdiv<%=i%>" style="display:none;">
<select name="meeting<%=i%>" id="meeting<%=i%>">
<option value=""></option>
<% For mlvcounter = 0 to UBound(MeetingListValues,2) %>
<option value="<%=(MeetingListValues(MyMeeting_Number,mlvcounter))%>"><%=MeetingListValues(MyMeeting_Desc,mlvcounter)%></option>
<% Next %>
</select>
<script>
var z=dhtmlXComboFromSelect("meeting<%=i%>",200);
z.enableFilteringMode(true);
z.setOptionWidth(450);
</script>
</div>
<div id="clientdiv<%=i%>" style="display:block;">
<select name="client<%=i%>" id="client<%=i%>">
<option value=""></option>
<% For rowcounter = 0 To UBound(ClientListValues,2) %>
<option value="<%=(ClientListValues(MyClient_Code,rowcounter))%>"><%=ClientListValues(MyClient_FName,rowcounter) & " - " & ClientListValues(MyClient_City,rowcounter) & ", " & ClientListValues(MyClient_State,rowcounter)%></option>
<% Next %>
</select>
<script>
var z=dhtmlXComboFromSelect("client<%=i%>",200);
z.enableFilteringMode(true);
z.setOptionWidth(450);
</script>
</div>
</td>
<td style="border-bottom:1px solid #000000; text-align: center;">
<select id="purpose<%=i%>" name="purpose<%=i%>" style="display:block">
<option value="Select">Select Purpose...</option>
<option value="Renewal">Renewal</option>
<option value="New_Business">New Business</option>
<option value="Claim_Related">Claim Related</option>
<option value="Annual_Mtg">Annual Meeting</option>
<option value="BOD_Review">BOD Review</option>
<option value="Other">Other</option>
</select>
</td>
<% if request.querystring("addedit")="edit" Then %>
<td style="border-bottom:1px solid #000000; text-align: center;">
<input type="submit" value="Add Exp" name="Expense<%=i%>" onclick="submitexpense(<%=i%>)"/>
<input type="submit" value="Add Mlge" name="Mileage<%=i%>" onclick="this.form.action='mileage.asp'"/>
</td>
<td align="center" style="border-bottom:1px solid #000000">
<table>
<tr>
<td>
<input type="checkbox" name="BKFST<%=i%>"/>
</td>
<td>
<input type="checkbox" name="LUNCH<%=i%>"/>
</td>
<td>
<input type="checkbox" name="DINNR<%=i%>"/>
</td>
</tr>
</table>
</td>
<% end if %>
</tr>
</div>
<% next %>
</table>
<table align="center" width="1000" cellspacing="0" cellpadding="0">
<tr align="right">
<td>
<br/>
<input type="submit" value="Continue..." name="continue" onclick="submitcontinue(<%=i%>)"/>
</td>
</tr>
</table>
<input type="hidden" value="" name="subdate"/>
<input type="hidden" value="" name="adddate"/>
</form>
</body>
</html>