
 <%@page language="java" import="java.util.*,java.sql.*" contentType="text/html"%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
      <link href="css/sty.css" rel="stylesheet" type="text/css"></link>        
 <script src="js/datepicker.js"></script>  
		<script>
            function enter(){
             if(event.keyCode==13)
  {
      validate();
  }
            }
            function validate()
            {
                 var x=document.getElementById('f1').t1.value;
                 var y=document.getElementById('f1').t2.value;
                 
                if(x=="" || x==null)
                    window.alert("please select from date");
                else if(y=="" || y==null)
                    window.alert("please select to date");
                else
                    {   
                         f1.submit();
                    }
            }
 
        </script>
    </head>
    <body onkeyup="enter()">
       <% if(request.getAttribute("insert")!=null){%>
   <b><h1> <font color="green"><%=(String) request.getAttribute("insert")%></font></h1></b>
    <%}%>

        <% if(request.getAttribute("error")!=null){%>
   <b><h1> <font color="red"><%=(String) request.getAttribute("error")%></font></h1></b>
    <%}%>
		 
        <form name="f1"  action="rdbetween.jsp">
           <center> <table cellspacing=10 cellpadding=5>
                <tr>
                    <td>From Date:</td>
            <td><input type="text" name="t1" id="fromdate" readonly >
           <td><img src="images\cal.gif" onclick="displayDatePicker('fromdate')" title="pick date here"></td>
                </tr>
                  <tr>
                    <td>To Date</td>
            <td><input type="text" name="t2" id="todate" readonly>
           <td><img src="images\cal.gif" onclick="displayDatePicker('todate')" title="pick date here"></td>
                </tr>
               
				<tr>
				<td><input type="checkbox" name="demiofficial" value="yes">Demiofficial</td>
				</tr>
				<tr>
				
				<td><input type="radio" name="action" value="pending">Pending</td>
				<td><input type="radio" name="action" value="closed">Closed</td>
				</tr>
				
				
				
				<tr>
                    <td> <input type="button" value="Report" onclick="validate()"></td>
                    <td><input type="reset" value="Cancel"></td>
                </tr>
            </table>
        </center>
        </form>
    </body>
</html>
