/beta/admin/AccountInfo.asp

http://github.com/khaneh/Orders · ASP · 336 lines · 292 code · 31 blank · 13 comment · 31 complexity · d6cd707b1f9d1e7c411c1122e155f3ae MD5 · raw file

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="1256"%><%
  2. ' Admin
  3. PageTitle= " "
  4. SubmenuItem=9
  5. %>
  6. <!--#include file="top.asp" -->
  7. <!--#include File="../include_farsiDateHandling.asp"-->
  8. <!--#include File="../include_JS_InputMasks.asp"-->
  9. <%
  10. dateStr = " <span dir=rtl>" & fiscalYear & "/1/1</span> <span dir=rtl>" & shamsiToday() & "</span>"
  11. function Separate2(inputTxt)
  12. myMinus=""
  13. input=inputTxt
  14. if left(input,1)="-" then
  15. myMinus="-"
  16. input=right(input,len(input)-1)
  17. end if
  18. if len(input) > 3 then
  19. tmpr=right(input ,3)
  20. tmpl=left(input , len(input) - 3 )
  21. result = tmpr
  22. while len(tmpl) > 3
  23. tmpr=right(tmpl,3)
  24. result = tmpr & "," & result
  25. tmpl=left(tmpl , len(tmpl) - 3 )
  26. wend
  27. if len(tmpl) > 0 then
  28. result = tmpl & "," & result
  29. end if
  30. else
  31. result = input
  32. end if
  33. Separate2=myMinus & result
  34. end function
  35. '-----------------------------------------------------------------------------------------------------
  36. '-------------------------------------------------------------------------------- List GL Super Groups
  37. '-----------------------------------------------------------------------------------------------------
  38. if request("act")="" then
  39. %><BR><BR>
  40. <CENTER>
  41. <FORM METHOD=POST ACTION="AccountInfo.asp">
  42. <INPUT TYPE="button" onclick="window.location='manageGL.asp?act=showLog'" class="GenButton" value="<%=OpenGLName%>" readonly style="width:276px; background-color: white ">
  43. <!--INPUT TYPE="button" onclick="window.location='balance.asp'" class="GenButton" value="" style="width:90px; ">
  44. <INPUT TYPE="button" onclick="window.location='sood.asp'" class="GenButton" value=" " style="width:90px; "--><br><br>
  45. <INPUT TYPE="button" onclick="window.location='manageGL.asp?act=select'" class="GenButton" value="" style="width:90px; background-color: #FFFFBB ">
  46. <INPUT TYPE="button" onclick="window.location='manageGL.asp?act=new'" class="GenButton" value="" style="width:90px; background-color: #FFFFBB ">
  47. <INPUT TYPE="button" onclick="window.location='manageGL.asp?act=close'" class="GenButton" value="" style="width:90px; background-color: #FFFFBB ">
  48. </FORM>
  49. </CENTER>
  50. <%
  51. Conn.CommandTimeout = 300
  52. set RSS=Conn.Execute ("SELECT GLAccountSuperGroups.Name, ISNULL(DERIVEDTBL.totalCredit, 0) AS totalCredit, ISNULL(DERIVEDTBL.totalDebit, 0) AS totalDebit, totalDebit-totalCredit as totalRemained, GLAccountSuperGroups.ID, GLAccountSuperGroups.Type, ISNULL(DERIVEDTBL.GroupsCount,0) as GroupsCount, ISNULL(DERIVEDTBL.accountsCount,0) as accountsCount FROM (SELECT SUM(DERIVEDTBL.totalCredit) AS totalCredit, SUM(DERIVEDTBL.totalDebit) AS totalDebit, GLAccountGroups.GLSuperGroup, SUM(accountsCount) AS accountsCount, COUNT(GLAccountGroups.ID) AS GroupsCount FROM (SELECT SUM(DERIVEDTBL.totalCredit) AS totalCredit, SUM(DERIVEDTBL.totalDebit) AS totalDebit, GLAccounts.GLGroup, ISNULL(COUNT(GLAccounts.ID),0) AS accountsCount FROM (SELECT SUM(IsCredit * Amount) AS totalCredit, SUM((convert(tinyint,IsCredit)-1) * -1 * Amount) AS totalDebit, GLAccount FROM EffectiveGlRows WHERE (GL = "& OpenGL&") GROUP BY GLAccount) DERIVEDTBL RIGHT OUTER JOIN GLAccounts ON DERIVEDTBL.GLAccount = GLAccounts.ID WHERE (GLAccounts.GL = "& OpenGL&") GROUP BY GLAccounts.GLGroup) DERIVEDTBL RIGHT OUTER JOIN GLAccountGroups ON DERIVEDTBL.GLGroup = GLAccountGroups.ID WHERE (GLAccountGroups.GL = "& OpenGL&") GROUP BY GLAccountGroups.GLSuperGroup) DERIVEDTBL RIGHT OUTER JOIN GLAccountSuperGroups ON DERIVEDTBL.GLSuperGroup = GLAccountSuperGroups.ID WHERE (GLAccountSuperGroups.GL = "& OpenGL&") ")
  53. %>
  54. <TABLE dir=rtl align=center width=600>
  55. <TR >
  56. <TD colspan=5>
  57. <%=OpenGLName%> &nbsp;<%=dateStr%><BR><hR>
  58. </TD>
  59. </TR>
  60. <TR bgcolor="eeeeee" >
  61. <TD><!A HREF="default.asp?s=1"><SMALL></SMALL></A></TD>
  62. <TD><!A HREF="default.asp?s=2"><SMALL> ѐ</SMALL></A></TD>
  63. <TD><!A HREF="default.asp?s=3"><SMALL> </SMALL></A></TD>
  64. <TD><!A HREF="default.asp?s=4"><SMALL> </SMALL></A></TD>
  65. <TD><!A HREF="default.asp?s=4"><SMALL> ()</SMALL></A></TD>
  66. <TD><!A HREF="default.asp?s=4"><SMALL> ()</SMALL></A></TD>
  67. <TD><!A HREF="default.asp?s=4"><SMALL> ()</SMALL></A></TD>
  68. <TD><!A HREF="default.asp?s=5"><SMALL></SMALL></A></TD>
  69. </TR>
  70. <%
  71. tmpCounter=0
  72. Do while not RSS.eof
  73. tmpCounter = tmpCounter + 1
  74. if tmpCounter mod 2 = 1 then
  75. tmpColor="#FFFFFF"
  76. tmpColor2="#FFFFBB"
  77. Else
  78. tmpColor="#DDDDDD"
  79. tmpColor2="#EEEEBB"
  80. End if
  81. %>
  82. <TR bgcolor="<%=tmpColor%>" height=30>
  83. <FORM METHOD=POST ACTION="editGL.asp?act=editAccountSuperGroupForms&SuperGroupID=<%=RSS("ID")%>">
  84. <TD><A HREF="AccountInfo.asp?act=groups&SuperGroupID=<%=RSS("ID")%>"><%=RSS("ID")%></A></TD>
  85. <TD><A HREF="AccountInfo.asp?act=groups&SuperGroupID=<%=RSS("ID")%>"><%=RSS("Name")%></A></TD>
  86. <TD><%=RSS("GroupsCount")%></TD>
  87. <TD><%=RSS("accountsCount")%></TD>
  88. <TD dir=ltr align=right><span dir=ltr><%=Separate2(RSS("totalCredit"))%></span></TD>
  89. <TD dir=ltr align=right><span dir=ltr><%=Separate2(RSS("totalDebit"))%></span></TD>
  90. <TD dir=ltr align=right><span dir=ltr><%=Separate2(RSS("totalRemained"))%></span></TD>
  91. <TD dir=ltr align=center><INPUT style="font-size:7pt" TYPE="submit" value="" NAME="submit" onclick="return confirm(' ѐ Ͽ')">
  92. <INPUT TYPE="submit" value="" NAME="submit" style="font-size:7pt">
  93. </TD>
  94. </form>
  95. </TR>
  96. <%
  97. RSS.moveNext
  98. Loop
  99. %>
  100. </TABLE><br>
  101. <FORM METHOD=POST ACTION="editGL.asp?act=editAccountSuperGroupForms">
  102. <CENTER><INPUT TYPE="submit" value=" ѐ" NAME="submit"></CENTER><br>
  103. </FORM>
  104. <%
  105. '-----------------------------------------------------------------------------------------------------
  106. '------------------------------------------------------------------ List GL Groups under a super group
  107. '-----------------------------------------------------------------------------------------------------
  108. elseif request("act")="groups" then
  109. SuperGroupID = request("SuperGroupID")
  110. set RSS=Conn.Execute ("SELECT SUM(ISNULL(DERIVEDTBL.totalCredit, 0)) AS totalCredit, SUM(ISNULL(DERIVEDTBL.totalDebit, 0)) AS totalDebit, GLAccountGroups.GLSuperGroup, SUM(ISNULL(DERIVEDTBL.accountsCount, 0)) AS accountsCount, GLAccountGroups.Name, GLAccountGroups.ID FROM (SELECT SUM(DERIVEDTBL.totalCredit) AS totalCredit, SUM(DERIVEDTBL.totalDebit) AS totalDebit, GLAccounts.GLGroup, COUNT(GLAccounts.ID) AS accountsCount FROM (SELECT SUM(IsCredit * Amount) AS totalCredit, SUM((convert(tinyint,IsCredit)-1) * -1 * Amount) AS totalDebit, GLAccount FROM EffectiveGLRows Where (GL = "& OpenGL & ") GROUP BY GLAccount) DERIVEDTBL RIGHT OUTER JOIN GLAccounts ON DERIVEDTBL.GLAccount = GLAccounts.ID WHERE (GLAccounts.GL = "& OpenGL & ") GROUP BY GLAccounts.GLGroup) DERIVEDTBL RIGHT OUTER JOIN GLAccountGroups ON DERIVEDTBL.GLGroup = GLAccountGroups.ID WHERE (GLAccountGroups.GL = "& OpenGL & ") AND (GLAccountGroups.GLSuperGroup = "& SuperGroupID & ") GROUP BY GLAccountGroups.GLSuperGroup, GLAccountGroups.Name, GLAccountGroups.ID ORDER BY GLAccountGroups.ID")
  111. %><BR><BR>
  112. <TABLE dir=rtl align=center width=600>
  113. <TR >
  114. <TD colspan=4>
  115. <%
  116. set RSS2=Conn.Execute ("SELECT *, GLs.ID AS GLID ,GLs.Name AS GLname FROM GLs INNER JOIN GLAccountSuperGroups ON GLs.ID = GLAccountSuperGroups.GL WHERE (GLAccountSuperGroups.GL = "& OpenGL & ") AND (GLAccountSuperGroups.ID = "& SuperGroupID & ")")
  117. %><A HREF="AccountInfo.asp?OpenGL=<%=RSS2("GLID")%>"><%=RSS2("GLname")%></A> > <%=RSS2("name")%>
  118. <BR><hR>
  119. </TD>
  120. </TR>
  121. <TR bgcolor="eeeeee" >
  122. <TD><!A HREF="default.asp?s=1"><SMALL></SMALL></A></TD>
  123. <TD><!A HREF="default.asp?s=2"><SMALL> </SMALL></A></TD>
  124. <TD><!A HREF="default.asp?s=4"><SMALL> </SMALL></A></TD>
  125. <TD><!A HREF="default.asp?s=4"><SMALL> ()</SMALL></A></TD>
  126. <TD><!A HREF="default.asp?s=4"><SMALL> ()</SMALL></A></TD>
  127. <TD><!A HREF="default.asp?s=5"><SMALL></SMALL></A></TD>
  128. </TR>
  129. <%
  130. tmpCounter=0
  131. Do while not RSS.eof
  132. tmpCounter = tmpCounter + 1
  133. if tmpCounter mod 2 = 1 then
  134. tmpColor="#FFFFFF"
  135. tmpColor2="#FFFFBB"
  136. Else
  137. tmpColor="#DDDDDD"
  138. tmpColor2="#EEEEBB"
  139. End if
  140. %>
  141. <TR bgcolor="<%=tmpColor%>" >
  142. <FORM METHOD=POST ACTION="editGL.asp?act=editAccountGroupForms&SuperGroupID=<%=SuperGroupID%>&GroupID=<%=RSS("id")%>">
  143. <TD><A HREF="AccountInfo.asp?act=account&GroupID=<%=RSS("id")%>"><%=RSS("id")%></A></TD>
  144. <TD><A HREF="AccountInfo.asp?act=account&GroupID=<%=RSS("id")%>"><%=RSS("Name")%></A></TD>
  145. <TD><%=RSS("accountsCount")%></TD>
  146. <TD><span dir=ltr><%=RSS("totalCredit")%></span></TD>
  147. <TD><span dir=ltr><%=RSS("totalDebit")%></span></TD>
  148. <TD align=center><INPUT TYPE="submit" value="" NAME="submit" onclick="return confirm(' Ͽ')">
  149. <INPUT TYPE="submit" value="" NAME="submit">
  150. </TD>
  151. </form>
  152. </TR>
  153. <%
  154. RSS.moveNext
  155. Loop
  156. %>
  157. </TABLE><br>
  158. <FORM METHOD=POST ACTION="editGL.asp?act=editAccountGroupForms&SuperGroupID=<%=SuperGroupID%>">
  159. <CENTER><INPUT TYPE="submit" value=" " NAME="submit"></CENTER><br>
  160. </FORM>
  161. <%
  162. '-----------------------------------------------------------------------------------------------------
  163. '---------------------------------------------------------------------- List GL Accounts under a group
  164. '-----------------------------------------------------------------------------------------------------
  165. elseif request("act")="account" then
  166. GroupID = request("GroupID")
  167. set RSS=Conn.Execute ("SELECT GLs.Name AS GLName, GLs.ID AS GLID, GLAccountSuperGroups.ID AS SuperGroupID, GLAccountSuperGroups.Name AS SuperGroupName, GLAccountGroups.ID AS GroupID, GLAccountGroups.Name AS GroupName FROM GLAccountGroups INNER JOIN GLAccountSuperGroups ON GLAccountGroups.GLSuperGroup = GLAccountSuperGroups.ID INNER JOIN GLs ON GLAccountSuperGroups.GL = GLs.ID WHERE (GLAccountSuperGroups.GL = "& OpenGL & ") AND (GLAccountGroups.GL = "& OpenGL & ") AND (GLAccountGroups.ID = "& GroupID & ")")
  168. %><BR><BR>
  169. <TABLE dir=rtl align=center width=800>
  170. <TR >
  171. <TD colspan=5>
  172. <%
  173. set RSS2=Conn.Execute ("SELECT GLAccounts.Name, glAccountTypes.name as accountTypeName, DERIVEDTBL.totalDebit AS totalDebit, DERIVEDTBL.totalCredit AS totalCredit, GLAccounts.ID, GLAccounts.HasAppendix FROM (SELECT SUM(CONVERT(tinyint, IsCredit) * Amount) AS totalCredit, SUM((CONVERT(tinyint, IsCredit) - 1) * (- 1) * Amount) AS totalDebit, GLAccount FROM EffectiveGLRows where (GL = "& OpenGL & ") GROUP BY GLAccount) DERIVEDTBL RIGHT OUTER JOIN GLAccounts ON DERIVEDTBL.GLAccount = GLAccounts.ID left outer join glAccountTypes on glAccounts.accountType = glAccountTypes.id WHERE (GLAccounts.GL = "& OpenGL & ") AND (GLAccounts.GLGroup = "& GroupID & ") order by GLAccounts.ID")
  174. %><A HREF="AccountInfo.asp?OpenGL=<%=RSS("GLID")%>"><%=RSS("GLname")%></A> > <A HREF="AccountInfo.asp?act=groups&SuperGroupID=<%=RSS("SuperGroupID")%>"><%=RSS("SuperGroupName")%></a> > <%=RSS("GroupName")%>
  175. <BR><hR>
  176. </TD>
  177. </TR>
  178. <TR bgcolor="eeeeee" >
  179. <TD><!A HREF="default.asp?s=1"><SMALL></SMALL></A></TD>
  180. <TD><!A HREF="default.asp?s=2"><SMALL> </SMALL></A></TD>
  181. <TD><!A HREF="default.asp?s=2"><SMALL> </SMALL></A></TD>
  182. <TD><!A HREF="default.asp?s=2"><SMALL> </SMALL></A></TD>
  183. <TD><!A HREF="default.asp?s=2"><SMALL> </SMALL></A></TD>
  184. <td><small></small></td>
  185. <TD><!A HREF="default.asp?s=5"><SMALL></SMALL></A></TD>
  186. </TR>
  187. <%
  188. tmpCounter=0
  189. Do while not RSS2.eof
  190. tmpCounter = tmpCounter + 1
  191. if tmpCounter mod 2 = 1 then
  192. tmpColor="#FFFFFF"
  193. tmpColor2="#FFFFBB"
  194. Else
  195. tmpColor="#DDDDDD"
  196. tmpColor2="#EEEEBB"
  197. End if
  198. %>
  199. <TR bgcolor="<%=tmpColor%>" >
  200. <FORM METHOD=POST ACTION="editGL.asp?act=editAccountForms&GroupID=<%=GroupID%>&ACCID=<%=RSS2("id")%>">
  201. <TD><A HREF="AccountInfo.asp?act=accountRows&accountID=<%=RSS2("id")%>"><%=RSS2("id")%></A></TD>
  202. <TD><A HREF="AccountInfo.asp?act=accountRows&accountID=<%=RSS2("id")%>"><%=RSS2("Name")%></A></TD>
  203. <td><small><%=rss2("accountTypeName")%></small></td>
  204. <TD><span dir=ltr><%=RSS2("totalCredit")%></span></TD>
  205. <TD><span dir=ltr><%=RSS2("totalDebit")%></span></TD>
  206. <td><span dir=rtl><% If Cbool(RSS2("HasAppendix")) then response.write "" Else response.write "" End If %></span></td>
  207. <TD align=center><INPUT TYPE="submit" value="" NAME="submit" onclick="return confirm(' Ͽ')">
  208. <INPUT TYPE="submit" value="" NAME="submit">
  209. </TD>
  210. </FORM>
  211. </TR>
  212. <%
  213. RSS2.moveNext
  214. Loop
  215. %>
  216. </TABLE><br>
  217. <FORM METHOD=POST ACTION="editGL.asp?act=editAccountForms&GroupID=<%=GroupID%>">
  218. <CENTER><INPUT TYPE="submit" value=" " NAME="submit"></CENTER><br>
  219. </FORM>
  220. <SCRIPT LANGUAGE="JavaScript">
  221. <!--
  222. var submits=document.getElementsByName("submit");
  223. submits[submits.length -1].focus();
  224. //-->
  225. </SCRIPT>
  226. <%
  227. '-----------------------------------------------------------------------------------------------------
  228. '-------------------------------------------------------------------------- List Rows of a GL Accounts
  229. '-----------------------------------------------------------------------------------------------------
  230. elseif request("act")="accountRows" then
  231. account = request("accountID")
  232. DateFrom = request.form("DateFrom")
  233. if DateFrom = "" then DateFrom = shamsiToday()
  234. DateTo = request.form("DateTo")
  235. if DateTo = "" then DateTo = shamsiToday()
  236. set RSS=Conn.Execute ("SELECT *, GLDocs.id as GLDoc, GLRows.id as GLRowsID FROM GLRows inner join GLDocs on GLDocs.id=GLRows.GLDoc where ((GLDocs.IsTemporary=1 or GLDocs.IsChecked=1 or GLDocs.IsFinalized=1) and GLDocs.deleted=0 and GLDocs.IsRemoved=0) and ((GLDocs.GL = "& OpenGL & ") AND (GLRows.GLaccount = "& account & ") and (GLDocs.GLDocDate <= N'"& DateTo & "') and (GLDocs.GLDocDate >= N'"& DateFrom & "'))")
  237. %><BR><BR>
  238. <TABLE dir=rtl align=center width=640 cellspacing=1 cellpadding=3>
  239. <TR >
  240. <TD colspan=7>
  241. <%
  242. set RSS2=Conn.Execute ("SELECT *, GLAccountGroups.ID AS GroupID, GLAccountGroups.Name AS GroupName, GLAccountSuperGroups.ID AS SuperGroupID, GLAccountSuperGroups.Name AS SuperGroupName, GLs.ID AS GLID, GLs.Name AS GLname, GLAccounts.Name AS name FROM GLs INNER JOIN GLAccountSuperGroups ON GLs.ID = GLAccountSuperGroups.GL INNER JOIN GLAccountGroups ON GLs.ID = GLAccountGroups.GL AND GLAccountSuperGroups.ID = GLAccountGroups.GLSuperGroup INNER JOIN GLAccounts ON GLs.ID = GLAccounts.GL AND GLAccountGroups.ID = GLAccounts.GLGroup WHERE (GLAccounts.GL = "& OpenGL & ") AND (GLAccounts.ID = "& account & ")")
  243. %><A HREF="AccountInfo.asp?OpenGL=<%=RSS2("GLID")%>"><%=RSS2("GLname")%></A> > <A HREF="AccountInfo.asp?act=groups&SuperGroupID=<%=RSS2("SuperGroupID")%>"><%=RSS2("SuperGroupName")%></a> > <A HREF="AccountInfo.asp?act=account&GroupID=<%=RSS2("GroupID")%>"><%=RSS2("GroupName")%></a> > <%=RSS2("Name")%>
  244. <BR><hR>
  245. </TD>
  246. </TR>
  247. <TR >
  248. <TD colspan=7 align=center>
  249. <FORM METHOD=POST ACTION="AccountInfo.asp?act=accountRows&accountID=<%=account%>">
  250. <INPUT dir="LTR" TYPE="text" NAME="DateFrom" maxlength="10" size="10" onblur="acceptDate(this)" onKeyPress="return maskDate(this);" value="<%=DateFrom%>">
  251. <INPUT dir="LTR" TYPE="text" NAME="DateTo" maxlength="10" size="10" onblur="acceptDate(this)" onKeyPress="return maskDate(this);" value="<%=DateTo%>">
  252. <INPUT TYPE="submit" NAME="submit" value="">
  253. </FORM>
  254. </TD>
  255. </TR>
  256. <% if request("submit")="" then %>
  257. <TR bgcolor="eeeeee" >
  258. <TD align=center><!A HREF="default.asp?s=2"><SMALL></SMALL></A></TD>
  259. <TD align=center><!A HREF="default.asp?s=2"><SMALL> </SMALL></A></TD>
  260. <TD align=center width=100><!A HREF="default.asp?s=2"><SMALL></SMALL></A></TD>
  261. <TD align=center><!A HREF="default.asp?s=5"><SMALL></SMALL></A></TD>
  262. <TD align=center><!A HREF="default.asp?s=5"><SMALL></SMALL></A></TD>
  263. <TD align=center><!A HREF="default.asp?s=5"><SMALL>-</SMALL></A></TD>
  264. <TD align=center><!A HREF="default.asp?s=5"><SMALL></SMALL></A></TD>
  265. </TR>
  266. <%
  267. tmpCounter=0
  268. remainedAmount = 0
  269. Do while not RSS.eof
  270. tmpCounter = tmpCounter + 1
  271. if tmpCounter mod 2 = 1 then
  272. tmpColor="#FFFFFF"
  273. tmpColor2="#FFFFBB"
  274. Else
  275. tmpColor="#DDDDDD"
  276. tmpColor2="#EEEEBB"
  277. End if
  278. debit = 0
  279. credit = 0
  280. if RSS("IsCredit") then
  281. credit = RSS("Amount")
  282. else
  283. debit = RSS("Amount")
  284. end if
  285. remainedAmount = remainedAmount - cdbl(credit) + cdbl(debit)
  286. %>
  287. <TR bgcolor="<%=tmpColor%>" >
  288. <TD><A HREF="GLMemoDocShow.asp?id=<%=RSS("GLDoc")%>"><%=RSS("GLDocID")%></A></TD>
  289. <TD align=center dir=ltr><%=RSS("GLDocDate")%></TD>
  290. <TD width=100><!A HREF="AccountInfo.asp?act=accountRows&accountID=<%=RSS("id")%>"><INPUT TYPE="text" value="<%=RSS("Description")%>" style="width=200pt; border:solid 0pt; font-size:8pt; background-color:transparent"></A></TD>
  291. <TD dir=ltr align=right><% if debit<>"0" then %> <%=Separate2(debit)%><% end if %></TD>
  292. <TD dir=ltr align=right><% if credit<>"0" then %> <%=Separate2(credit)%><% end if %></TD>
  293. <TD dir=ltr align=center><% if remainedAmount > 0 then %><% else %><% end if %></TD>
  294. <TD dir=ltr align=right><%=Separate2(remainedAmount)%></TD>
  295. </TR>
  296. <%
  297. RSS.moveNext
  298. Loop
  299. %>
  300. <% end if %>
  301. </TABLE><br>
  302. <%
  303. end if
  304. %>
  305. <!--#include file="tah.asp" -->