
<%-- 
   Document   : title
    Created on : Feb 17, 2010, 3:04:27 PM
    Author     : Sreekanth
--%>

<%@ page language="java" contentType="text/html" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>Auto Questionnaire</title>
        
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            
         <SCRIPT LANGUAGE="JavaScript">
          function fun()
          {
              //window.alert("sri");
                var uname=document.getElementById("uname").value;
             
		var password=document.getElementById("pword").value;
               
		if(uname==null || uname=="")
                    window.alert("please enter username");
		else 
		if(password==null || password=="")
                    {
		window.alert("please enter password");
       
                    }
		else 
                 {   
                    
                   if(uname=="kavya" && password=="kavya")
		   {
			//document.getElementById("fid").action="sview.jsp";
			//document.getElementById("fid").submit();
                        document.forms["f1"].submit();
		   }
                   else 
                   {
                      window.alert("please enter correct username and password"); 
                   }    
	         }
          }
          
       </SCRIPT>
       
        
<style>

</style>
    </head>
     <% if(request.getAttribute("x")!=null)
                    out.println(request.getAttribute("x")); %>
    <body  background="images\bg.jpg">
        
        <form name="f1" action="question_bank.jsp" method="post">>
           <center><table  width="400" height=300 border=0>
                   <tr><td style="text-align:right; font-family:impact; font-size:50px; color:orange;"><b>Auto</b></td><td align="center" colspan="2"><img src="images\scr.gif" height="250" width="300"></img></td><td style="text-align:center; font-family:impact; font-size:50px; color:orange;"><b>Questionnaire</b></td></tr>   
           <tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr><tr></tr>
           <tr><td></td>
<td style="text-align:right; font-family:Comic Sans MS; font-size:20px; color:white;" ><b>User Name</b></td>

<td align="left"><input type="text" name="username" id="uname" size="12" /></td>

</tr>
<tr><td></td>
<td style="text-align:right; font-family:Comic Sans MS; font-size:20px; color:white;"><b>Password</b></td>

<td align="left"><input type="password" name="password" id="pword" size="12" /></td>
</tr>
<tr><td></td><td align="right"><input type="button" value="Submit" onclick="fun()"></td><td align="left"><input type="reset" value="Reset"></td></tr>
</table>
           </center>
          <%--  <tr><td><a href="reg.jsp"><img src="images\1.jpg" height="100" width="150" ></img></a></td><td></td>
                     </tr>
            <tr><td style="text-align:center; font-family:Comic Sans MS; font-size:20px; color:red;">Registration</td><td></td><td style="text-align:center; font-family:Comic Sans MS; font-size:20px; color:red;">Create Question Paper</td>
           </table></center>--%>
      
        </form>  
    </body>
</html>
