<%--
    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 fun()
{
       var dep=f1.uname.value;
       var div=f1.div.value;
       var tname=f1.pwd.value;
       var scale=f1.pwd1.value;
       var date=f1.dob.value;
       var dur=f1.post.value;
       if(dep==null || dep=="" || div==null || div=="" || tname==null || tname=="" || scale==null || scale=="" || date==null || date=="" || dur=="" || dur==null)
         {
             window.alert("PLEASE ENTER THE FIELDS");
             f1.uname.select();
         }
        
        //else if(dep!=null && dep!="" && div!=null && div!="" && tname!=null && tname!="" && scale!=null && scale!="" && date!=null && date!="" && dur!="" )
        else 
        {
           document.forms["f1"].submit();
        }

}
</script>
        <style>
a
{
color:black;
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; border-color:brown;}
  </style>
    </head>
    <body  bgcolor="#006666">
        
        <table bgcolor="#ccccff" width=100% border=2>   
            <tr><td><img src="images\2.jpg" height="125" width="450"></img></td>
                
                <td style="text-align:center; font-family:impact; font-size:45px; color:green; "><b>Mechanical Questionnaire</b></td>
               
                <td><img src="images\rmirror2.jpg" height="125" width="450"></img></td>
                </tr>
        </table>
        
        <script language="javascript" type="text/javascript" src="datetimepicker.js">

         </script>
         </div><center><b>Registration Form</b></center></div>
        <form name="f1" action="reg1.jsp" method="POST">
        <center><table border="1">
<thead>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>USER NAME</td>
<td></td>
<td><input type="text" name="uname" value="abcd" size="14" /></td>
<td></td>
</tr>
<tr>
<td>CREATE A PASSWORD</td>
<td></td>
<td><input type="password" name="pwd" value="1234" size="14" /></td>
<td></td>
</tr>
<tr>
<td>CONFIRM PASSWORD</td>
<td></td>
<td><input type="password" name="pwd1" value="1234" size="14" /></td>
<td></td>
</tr>
<tr>
<td>SELECT DESIGNATION</td>
<td></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;&nbsp;&nbsp; </option>
<option>Asst.Clerk</option>
<option>Sr.Accountant</option>
<option>Ch.OS</option>
<option>ADME</option>
<option>Sr.Cashier</option>

</select></td>

<td></td>
</tr>
<tr>
<td>Date Of Birth</td>
<td></td>
<td><input type="text" name="dob" value="" size="14" /></td>
<td></td>
</tr>
<tr>
<td>DIVISON</td>
<td></td>
<td><input type="text" name="div" value="" size="14" /></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td ><input type="button" value="CONFIRM" onclick="fun()" style="border:3px;color:BLACK;padding:1px; border-color:WHITE;" /></td>
<td></td>
<td><input type="reset" value="CANCEL"  style="border:3px;color:BLACK;padding:1px; border-color:WHITE;"/></td>
<td></td>
</tr>

</tbody>
</table></center>
</form>
</body>
</html>
