<%-- 
    Document   : question_bank
    Created on : Feb 17, 2010, 4:05: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">
<jsp:include page="menu.jsp"></jsp:include>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        
<style>
div
{
color:red;
width:180;
font-family:Comic Sans MS;
text-align:center;
}
a
{
text-decoration:none;
font-family:Comic Sans MS;
color:black;
cursor:hand;
}

</style>  
        <script>
        function fun()
        {  var a,b,sec;
           if(document.f1.QosType[0].checked)
            a=document.f1.QosType[0].value;
           if(document.f1.QosType[1].checked)
            a=document.f1.QosType[1].value;
           if(document.f1.QosType[2].checked)
            a=document.f1.QosType[2].value;
           if(document.f1.QosType[3].checked)
            a=document.f1.QosType[3].value;
           if(document.f1.QosType[4].checked)
           a=document.f1.QosType[4].value;
            
            
           if(document.f1.op[0].checked)
             b=document.f1.op[0].value;
           if(document.f1.op[1].checked)
             b=document.f1.op[1].value;
           if(document.f1.op[2].checked)
             b=document.f1.op[2].value;
           if(document.f1.op[3].checked)
             b=document.f1.op[3].value;
          

           //sec=f1.sec.value;




           if(a==null || b==null||a==""||b=="")  
           {
             window.alert("PLEASE SELECT THE RADIO BUTTONS");
            }
            else 
                {
                      document.forms["f1"].submit();
                }
        }
        </script>
 </head>
 
<body background="images\bg.jpg">
    
        
     
    <div><center>Question Bank</center></div><br><br>
   <form name="f1" action="view.jsp" method="post">
       <center><p style="text-align:center; font-family:Comic Sans MS; font-size:20px; color:#150889;"><b>Section</b>&nbsp;&nbsp;&nbsp;&nbsp;<select name="sec">
<option value="all">ALL</option>
<option value="English">English</option>
<option value="Aptitude">Aptitude</option>
<option value="G.K.">G.K.</option>
<option value="Railway">Railways</option>
</select></p></center>
   
  <center><table>
<tr>
    <td><input type="radio" id="r1" name="QosType" value="1"  /></td>
    <td style="text-align:left; font-family:Comic Sans MS; font-size:20px; color:#150889;"><b>Multiple choice type Qos.</b></td>
    <td><input type="radio" id="r1" name="QosType" value="2"  /></td>
    <td style="text-align:left; font-family:Comic Sans MS; font-size:20px; color:#150889;"><b>Fill in the blanks</b></td>

</tr>
<br>
<tr>
    <td><input type="radio" id="r1"  name="QosType" value="4"  /></td>
<td style="text-align:center; font-family:Comic Sans MS; font-size:20px; color:#150889;"><b>Short Answer type Qos.</b></td>
<td><input type="radio" id="r1" name="QosType" value="3" /></td>
<td style="text-align:center; font-family:Comic Sans MS; font-size:20px; color:#150889;"><b>Long Answer type Qos.</b></td>
</tr>
<tr>
    <td><input type="radio" id="r1"  name="QosType" value="5"  /></td>
      <td style="text-align:left; font-family:Comic Sans MS; font-size:20px; color:#150889;"><b>Expansions</b></td>
</tr>
</table></center>
<br>
 <br>
<center><table cellspacing="25" >
<tr>
<td><input type="radio" id="r2" name="op" value="1"  />
<td style="text-align:center; width:600; font-family:Comic Sans MS; font-size:20px; color:white;"><b>View Qos</b></td>
<td><input type="radio" id="r2" name="op" value="2"  />
<td style="text-align:center; width:600;font-family:Comic Sans MS; font-size:20px; color:white;"><b>Add Qos</b>
</td>
<td><input type="radio" id="r2" name="op" value="3"  />
<td style="text-align:center;width:400; font-family:Comic Sans MS; font-size:20px; color:white;"><b>Delete Qos</b>
</td>
<td><input type="radio" id="r2" name="op" value="4"  />
<td style="text-align:center;width:400; font-family:Comic Sans MS; font-size:20px; color:white;"><b>Edit Qos</b>
</td>
</tr>

</table></center>
<center><table>
<tr>
    
    <td align="center"><input type="button" value="Confirm" name="Confirm" onclick="fun()" /></td>

     <td align="center"><input type="reset" name="Cancel" /></td>
<td></td>
</tr>

</table></center>

</form>
   
  </body>
</html>

