<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
    <HEAD>
        <TITLE> View Meeting </TITLE>
        <META NAME="Generator" CONTENT="EditPlus">
        <META NAME="Author" CONTENT="">
        <META NAME="Keywords" CONTENT="">
        <META NAME="Description" CONTENT="">
        
        <script type='text/javascript' src='zapatec.js'></script>
        
        <!-- Custom includes -->	
                <!-- import the calendar script -->
        <script type="text/javascript" src="calendar.js"></script>
        
        <!-- import the language module -->
        <script type="text/javascript" src="calendar-en.js"></script>
        
        <!-- Theme css -->
        <link href="forest.css" rel="stylesheet" type="text/css">
        
        
        <script>
            function confirmpage(){
                document.schedule.submit();
            }
            function proposepage(){
                location.href="ProposalbyParticipant"
            }

            function enableall()
            {
                                
                if(document.getElementById("newdate").checked == true)
                {
                    document.getElementById("sel2").disabled = false;
                    document.getElementById("sel3").disabled = false;
                    document.getElementById("button2").disabled = false;
                    document.getElementById("button3").disabled = false;
                    
                    document.getElementById("agenda").disabled = true;
                    document.getElementById("datelist1").disabled = true;
                    document.getElementById("equipments").disabled = true;
                    document.getElementById("acceptmeeting").disabled = true;
                    document.getElementById("rejectmeeting").disabled = true;
                }
                else
                {
                    document.getElementById("sel2").disabled = true;
                    document.getElementById("sel3").disabled = true;
                    document.getElementById("button2").disabled = true;
                    document.getElementById("button3").disabled = true;
                    
                    document.getElementById("agenda").disabled = false;
                    document.getElementById("datelist1").disabled = false;
                    document.getElementById("equipments").disabled = false;
                    document.getElementById("acceptmeeting").disabled = false;
                    document.getElementById("rejectmeeting").disabled = false;
                }

            }
            function addDateTime(){
                var startdate=document.getElementById("sel2").value;
                var enddate=document.getElementById("sel3").value;
                if(document.getElementById("datechoice").options.length<3){
                    var opt = document.createElement("option");
                    document.getElementById("datechoice").options.add(opt);
                    opt.text = startdate+"-"+enddate;
                    opt.value = startdate+"-"+enddate;
                    document.getElementById("sel2").value="";
                    document.getElementById("sel3").value="";
                }
                else
                {
                    alert("only three dates allowed");
                }
            }
            function findRoomsUsingList(){
                //alert("hi");
                
                var selobj=document.getElementById('datechoice');
                dates=new Array(selobj.options.length);
                for(var i=0;i<selobj.options.length;++i){
                    dates[i]= selobj.options[i].text;
                }
                location.href="ProposeRoomList?datechoice="+dates;
            }
            
             
            function logoff()
            {
                var answer = confirm("Do you really want to Log off?");
                if(answer)
                {
                    location.href = "LogOut.jsp";
                }
                else
                {
                    return false;
                }

            }
            function popUp(url) {
                newwindow=window.open(url,'','height=250,width=400');
                if (window.focus) {newwindow.focus()}
                return false;
            }
            function rejectmeeting(){
                
                var value=document.getElementById("agenda").value;
                location.href="RejectMeeting?agenda="+value;
            }
            function addtoList(){
                var selobj=document.getElementById('roomList');
                var value=selobj.options[selobj.selectedIndex].text;
                if(document.getElementById("dateList").options.length<3 ||selobj.selectedIndex!=-1){
                    var opt = document.createElement("option");
                    document.getElementById("dateList").options.add(opt);
                    opt.text = value;
                    opt.value = value;
                    document.getElementById("roomList").options.remove(selobj.selectedIndex);
                }
             
            }
            function removeFromList()
            {
                
                var selobj=document.getElementById('dateList');
                var value=selobj.options[selobj.selectedIndex].text;
                if (document.getElementById('dateList').length!=0){
                    document.getElementById("dateList").options.remove(selobj.selectedIndex);
                    var opt = document.createElement("option");
                    opt.text=value;
                    opt.value=value;
                    document.getElementById("roomList").options.add(opt);
                }
                
            }
            

        </script>
        
    </HEAD>
    
    <body background="_themes/aftrnoon/background_aftrnoon.gif" bgcolor="#FFFFFF" text="#000000" link="#983738" vlink="#703637" alink="#C76565"><!--mstheme-->
    <%
            java.util.Hashtable ht = (java.util.Hashtable) request.getSession().getAttribute("reentries");
            String agenda = (String) ht.get("agenda");
            String[] datetimepairs = (String[]) ht.get("datetimepairs");
    %>
        <font size="3">
            
            <form name="schedule" action="AcceptMeeting" method="post">
                
                <table  width="100%" align="center" >
                    
                    
                    <tr>
                        <td align="center" colspan="2" width="100%">
                            <jsp:include page="banner.html"></jsp:include>
                        </td>
                    </tr>
                    <tr>
                        
                    </tr>
                </table>
                <table align="center" width="90%">
                    <tr>
                        <td align="center" width="100%" nowrap>
                            <u><h3>Meeting Renegotiated </h3></u>
                        </td>
                        <td align="center" nowrap width=10%">
                            <a href="welcome.jsp"><font size="3">Home</font></a>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        
                        <td align="right" nowrap width=10%">
                            <a href="#" onclick="logoff();"><font size="3">Sign out</font></a>
                        </td>
                    </tr>
                </table>
                <table cellpadding = "10" align="center" width="80%">   
                    <tr>
                        <td>
                            Agenda : 
                        </td>
                        <td>
                            <input type="text" id="agenda" name="txtAgenda" readonly value="<%=agenda%>">
                        </td>
                    </tr>
                    
                    <tr>
                        <td>
                            Tentative Meeting dates & rooms	:
                        </td>
                        <td ><select name="dateList" size="3" multiple="multiple" id="datelist1" >
                                <%
            for (int i = 0; i < datetimepairs.length; ++i) {
                if (datetimepairs[i] != null) {
                                %>
                                
                                <option value="<%=datetimepairs[i]%>"><%=datetimepairs[i]%></option>
                                <%}
            }%>
                            </select>
                        </td>
                    </tr>
                    
                    <tr>
                        <td> To accept please select the Meetings from the above list and click confirm
                        </td>
                        
                      <td>
                            <input type ="button" value="Reject" name="reject" id ="rejectmeeting" onclick="alert('hi');">
                            <input type ="submit" value="Confirm" name="confirm" id ="acceptmeeting">&nbsp;&nbsp;
                            
                        </td>
                        
                    </tr>
                    
                    <tr>
                        
                        <td colspan="2">
                            
                            Note :Please Hold the Ctrl key to accept Multiple dates.
                            
                        </td>
                    </tr>
                </table>
                
            </form>
    <!--mstheme--></font></body>
</HTML>
