<%--
    Document   : default
    Created on : Feb 17, 2010, 4:42:36 PM
    Author     : Sreekanth
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script>
        function fun2()
{
       var dep=f1.dname.value;
       var div=f1.div.value;
       var tname=f1.tname.value;
       var scale=f1.scale.value;
       var date=f1.date.value;
       var dur=f1.dur.value;
       if(dep==null || dep=="" || div==null || div=="" || tname==null || tname=="" || scale==null || scale=="" || date==null || date=="" || dur=="")
         {
             window.alert("PLEASE ENTER THE FIELDS");

         }
         
       else
           document.forms["f1"].submit();





}
</script>
        <style>
a
{
color:white;
width:180;
font-family:Comic Sans MS;
text-align:center;
}
b
{
color:red;
width:180;
font-family:Comic Sans MS;
text-align:center;
}
input {border:5px;color:red;padding:2px;}
  </style>
    </head>
    <body background="images\bg.jpg">
        <jsp:include page="menu.jsp"></jsp:include>
        <script language="javascript" type="text/javascript" src="datetimepicker.js">

         </script>
        <a><center><b>Question Paper Model - 2</b></center></div>
        <form name="f1" action="model2.jsp" method="POST">
            <center> <table border="0" >
  <tr>
<td>DEPARTMENT</td>
<td><input type="text" name="dname" value="" size="14" /></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td align="RIGHT">DIVISION</td>
<td><input type="text" name="div" value="" size="14" /></td>
</tr>

<tr>
<td>Template Name</td>
<td><input type="text" name="tname" value="" size="14" /></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td align="RIGHT">Scale</td>
<td><input type="text" name="scale" value="" size="14" /></td>
</tr>
<tr>
<td align="RIGHT">Section</td>
<td><select name="section">
<option>General</option>
<option>Pass</option>
<option>Rolling Stock&nbsp;&nbsp;&nbsp;</option>
<option>Accounts</option>
<option>Finance</option>
<option>Accounts</option>
        <option>Accounts</option>
</select></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td align="RIGHT">Post</td>
<td style="text-align:center; font-family:Comic Sans MS; font-size:20px; color:red;"><select name="post" size="1" >
<option>Sr.Clerk &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </option>
<option>Asst.Clerk</option>
<option>Sr.Accountant</option>
<option>Ch.OS</option>
<option>ADME</option>
<option>Sr.Cashier</option>

</select></td>
</tr>
<tr>
<td align="right">Date</td>
<td><input type="Text" id="demo1" maxlength="25" size="12"><a href="javascript:NewCal('demo1','ddmmmyyyy')"><img src="cal.gif" width="16" height="16" border="0" alt="Pick a date"></a></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td align="RIGHT">Max Marks</td>
<td><input type="text" name="tmarks" value="150" size="14" readonly  /></td>
</tr>
<tr>
<td align="right">Duration</td>
<td><input type="text" name="dur" value="" size="14"  /></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td align="RIGHT">Time</td>
<td><input type="text" name="tim" value="" size="14" /></td>
</tr>
 </table></center><br><br>

            <center><div><table width="800">
                        <b><thead>
                    <tr>
                        <th>Questions of Type</th>
                        <th>Total Questions</th>
                        <th>Choice</th>
                        <th>Marks</th>
                    </tr>
                </thead></b>
                <tbody>
                    <tr>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>Multiple Choice Questions</td>
                        <td>10</td>
                        <td>No Choice</td>
                        <td>10 X 2 = 20 M</td>

                    </tr>
                     <tr>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>Fill in the Blanks</td>
                        <td>10</td>
                        <td>No Choice</td>
                        <td>10 X 2 = 20 M</td>
                    </tr>
                    <tr>
                        <td>Expansions</td>
                        <td>10</td>
                        <td>No Choice</td>
                        <td>10 X 3 = 30 M</td>
                    </tr>
                    <tr>
                        <td>Long Answer Type</td>
                        <td>10</td>
                        <td>Any Five</td>
                        <td>5 X 10 = 50 M</td>
                    </tr>
                    <tr>
                        <td>Short Answer Type</td>
                        <td>10</td>
                        <td>Any Six</td>
                        <td>6 X 5 = 30 M</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td></td>
                        <td>Total Marks</td>
                        <td>100 M</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td></td>
                        <td><input type="submit" value="Confirm" name="ok" onclick="fun2()" /></td>
                        <td></td>
                    </tr>
                </tbody>
                </table></a></center>




        </form>
         <table align="center" border="1">
            <tr><td><div align="RIGHT"><a href="tlist3.jsp" target="f3" >NEXT</a></div></td>
                <td><div align="LEFT"><a href="tlist1.jsp" target="f3" >BACK</a></div></td></tr>
        </table>
    </body>
</html>
