package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class new_005fRequest_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.Vector _jspx_dependants;

  private org.apache.jasper.runtime.ResourceInjector _jspx_resourceInjector;

  public Object getDependants() {
    return _jspx_dependants;
  }

  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.apache.jasper.runtime.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");

      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n");
      out.write("<HTML>\n");
      out.write("    <HEAD>\n");
      out.write("        <TITLE> Schedule Meeting </TITLE>\n");
      out.write("        <META NAME=\"Generator\" CONTENT=\"EditPlus\">\n");
      out.write("        <META NAME=\"Author\" CONTENT=\"\">\n");
      out.write("        <META NAME=\"Keywords\" CONTENT=\"\">\n");
      out.write("        <META NAME=\"Description\" CONTENT=\"\">\n");
      out.write("        \n");
      out.write("        <script type='text/javascript' src='zapatec.js'></script>\n");
      out.write("        \n");
      out.write("        <!-- Custom includes -->\t\n");
      out.write("                <!-- import the calendar script -->\n");
      out.write("        <script type=\"text/javascript\" src=\"calendar.js\"></script>\n");
      out.write("        \n");
      out.write("        <!-- import the language module -->\n");
      out.write("        <script type=\"text/javascript\" src=\"calendar-en.js\"></script>\n");
      out.write("        \n");
      out.write("        <!-- Theme css -->\n");
      out.write("        <link href=\"forest.css\" rel=\"stylesheet\" type=\"text/css\">\n");
      out.write("        \n");
      out.write("        \n");
      out.write("        <script>\n");
      out.write("            function confirmpage(){\n");
      out.write("                var selobj=document.getElementById('initiatorlist');\n");
      out.write("                for(var i=0;i<selobj.options.length;++i){\n");
      out.write("                    selobj.options[i].selected=true;\n");
      out.write("                }\n");
      out.write("                \n");
      out.write("               var actobj=document.getElementById('activelist');\n");
      out.write("               for(var i=0;i<actobj.options.length;++i){\n");
      out.write("                    actobj.options[i].selected=true;\n");
      out.write("                }\n");
      out.write("                var parobj=document.getElementById('participantlist');\n");
      out.write("               for(var i=0;i<parobj.options.length;++i){\n");
      out.write("                    parobj.options[i].selected=true;\n");
      out.write("                }\n");
      out.write("               \n");
      out.write("                                    \n");
      out.write("            }\n");
      out.write("            function popup(url){\n");
      out.write("                var type=document.getElementById(\"roomtype\").value;\n");
      out.write("                \n");
      out.write("                if(type==\"Virtual\"){\n");
      out.write("                    \n");
      out.write("                    newwindow=window.open(url,'','height=250,width=450');\n");
      out.write("                    if (window.focus) {newwindow.focus()}\n");
      out.write("                    return false;\n");
      out.write("                }\n");
      out.write("                return true;\n");
      out.write("            }\n");
      out.write("            \n");
      out.write("             function logoff()\n");
      out.write("            {\n");
      out.write("                var answer = confirm(\"Do you really want to Log off?\");\n");
      out.write("                if(answer)\n");
      out.write("                {\n");
      out.write("                    location.href = \"LogOut.jsp\";\n");
      out.write("                }\n");
      out.write("                else\n");
      out.write("                {\n");
      out.write("                    return false;\n");
      out.write("                }\n");
      out.write("\n");
      out.write("            }\n");
      out.write("            function addDateTime(){\n");
      out.write("                var startdate=document.getElementById(\"sel2\").value;\n");
      out.write("                var enddate=document.getElementById(\"sel3\").value;\n");
      out.write("                var currDate=new Date();\n");
      out.write("                \n");
      out.write("                if(document.getElementById(\"datechoice\").options.length<3){\n");
      out.write("                    if(startdate==\"\"||enddate==\"\"){\n");
      out.write("                        alert(\"Date field should not be empty\")\n");
      out.write("                    }\n");
      out.write("                    \n");
      out.write("                    else{\n");
      out.write("                        alert(startDate + \" \"+currDate);\n");
      out.write("                        var opt = document.createElement(\"option\");\n");
      out.write("                        document.getElementById(\"datechoice\").options.add(opt);\n");
      out.write("                        opt.text = startdate+\"-\"+enddate;\n");
      out.write("                        opt.value = startdate+\"-\"+enddate;\n");
      out.write("                        document.getElementById(\"sel2\").value=\"\";\n");
      out.write("                        document.getElementById(\"sel3\").value=\"\";\n");
      out.write("                     }\n");
      out.write("                    \n");
      out.write("                }\n");
      out.write("                else\n");
      out.write("                    {\n");
      out.write("                        alert(\"only three dates allowed\");\n");
      out.write("                    }\n");
      out.write("            }\n");
      out.write("            function findRooms(){\n");
      out.write("                var selobj=document.getElementById('roomtype');\n");
      out.write("                var value=selobj.options[selobj.selectedIndex].text;\n");
      out.write("                var startdatetime=document.getElementById('sel2').value;\n");
      out.write("                var enddatetime=document.getElementById('sel3').value;\n");
      out.write("                location.href=\"Roomlist?type=\"+value+\"&startdatetime=\"+startdatetime+\"&enddatetime=\"+enddatetime;\n");
      out.write("            }\n");
      out.write("             function findRoomsUsingList(){\n");
      out.write("                var seltype=document.getElementById('roomtype');\n");
      out.write("                var value=seltype.options[seltype.selectedIndex].text;\n");
      out.write("               \n");
      out.write("                var selobj=document.getElementById('datechoice');\n");
      out.write("                datetimelist=new Array(selobj.options.length);\n");
      out.write("                for(var i=0;i<selobj.options.length;++i){\n");
      out.write("                    datetimelist[i]=selobj.options[i].text;\n");
      out.write("                }\n");
      out.write("                location.href=\"Roomlist?type=\"+value+\"&datetimelist=\"+datetimelist+\"&agenda=\"+document.getElementById(\"txtAgenda\").value;\n");
      out.write("            }\n");
      out.write("            function addtoList(){\n");
      out.write("                var selobj=document.getElementById('roomlist');\n");
      out.write("                var value=selobj.options[selobj.selectedIndex].text;\n");
      out.write("                if(document.getElementById(\"initiatorlist\").options.length<3 ||selobj.selectedIndex!=-1){\n");
      out.write("                    var opt = document.createElement(\"option\");\n");
      out.write("                    document.getElementById(\"initiatorlist\").options.add(opt);\n");
      out.write("                    opt.text = value;\n");
      out.write("                    opt.value = value;\n");
      out.write("                    document.getElementById(\"roomlist\").options.remove(selobj.selectedIndex);\n");
      out.write("                }\n");
      out.write("             \n");
      out.write("            }\n");
      out.write("            function testDelete()\n");
      out.write("            {\n");
      out.write("                \n");
      out.write("                var selobj=document.getElementById('initiatorlist');\n");
      out.write("                var value=selobj.options[selobj.selectedIndex].text;\n");
      out.write("                if (document.getElementById('initiatorlist').length!=0){\n");
      out.write("                     document.getElementById(\"initiatorlist\").options.remove(selobj.selectedIndex);\n");
      out.write("                      var opt = document.createElement(\"option\");\n");
      out.write("                      opt.text=value;\n");
      out.write("                      opt.value=value;\n");
      out.write("                     document.getElementById(\"roomlist\").options.add(opt);\n");
      out.write("                }\n");
      out.write("                \n");
      out.write("            }\n");
      out.write("            function addtoparticipantList(){\n");
      out.write("                var selobj=document.getElementById('emplist');\n");
      out.write("                var value=selobj.options[selobj.selectedIndex].text;\n");
      out.write("                var opt = document.createElement(\"option\");\n");
      out.write("                opt.text=value;\n");
      out.write("                opt.value=value;\n");
      out.write("                     \n");
      out.write("                if(document.getElementById(\"active\").checked==true){\n");
      out.write("                    \n");
      out.write("                       document.getElementById(\"activelist\").options.add(opt);\n");
      out.write("                       document.getElementById(\"emplist\").options.remove(selobj.selectedIndex);\n");
      out.write("                       document.getElementById(\"active\").checked=false;\n");
      out.write("                 }\n");
      out.write("                 else{\n");
      out.write("                     document.getElementById(\"participantlist\").options.add(opt);\n");
      out.write("                     document.getElementById(\"emplist\").options.remove(selobj.selectedIndex);\n");
      out.write("                     document.getElementById(\"active\").checked=false;\n");
      out.write("                 }\n");
      out.write("            }\n");
      out.write("\n");
      out.write("        </script>\n");
      out.write("        \n");
      out.write("    </HEAD>\n");
      out.write("    \n");
      out.write("    <body background=\"_themes/aftrnoon/background_aftrnoon.gif\" bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#983738\" vlink=\"#703637\" alink=\"#C76565\"><!--mstheme-->\n");
      out.write("            \n");
      out.write("        <form action=\"NewMeeting\" method=\"post\"  onsubmit=\"confirmpage()\">\n");
      out.write("            \n");
      out.write("            <table  width=\"100%\">\n");
      out.write("                <tr>\n");
      out.write("                    <td align=\"center\" colspan=\"2\" width=\"100%\">\n");
      out.write("                        ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "banner.html", out, false);
      out.write("\n");
      out.write("                    </td>\n");
      out.write("                    \n");
      out.write("                    \n");
      out.write("                </tr>\n");
      out.write("                \n");
      out.write("            </table>\n");
      out.write("            \n");
      out.write("            <table align=\"center\" width=\"100%\">\n");
      out.write("                <tr>\n");
      out.write("                    <td align=\"center\" width=\"90%\">\n");
      out.write("                        <h3>\n");
      out.write("                            <u>\n");
      out.write("                                New Meeting Request\n");
      out.write("                            </u>\n");
      out.write("                        </h3>\n");
      out.write("                    </td>\n");
      out.write("                    <td align=\"center\" nowrap width=10%\">\n");
      out.write("                        <a href=\"welcome.jsp\">Home</a>\n");
      out.write("                    </td>\n");
      out.write("                    <td align=\"right\" nowrap width=10%\">\n");
      out.write("                        \n");
      out.write("                        <a href=\"#\" onclick=\"logoff();\">Sign out</a>\n");
      out.write("                    </td>\n");
      out.write("                </tr>\n");
      out.write("                \n");
      out.write("            </table>\n");
      out.write("            <table cellpadding = \"10\" align=\"center\" width=\"80%\">\n");
      out.write("                <font size=\"3\">\n");
      out.write("                    <tr>\n");
      out.write("                        <td>\n");
      out.write("                            Agenda :\n");
      out.write("                        </td>\n");
      out.write("                        <td nowrap>\n");
      out.write("                            ");

                            if(request.getParameter("agenda")==null){
                                
                            
      out.write("\n");
      out.write("                            <input type=\"text\" name=\"txtAgenda\" id=\"txtAgenda\" size=\"50\">\t\n");
      out.write("                            ");
}
                            else{
      out.write("\n");
      out.write("                                <input type=\"text\" name=\"txtAgenda\" id=\"txtAgenda\" readonly size=\"50\" value=\"");
      out.print(request.getParameter("agenda"));
      out.write("\">\t\n");
      out.write("                            ");
}
      out.write("\n");
      out.write("                            \n");
      out.write("                            \n");
      out.write("                        </td>\n");
      out.write("                    </tr>\n");
      out.write("                     ");

                                if((request.getAttribute("list")==null)||(request.getAttribute("emplist")==null)){
                            
      out.write("\n");
      out.write("                    <tr>\n");
      out.write("                        <td>\n");
      out.write("                            Select Start Date\t:\n");
      out.write("                        </td>\n");
      out.write("                        <td nowrap>\n");
      out.write("                            <input type=\"text\" name=\"date2\" id=\"sel2\" size=\"30\">\t\n");
      out.write("                            <img alt=' Zapatec Calendar' src='calendar2.gif' border='0' id='button2'  onmouseover=\"this.style.cursor='pointer'\" onmouseout=\"this.style.cursor='default'\">\n");
      out.write("                        </td>\n");
      out.write("                    </tr>\n");
      out.write("                    <tr>\n");
      out.write("                        <td>\n");
      out.write("                            Select End Date :\n");
      out.write("                        </td>\n");
      out.write("                        <td nowrap>\n");
      out.write("                            <input type=\"text\" name=\"date3\" id=\"sel3\" size=\"30\">\t\n");
      out.write("                            <img alt=' Zapatec Calendar' src='calendar2.gif' border='0' id='button3'  onmouseover=\"this.style.cursor='pointer'\" onmouseout=\"this.style.cursor='default'\">\n");
      out.write("                               &nbsp;&nbsp; <input type=\"button\" value=\"add\" name=\"add\" onclick=\"addDateTime()\"> \n");
      out.write("                        </td>\n");
      out.write("                        \n");
      out.write("                        \n");
      out.write("                    </tr>\n");
      out.write("                    <tr>\n");
      out.write("                        <td>\n");
      out.write("                            Date Choice\t:\n");
      out.write("                        </td>\n");
      out.write("                        <td>\n");
      out.write("                           \n");
      out.write("                            <select name = \"datechoice\" size =\"1\" id=\"datechoice\">\n");
      out.write("                             </select>\n");
      out.write("                            \n");
      out.write("                        </td>\n");
      out.write("                        \n");
      out.write("                        \n");
      out.write("                    </tr>\n");
      out.write("                    <tr>\n");
      out.write("                        <td>\n");
      out.write("                            Room Type\t:\n");
      out.write("                        </td>\n");
      out.write("                        <td>\n");
      out.write("                           \n");
      out.write("                            <select name = \"roomType\" size =\"1\" id=\"roomtype\" onchange=\"popup('virtual.jsp')\">\n");
      out.write("                                <option value = \"Auditorium\">Auditorium</option>\n");
      out.write("                                <option value = \"Conference\">Conference</option>\n");
      out.write("                                <option value = \"Virtual\" id=\"virtual\">Virtual</option>\n");
      out.write("                            </select>\n");
      out.write("                            &nbsp;&nbsp; <input type=\"button\" name=\"findroom\" onclick=\"findRoomsUsingList()\" value=\"Find\">\n");
      out.write("                        </td>\n");
      out.write("                        ");
}
      out.write("\n");
      out.write("                        \n");
      out.write("                    </tr>\n");
      out.write("                    ");

                                if((request.getAttribute("list")==null)||(request.getAttribute("emplist")==null)){
                            
      out.write("\n");
      out.write("                   \n");
      out.write("                    <tr>\n");
      out.write("                        \n");
      out.write("                        <td>\n");
      out.write("                            <script type=\"text/javascript\">\n");
      out.write("                                var cal = new Zapatec.Calendar.setup({\n");
      out.write("                                \n");
      out.write("                                    inputField     :    \"sel2\",     // id of the input field\n");
      out.write("                                    singleClick    :     false,     // require two clicks to submit\n");
      out.write("                                    ifFormat       :    '%a, %b %e, %Y [%H:%M]',     // format of the input field\n");
      out.write("                                    showsTime      :     true,     // show time as well as date\n");
      out.write("                                    button         :    \"button2\"  // trigger button \n");
      out.write("                                });\n");
      out.write("                \n");
      out.write("                            </script>\n");
      out.write("                            \n");
      out.write("                        </td>\n");
      out.write("                        \n");
      out.write("                    </tr>\n");
      out.write("                    <tr>\n");
      out.write("                        <td>\n");
      out.write("                            <script type=\"text/javascript\">\n");
      out.write("                                var cal = new Zapatec.Calendar.setup({\n");
      out.write("                                \n");
      out.write("                                    inputField     :    \"sel3\",     // id of the input field\n");
      out.write("                                    singleClick    :     false,     // require two clicks to submit\n");
      out.write("                                    ifFormat       :    '%a, %b %e, %Y [%H:%M]',     // format of the input field\n");
      out.write("                                    showsTime      :     true,     // show time as well as date\n");
      out.write("                                    button         :    \"button3\"  // trigger button \n");
      out.write("                                });\n");
      out.write("                \n");
      out.write("                            </script>\n");
      out.write("                            \n");
      out.write("                        </td>\n");
      out.write("                        \n");
      out.write("                    </tr>\n");
      out.write("                    ");
}
      out.write("\n");
      out.write("                    \n");
      out.write("                    \n");
      out.write("                    <tr>\n");
      out.write("                        ");

                        if((request.getAttribute("list")!=null)||(request.getAttribute("emplist")!=null)){
                                java.util.ArrayList<String> list=(java.util.ArrayList<String>)request.getAttribute("list");
                                java.util.ArrayList<String> employeelist=(java.util.ArrayList<String>)request.getAttribute("emplist");
                                
                            
      out.write("\n");
      out.write("                        <td>Room\t:\n");
      out.write("                        </td>\n");
      out.write("                        <td>\n");
      out.write("                            \n");
      out.write("                            <select name = \"roomList\" size =\"3\"  id =\"roomlist\">\n");
      out.write("                                ");

                                    for(int i=0;i<list.size();++i){
                                
      out.write("\n");
      out.write("                                <option value = \"");
      out.print(i);
      out.write('"');
      out.write('>');
      out.print(list.get(i));
      out.write("</option>\n");
      out.write("                                \n");
      out.write("                              ");
}
      out.write("\n");
      out.write("                            </select>\n");
      out.write("                            &nbsp;&nbsp;&nbsp;&nbsp;\n");
      out.write("                            <input type=\"button\" value=\"Add\" id='add' onclick=\"addtoList()\">\n");
      out.write("                            <input type=\"hidden\" name=\"optionValue\"/>\n");
      out.write("                        </td>\n");
      out.write("                    </tr>\n");
      out.write("                    <tr>\n");
      out.write("                        <td>\n");
      out.write("                            Tentative Meeting dates & rooms\t:\n");
      out.write("                        </td>\n");
      out.write("                        <td ><select name=\"meetingDetails\" multiple size=\"3\" id=\"initiatorlist\"  >\n");
      out.write("                               \n");
      out.write("                               </select>\n");
      out.write("                            &nbsp;&nbsp;\n");
      out.write("                             <input type=\"button\" value=\"Delete\" onclick=\"testDelete()\"/>\n");
      out.write("                        </td>\n");
      out.write("                   </tr>\n");
      out.write("                    \n");
      out.write("                    <tr>\n");
      out.write("                        <td>\n");
      out.write("                            Please select the participants from the List\t:\n");
      out.write("                        </td>\n");
      out.write("                        <td colspan=\"2\">\n");
      out.write("                            <select name=\"emplist\" size=\"3\" multiple =\"multiple\" >\n");
      out.write("                                ");

                                    for(int i=0;i<employeelist.size();++i){
      out.write("\n");
      out.write("                                    <option value=\"");
      out.print(i);
      out.write('"');
      out.write('>');
      out.print(employeelist.get(i));
      out.write("</option>\n");
      out.write("                                    ");
}
      out.write("\n");
      out.write("                               \n");
      out.write("                            </select>\n");
      out.write("                            \n");
      out.write("                            &nbsp;&nbsp;&nbsp;&nbsp;\n");
      out.write("                            \n");
      out.write("                            <input type=\"checkbox\" value=\"Active\" id=\"active\">Active\n");
      out.write("                            \n");
      out.write("                            &nbsp;&nbsp;&nbsp;&nbsp;\n");
      out.write("                            \n");
      out.write("                            <input type=\"button\" value=\"Add\" onclick=\"addtoparticipantList()\">\n");
      out.write("                        </td>\n");
      out.write("                        \n");
      out.write("                    </tr>\n");
      out.write("                    <tr>\n");
      out.write("                        <td>\n");
      out.write("                            Active Participants         :\n");
      out.write("                            \n");
      out.write("                            \n");
      out.write("                        </td>\n");
      out.write("                        \n");
      out.write("                        <td>\n");
      out.write("                            \n");
      out.write("                            <select name=\"activelist\" size=\"3\" multiple =\"multiple\"  id=\"activelist\">\n");
      out.write("                                </select>\n");
      out.write("                            &nbsp;\n");
      out.write("                            <input type=\"button\" value=\"Delete\" onclick=\"removeActiveParticipant()\"/>\n");
      out.write("                            \n");
      out.write("                        </td>\n");
      out.write("                        \n");
      out.write("                        \n");
      out.write("                    </tr>\n");
      out.write("                    <tr>\n");
      out.write("                        <td>\n");
      out.write("                            Participants         :\n");
      out.write("                        </td>\n");
      out.write("                        <td>\n");
      out.write("                            <select name=\"participantlist\" size=\"3\" multiple =\"multiple\" id=\"participantlist\" >\n");
      out.write("                                \n");
      out.write("                             </select>\n");
      out.write("                            &nbsp;\n");
      out.write("                            <input type=\"button\" value=\"Delete\" onclick=\"removeParticipant()\"/>\n");
      out.write("                        </td>\n");
      out.write("                        \n");
      out.write("                        \n");
      out.write("                    </tr>\n");
      out.write("                    \n");
      out.write("                             <tr>\n");
      out.write("                        <td>\n");
      out.write("                            &nbsp;\n");
      out.write("                        </td>\n");
      out.write("                        \n");
      out.write("                        <td > <input type =\"submit\" value=\"Submit\"></td>\n");
      out.write("                    </tr>\n");
      out.write("                    ");
}
      out.write("\n");
      out.write("                </font>\n");
      out.write("            </table>\n");
      out.write("        </form>\n");
      out.write("    <!--mstheme--></body>\n");
      out.write("</HTML>\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);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
