public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;
      _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");

      out.write("\n");
      out.write("\n");
      out.write("<?php require_once('Connections/config.php'); ?>\n");
      out.write("<?php\n");
      out.write("if (!function_exists(\"GetSQLValueString\")) {\n");
      out.write("function GetSQLValueString($theValue, $theType, $theDefinedValue = \"\", $theNotDefinedValue = \"\") \n");
      out.write("{\n");
      out.write("  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;\n");
      out.write("\n");
      out.write("  $theValue = function_exists(\"mysql_real_escape_string\") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);\n");
      out.write("\n");
      out.write("  switch ($theType) {\n");
      out.write("    case \"text\":\n");
      out.write("      $theValue = ($theValue != \"\") ? \"'\" . $theValue . \"'\" : \"NULL\";\n");
      out.write("      break;    \n");
      out.write("    case \"long\":\n");
      out.write("    case \"int\":\n");
      out.write("      $theValue = ($theValue != \"\") ? intval($theValue) : \"NULL\";\n");
      out.write("      break;\n");
      out.write("    case \"double\":\n");
      out.write("      $theValue = ($theValue != \"\") ? \"'\" . doubleval($theValue) . \"'\" : \"NULL\";\n");
      out.write("      break;\n");
      out.write("    case \"date\":\n");
      out.write("      $theValue = ($theValue != \"\") ? \"'\" . $theValue . \"'\" : \"NULL\";\n");
      out.write("      break;\n");
      out.write("    case \"defined\":\n");
      out.write("      $theValue = ($theValue != \"\") ? $theDefinedValue : $theNotDefinedValue;\n");
      out.write("      break;\n");
      out.write("  }\n");
      out.write("  return $theValue;\n");
      out.write("}\n");
      out.write("}\n");
      out.write("\n");
      out.write("if (!function_exists(\"GetSQLValueString\")) {\n");
      out.write("function GetSQLValueString($theValue, $theType, $theDefinedValue = \"\", $theNotDefinedValue = \"\") \n");
      out.write("{\n");
      out.write("  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;\n");
      out.write("\n");
      out.write("  $theValue = function_exists(\"mysql_real_escape_string\") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);\n");
      out.write("\n");
      out.write("  switch ($theType) {\n");
      out.write("    case \"text\":\n");
      out.write("      $theValue = ($theValue != \"\") ? \"'\" . $theValue . \"'\" : \"NULL\";\n");
      out.write("      break;    \n");
      out.write("    case \"long\":\n");
      out.write("    case \"int\":\n");
      out.write("      $theValue = ($theValue != \"\") ? intval($theValue) : \"NULL\";\n");
      out.write("      break;\n");
      out.write("    case \"double\":\n");
      out.write("      $theValue = ($theValue != \"\") ? \"'\" . doubleval($theValue) . \"'\" : \"NULL\";\n");
      out.write("      break;\n");
      out.write("    case \"date\":\n");
      out.write("      $theValue = ($theValue != \"\") ? \"'\" . $theValue . \"'\" : \"NULL\";\n");
      out.write("      break;\n");
      out.write("    case \"defined\":\n");
      out.write("      $theValue = ($theValue != \"\") ? $theDefinedValue : $theNotDefinedValue;\n");
      out.write("      break;\n");
      out.write("  }\n");
      out.write("  return $theValue;\n");
      out.write("}\n");
      out.write("}\n");
      out.write("\n");
      out.write("mysql_select_db($database_config, $config);\n");
      out.write("$query_a14 = \"SELECT b.Client_id, c.f_name, c.l_name, c.email from Booking b, client c where ( DATE_FORMAT(Sysdate(),'%M') - DATE_FORMAT(ARRIVALDATE,'%m') ) <3 and c.client_id = b. client_id \";\n");
      out.write("$a14 = mysql_query($query_a14, $config) or die(mysql_error());\n");
      out.write("$row_a14 = mysql_fetch_assoc($a14);\n");
      out.write("$totalRows_a14 = mysql_num_rows($a14);\n");
      out.write("\n");
      out.write("mysql_select_db($database_config, $config);\n");
      out.write("$query_a21 = \"SELECT Agent_id,f_name,l_name from Agent where Agent_id IN (Select Agent_id From  Booking  b  GROUP BY b.Agent_id HAVING COUNT(b.Book_id) >= ALL ( SELECT COUNT(b2.Book_id) FROM Booking b2 GROUP BY b2.Agent_id))\";\n");
      out.write("$a21 = mysql_query($query_a21, $config) or die(mysql_error());\n");
      out.write("$row_a21 = mysql_fetch_assoc($a21);\n");
      out.write("$totalRows_a21 = mysql_num_rows($a21);\n");
      out.write("\n");
      out.write("mysql_select_db($database_config, $config);\n");
      out.write("$query_a12 = \"SELECT * FROM Activities where Activity_ID  NOT IN  (SELECT DISTINCT Activity_ID  FROM Booking) ;\";\n");
      out.write("$a12 = mysql_query($query_a12, $config) or die(mysql_error());\n");
      out.write("$row_a12 = mysql_fetch_assoc($a12);\n");
      out.write("$totalRows_a12 = mysql_num_rows($a12);\n");
      out.write("\n");
      out.write("$val_a12b = \"-1\";\n");
      out.write("if (isset($_POST['value2'])) {\n");
      out.write("  $val_a12b = $_POST['value2'];\n");
      out.write("}\n");
      out.write("mysql_select_db($database_config, $config);\n");
      out.write("$query_a12b = sprintf(\"SELECT * FROM Activities where Activity_ID  NOT IN  (SELECT DISTINCT Activity_ID  FROM Booking WHERE Resort_id = %s);\", GetSQLValueString(\"%\" . $val_a12b . \"%\", \"int\"));\n");
      out.write("$a12b = mysql_query($query_a12b, $config) or die(mysql_error());\n");
      out.write("$row_a12b = mysql_fetch_assoc($a12b);\n");
      out.write("$totalRows_a12b = mysql_num_rows($a12b);\n");
      out.write("\n");
      out.write("$name_a15 = \"null\";\n");
      out.write("if (isset($_POST['value2'])) {\n");
      out.write("  $name_a15 = $_POST['value2'];\n");
      out.write("}\n");
      out.write("mysql_select_db($database_config, $config);\n");
      out.write("$query_a15 = sprintf(\"select Client_id, tab.f_name as firstname,tab.l_name as lastname,(ad/bd) as avg from ( select Client_id, f_name,l_name,count(distinct Bookingdate) as bd,count(Activity_id) as ad from Booking  natural join (select * from Client where f_name like %s) p  group by Client_id) as tab \", GetSQLValueString(\"%\" . $name_a15 . \"%\", \"text\"));\n");
      out.write("$a15 = mysql_query($query_a15, $config) or die(mysql_error());\n");
      out.write("$row_a15 = mysql_fetch_assoc($a15);\n");
      out.write("$totalRows_a15 = mysql_num_rows($a15);\n");
      out.write("\n");
      out.write("mysql_select_db($database_config, $config);\n");
      out.write("$query_a11b = \"SELECT sum( b.price )  FROM Booking a JOIN Resort_Activities b ON a.Resort_ID = b.Resort_ID JOIN Room_Resort c ON a.Room_ID = c.Room_ID;\";\n");
      out.write("$a11b = mysql_query($query_a11b, $config) or die(mysql_error());\n");
      out.write("$row_a11b = mysql_fetch_assoc($a11b);\n");
      out.write("$totalRows_a11b = mysql_num_rows($a11b);\n");
      out.write("\n");
      out.write("$name_a11a = \"null\";\n");
      out.write("if (isset($_POST['value'])) {\n");
      out.write("  $name_a11a = $_POST['value'];\n");
      out.write("}\n");
      out.write("mysql_select_db($database_config, $config);\n");
      out.write("$query_a11a = sprintf(\"SELECT SUM( b.price ) FROM Booking a JOIN Resort_Activities b ON a.Resort_ID = b.Resort_ID JOIN Room_Resort c ON a.Room_ID = c.Room_ID JOIN Agent d ON a.Agent_ID = d.Agent_ID WHERE d.f_name like  %s\", GetSQLValueString(\"%\" . $name_a11a . \"%\", \"text\"));\n");
      out.write("$a11a = mysql_query($query_a11a, $config) or die(mysql_error());\n");
      out.write("$row_a11a = mysql_fetch_assoc($a11a);\n");
      out.write("$totalRows_a11a = mysql_num_rows($a11a);\n");
      out.write("\n");
      out.write("$n_a11c = \"null\";\n");
      out.write("if (isset($_POST['value'])) {\n");
      out.write("  $n_a11c = $_POST['value'];\n");
      out.write("}\n");
      out.write("mysql_select_db($database_config, $config);\n");
      out.write("$query_a11c = sprintf(\"SELECT SUM( b.price )  FROM Booking a JOIN Resort_Activities b ON a.Resort_ID = b.Resort_ID JOIN Room_Resort c ON a.Room_ID = c.Room_ID JOIN Resort d ON b.Resort_ID = d.Resort_ID JOIN City e ON d.Resort_ID = e.City_ID WHERE e.city_name like %s \", GetSQLValueString(\"%\" . $n_a11c . \"%\", \"text\"));\n");
      out.write("$a11c = mysql_query($query_a11c, $config) or die(mysql_error());\n");
      out.write("$row_a11c = mysql_fetch_assoc($a11c);\n");
      out.write("$totalRows_a11c = mysql_num_rows($a11c);\n");
      out.write("\n");
      out.write("$fr_a17a = \"2009-01-01\";\n");
      out.write("if (isset($_POST['value'])) {\n");
      out.write("  $fr_a17a = $_POST['value'];\n");
      out.write("}\n");
      out.write("$to_a17a = \"2012-01-01\";\n");
      out.write("if (isset($_POST['value1'])) {\n");
      out.write("  $to_a17a = $_POST['value1'];\n");
      out.write("}\n");
      out.write("mysql_select_db($database_config, $config);\n");
      out.write("$query_a17a = sprintf(\"SELECT f.Client_id,f.f_name,f.l_name FROM (select * from  Client c natural join (select * from Booking WHERE Bookingdate >=%s and Bookingdate<=%s) t) f GROUP BY f.Client_id HAVING COUNT(f.Bookingdate)>=ALL (select COUNT(f2.Bookingdate) from (select * from Client c natural join (select * from Booking where Bookingdate >=%s and Bookingdate<= %s ) t) f2 GROUP BY f2.Client_id)\", GetSQLValueString(\"%\" . $fr_a17a . \"%\", \"text\"),GetSQLValueString(\"%\" . $to_a17a . \"%\", \"text\"),GetSQLValueString(\"%\" . $fr_a17a . \"%\", \"text\"),GetSQLValueString(\"%\" . $to_a17a . \"%\", \"text\"));\n");
      out.write("$a17a = mysql_query($query_a17a, $config) or die(mysql_error());\n");
      out.write("$row_a17a = mysql_fetch_assoc($a17a);\n");
      out.write("$totalRows_a17a = mysql_num_rows($a17a);\n");
      out.write("\n");
      out.write("$fr_a23 = \"1990-01-01\";\n");
      out.write("if (isset($_POST['value3'])) {\n");
      out.write("  $fr_a23 = $_POST['value3'];\n");
      out.write("}\n");
      out.write("$to_a23 = \"2012-01-01\";\n");
      out.write("if (isset($_POST['value1'])) {\n");
      out.write("  $to_a23 = $_POST['value1'];\n");
      out.write("}\n");
      out.write("mysql_select_db($database_config, $config);\n");
      out.write("$query_a23 = sprintf(\"SELECT sum(Actiprice+roomprice) as total,f.Client_id as Clientid,f.Bookingdate FROM (select rr.Resort_id as rore,ra.Resort_id as roac,b.Resort_id as bore, b.Client_id,rr.price as roomprice,ra.price as Actiprice,Bookingdate  from Room_Resort rr   join Resort_Activities ra join Booking b on rr.Resort_id=ra.Resort_id and ra.Resort_id=b.Resort_id WHERE Bookingdate >= STR_TO_DATE(%s, '%%Y-%%m-%%d') and Bookingdate<= STR_TO_DATE(%s, '%%Y-%%m-%%d') GROUP BY Client_id) f group by f.Client_id HAVING (sum(Actiprice+roomprice)) >= ALL (select sum(Actiprice+roomprice) from (select rr.Resort_id as rore,ra.Resort_id as roac,b.Resort_id as bore, b.Client_id,rr.price as roomprice,ra.price as Actiprice,Bookingdate  from Room_Resort rr   join Resort_Activities ra join Booking b on rr.Resort_id=ra.Resort_id and ra.Resort_id=b.Resort_id where Bookingdate >= STR_TO_DATE(%s, '%%Y-%%m-%%d') and Bookingdate<= STR_TO_DATE(%s, '%%Y-%%m-%%d') group by Client_id) f2 group by f2.Client_id)\", GetSQLValueString(\"%\" . $fr_a23 . \"%\", \"text\"),GetSQLValueString(\"%\" . $to_a23 . \"%\", \"text\"),GetSQLValueString(\"%\" . $fr_a23 . \"%\", \"text\"),GetSQLValueString(\"%\" . $to_a23 . \"%\", \"text\"));\n");
      out.write("$a23 = mysql_query($query_a23, $config) or die(mysql_error());\n");
      out.write("$row_a23 = mysql_fetch_assoc($a23);\n");
      out.write("$totalRows_a23 = mysql_num_rows($a23);\n");
      out.write("\n");
      out.write(" if($_GET['act'] == 'aquery') {\n");
      out.write("\n");
      out.write("mysql_select_db($database_config, $config);\n");
      out.write("$query_AqueryAgent = \"SELECT * FROM \" . $_POST['select'] ;\n");
      out.write("$AqueryAgent = mysql_query($query_AqueryAgent, $config) or die(mysql_error());\n");
      out.write("$row_AqueryAgent = mysql_fetch_assoc($AqueryAgent);\n");
      out.write("$totalRows_AqueryAgent = mysql_num_rows($AqueryAgent);\n");
      out.write("}\n");
      out.write("?>\n");
      out.write("\n");
      out.write("\n");
      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n");
      out.write("<head>\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n");
      out.write("<title>Untitled Document</title>\n");
      out.write("</head>\n");
      out.write("\n");
      out.write("<body>\n");
      out.write("<?  if($_GET['act'] == 'aquery') { ?>\n");
      out.write("\n");
      out.write("<div >\n");
      out.write("\n");
      out.write("  <? echo \"<h2> You have select table <b>  \" . $_POST['select'] .\" </b> to display <h2/>\" ?>\n");
      out.write(" <br />  <br />\n");
      out.write(" <table border=\"0\">\n");
      out.write("  <?php do { ?>\n");
      out.write("  \n");
      out.write("  \n");
      out.write("  <tr>\n");
      out.write("    <?php foreach ($row_AqueryAgent as &$value) { ?>\n");
      out.write("   \n");
      out.write("\t\n");
      out.write("    <? echo \"<td >\" . $value . \"<td/>\" ;\n");
      out.write("\t} ?>\n");
      out.write("    <tr/>\n");
      out.write("    <?\n");
      out.write("\t//echo \"<br>\";\n");
      out.write("\t ?>\n");
      out.write("    \n");
      out.write("     <?php } while ($row_AqueryAgent = mysql_fetch_assoc($AqueryAgent)); ?>\n");
      out.write("      <table/>\n");
      out.write("    </div>\n");
      out.write("<? } ?>\n");
      out.write("\n");
      out.write("<?  if($_GET['act'] == 'a11') { ?>\n");
      out.write("\n");
      out.write("<div id='booking'>\n");
      out.write("<? if($_POST['radio'] == 'radio1') {?>\n");
      out.write("  <p>This is hotel revenue of all agents is:</p>\n");
      out.write("  <?php echo \"The revenue is \" .$row_a11b['sum( b.price )']; ?>\n");
      out.write("  \n");
      out.write("  <p>&nbsp;</p>\n");
      out.write("  \n");
      out.write("    <? } elseif($_POST['radio'] == 'radio2'){?>\n");
      out.write("     <p>This is hotel revenue of <? echo $_POST['value'] . \" \"?>is:</p>\n");
      out.write("  <?php echo \"The revenue is \" . $row_a11c['SUM( b.price )']; ?>\n");
      out.write(" \n");
      out.write("  <? } elseif($_POST['radio'] == 'radio3'){?>\n");
      out.write("   <p>This is hotel revenue of of <? echo $_POST['value'] . \" \"?> is:</p>\n");
      out.write("  <?php echo \"The revenue is \" . $row_a11a['SUM( b.price )']; ?>\n");
      out.write("  <? } ?>\n");
      out.write("  \n");
      out.write("  \n");
      out.write("</div>\n");
      out.write("\n");
      out.write("<? } ?>\n");
      out.write("<?  if($_GET['act'] == 'a12') { ?>\n");
      out.write("\n");
      out.write("<div id='booking'>\n");
      out.write("  <p>The activities have never beeen booked are:</p>\n");
      out.write("  <? if(isset($_POST['radio3'])){ ?>\n");
      out.write("  \t<table width=\"667\" height=\"70\" border=\"1\">\n");
      out.write("  <tr>\n");
      out.write("    <td width=\"29\">ID</td>\n");
      out.write("    <td width=\"279\">Activity Name</td>\n");
      out.write("    <td width=\"337\">Description</td>\n");
      out.write("  </tr>\n");
      out.write("  <?php do { ?>\n");
      out.write("    <tr>\n");
      out.write("      <td><?php echo $row_a12['Activity_id']; ?></td>\n");
      out.write("      <td><?php echo $row_a12['Activity_name']; ?></td>\n");
      out.write("      <td><?php echo $row_a12['Description']; ?></td>\n");
      out.write("    </tr>\n");
      out.write("    <?php } while ($row_a12 = mysql_fetch_assoc($a12)); ?>\n");
      out.write("</table>\n");
      out.write("\n");
      out.write("  <p>&nbsp;</p>\n");
      out.write("  <? } else {?>\n");
      out.write("  \n");
      out.write("  <table width=\"667\" height=\"70\" border=\"1\">\n");
      out.write("  <tr>\n");
      out.write("    <td width=\"29\">ID</td>\n");
      out.write("    <td width=\"279\">Activity Name</td>\n");
      out.write("    <td width=\"337\">Description</td>\n");
      out.write("  </tr>\n");
      out.write(" \t<?php do { ?>\n");
      out.write(" \t    <td> <?php echo $row_a12b['Activity_id']; ?></td>\n");
      out.write("        <td> <?php echo $row_a12b['Activity_name']; ?></td>\n");
      out.write(" \t    <td> <?php echo $row_a12b['Description']; ?></td>\n");
      out.write(" \t    <?php } while ($row_a12b = mysql_fetch_assoc($a12b)); ?><tr>\n");
      out.write("  </tr>\n");
      out.write("  </table>\n");
      out.write("  \n");
      out.write("  <? }?>\n");
      out.write("</div>\n");
      out.write("\n");
      out.write("<? } ?>\n");
      out.write("\n");
      out.write("<? if($_GET['act'] == 'a23') { ?>\n");
      out.write("<div id='agentbooked'>\n");
      out.write("  <p>Client spent the most in the period of  <? echo $_POST['value3']; ?>   and    <? echo $_POST['value1']; ?>    is:</p>\n");
      out.write("  \n");
      out.write("  <table width=\"930\" height=\"71\" border=\"1\">\n");
      out.write("  <tr>\n");
      out.write("    <td width=\"222\">Client ID</td>\n");
      out.write("    <td width=\"481\">Total that they spend</td>\n");
      out.write("    <td width=\"205\">Booking date</td>\n");
      out.write("  </tr>\n");
      out.write("  <?php do { ?>\n");
      out.write("    <tr>\n");
      out.write("      <td><?php echo $row_a23['Clientid']; ?></td>\n");
      out.write("      <td><?php echo $row_a23['total']; ?></td>\n");
      out.write("      <td><?php echo $row_a23['Bookingdate']; ?></td>\n");
      out.write("    </tr>\n");
      out.write("    <?php } while ($row_a23 = mysql_fetch_assoc($a23)); ?>\n");
      out.write("</table>\n");
      out.write("\n");
      out.write("  \n");
      out.write("  <p>&nbsp;</p>\n");
      out.write("</div>\n");
      out.write("<? } ?>\n");
      out.write("<?  if($_GET['act'] == 'a21') { ?>\n");
      out.write("<div id='sunrate'>\n");
      out.write("\n");
      out.write("\n");
      out.write("  <p>Agent booked the most trip:</p>\n");
      out.write("  <?php do { ?>\n");
      out.write("      <?php foreach ($row_a21 as &$value) { ?>\n");
      out.write("    <? echo $value . \"    \" ;\n");
      out.write("\t} ?>\n");
      out.write(" \n");
      out.write("    <?php } while ($row_a21 = mysql_fetch_assoc($a21)); ?>  \n");
      out.write("  \n");
      out.write("  <p>&nbsp;</p>\n");
      out.write("</div>\n");
      out.write("<? } ?>\n");
      out.write("\n");
      out.write("<?  if($_GET['act'] == 'a15') { ?> \n");
      out.write("<div id='amenity'>\n");
      out.write("    <p>Average of activities booking</p>\n");
      out.write("    <?php do { ?>\n");
      out.write("      <?php foreach ($row_a15 as &$value) { ?>\n");
      out.write("    <? echo \"Resort: \" . $value . \"    \" ;\n");
      out.write("\t} ?>\n");
      out.write(" \n");
      out.write("    <?php } while ($row_a15 = mysql_fetch_assoc($a15)); ?>  \n");
      out.write("    \n");
      out.write("    \n");
      out.write("    <p>&nbsp;</p>\n");
      out.write("</div>\n");
      out.write("<? } ?>\n");
      out.write("\n");
      out.write("<?  if($_GET['act'] == 'a24') { ?> \n");
      out.write("  <div id='resortbycity'>\n");
      out.write("    <p>List of agent by number of clients: </p>\n");
      out.write("    <p>&nbsp;</p>\n");
      out.write(" \n");
      out.write("</div>\n");
      out.write("<? } ?>\n");
      out.write("\n");
      out.write("<?  if($_GET['act'] == 'a25') { ?> \n");
      out.write("  <div id='countrysun'>\n");
      out.write("    <p>The county has highest average sunrate is:</p>\n");
      out.write("    <p>&nbsp;</p>\n");
      out.write("</div>\n");
      out.write("<? } ?>\n");
      out.write("\n");
      out.write("<?  if($_GET['act'] == 'a14') { ?> \n");
      out.write("  <div id='activity'>\n");
      out.write("    <p>List of client stay all inclusive</p>\n");
      out.write("   \n");
      out.write("     <table width=\"608\" border=\"1\">\n");
      out.write("  <tr>\n");
      out.write("    <td width=\"44\">Client ID</td>\n");
      out.write("    <td width=\"138\">First Name</td>\n");
      out.write("    <td width=\"153\">Last Name</td>\n");
      out.write("    <td width=\"245\">Email</td>\n");
      out.write("  </tr>\n");
      out.write("  <?php do { ?>\n");
      out.write("    <tr>\n");
      out.write("      <td><?php echo $row_a14['Client_id']; ?></td>\n");
      out.write("      <td><?php echo $row_a14['f_name']; ?></td>\n");
      out.write("      <td><?php echo $row_a14['l_name']; ?></td>\n");
      out.write("      <td><?php echo $row_a14['email']; ?></td>\n");
      out.write("    </tr>\n");
      out.write("    <?php } while ($row_a14 = mysql_fetch_assoc($a14)); ?>\n");
      out.write("</table>\n");
      out.write("\n");
      out.write("\t\n");
      out.write("\t \n");
      out.write("\n");
      out.write(" </div>\n");
      out.write(" \n");
      out.write(" <? }?>\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("<p>&nbsp;</p>\n");
      out.write("</body>\n");
      out.write("</html>\n");
      out.write("<?php\n");
      out.write("mysql_free_result($a14);\n");
      out.write("\n");
      out.write("mysql_free_result($a21);\n");
      out.write("\n");
      out.write("mysql_free_result($a12);\n");
      out.write("\n");
      out.write("mysql_free_result($a12b);\n");
      out.write("\n");
      out.write("mysql_free_result($a15);\n");
      out.write("\n");
      out.write("mysql_free_result($a11b);\n");
      out.write("\n");
      out.write("mysql_free_result($a11a);\n");
      out.write("\n");
      out.write("mysql_free_result($a11c);\n");
      out.write("\n");
      out.write("mysql_free_result($a17a);\n");
      out.write("\n");
      out.write("mysql_free_result($a23);\n");
      out.write("\n");
      out.write(" if($_GET['act'] == 'aquery') {\n");
      out.write("mysql_free_result($AqueryAgent);}\n");
      out.write("?>\n");
      out.write("\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }