<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>SECURING AGGREGATE</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width">
       
        <link rel="stylesheet" href="css/bootstrap.css">
        <link rel="stylesheet" href="css/bootstrap-responsive.css">
        <link rel="stylesheet" href="css/custom-styles.css">
        <link rel="stylesheet" href="css/font-awesome.css">
        <link rel="stylesheet" href="css/component.css">
        <link rel="stylesheet" href="css/font-awesome-ie7.css">
         <link rel="icon" href="images/13.jpg">
        
        <script src="js/modernizr-2.6.2-respond-1.1.0.min.js"></script>
    </head>
    <script>
    function validateform(){  
var username=document.myform.username.value;  
var password=document.myform.password.value;
var phoneno = document.getElementById('txtphoneno');
 
  
if (document.myform.username.value == "") {
        alert("Enter a username");
        document.myform.username.focus();
        return false;
    }
    if (!/^[a-zA-Z]*$/g.test(document.myform.username.value)) {
        alert("Please use only characters for username");
        
        document.myform.username.focus();
        return false;
    }
else if(password.length<6){  
  alert("Password must be at least 6 characters long.");  
  return false;  
  }
  if (phoneno.value == "" || phoneno.value == null) {
            alert("Please enter your Mobile No.");
            return false;
        }
        if (phoneno.value.length < 10 || phoneno.value.length > 10) {
            alert("Mobile No. is not valid, Please Enter 10 Digit Mobile No.");
            return false;
        }

    }
    </script>
      <%
if(request.getParameter("msggg")!=null){%>
    
    out.print("<script>alert('Duplicate entry for email..!')</script>");
}  

<%}
if(request.getParameter("msgg")!=null){%>

 out.print("<script>alert('Registration  Failed..!')</script>");
 <%
}
%>
    <body>
        <!--[if lt IE 7]>
            <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
        <![endif]-->

        <!-- This code is taken from http://twitter.github.com/bootstrap/examples/hero.html -->

        <!-- Site header starts here -->

            


             <!-- main content starts here -->

            <div class="container b-radius-top">
                <div class="top-bar b-radius">
                   
                    <div class="social">
                        <ul>
                          
                        </ul>
                    </div>
                </div>
                <div class="site-header">


                     <!-- Site Name starts here -->

                    <div class="site-name">
                       <h1>Securing Aggregate Queries for DNA Databases</h1>
                    </div>

                    <!-- Site Name ends -->

                     <!-- Menu starts here -->
                    <div class="menu">
                        <div class="navbar">
                            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                               <i class="fw-icon-th-list"></i>
                            </a>
                            <div class="nav-collapse collapse">
                                <ul class="nav">
                                     <li><a href="index.jsp">Home</a></li>
                                    <li><a href="hospital1.jsp">Hospital1</a></li>
                                    <li><a href="hospital2.jsp">Hospital2</a></li>
                                    <li><a href="cloud1.jsp">Cloud1</a></li>
                                    <li><a href="cloud2.jsp">Cloud2</a></li> 
                                    
                                    <li class="active"><a href="user.jsp">User</a></li>
                                </ul>
                                <form class="search-form">
                                    <div class="input-append ">
                                       
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>

                    <!-- Menu ends -->
                </div>
                 <div class="banner">
                    <div class="carousel slide" id="myCarousel">
                                    <!-- Carousel items -->
                                    <div class="carousel-inner">
                                         <br><br>
                                    
		
				
                        <center>
          <!---star Body -->
         <form name="myform" id="loginForm" action="userregact.jsp" method="post"   onsubmit="return validateform()" >
					
					<div class="subscribe-hide" >
                                            <b>Name</b>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;     <input class="form-control" type="text" id="subscribe-email" name="username" placeholder="Name" required><br>
			      <b>Email:</b>     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;       <input class="form-control" type="email" id="subscribe-email" name="email" placeholder="Email Address"  required><br>
                               <b>Password:</b>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;         <input class="form-control" type="password" id="subscribe-email" name="password" placeholder="Password"  required><br>
                              
                               <b>DOB:</b>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;       <input class="form-control" type="date" id="subscribe-email" name="date"  required><br>
                                       
                       
                              <b>ContactNO:</b> &nbsp;&nbsp;&nbsp;&nbsp           <input class="form-control" type="text" name="phoneno" id="txtphoneno" placeholder="Contactno" onkeypress="return isNumber(event)" required><br>
                                       
                                        
                             
                                     
                                              <center>   <input type="submit" value="Register"  style=" border-radius: 8px; height: 45px;width: 115px; color:white;background-color:black " class=""  />
                            <input type="reset" value="Reset"  style=" border-radius: 8px; height: 45px;width: 115px; color:white;background-color:black " class="" /><br />
                       
                        </center>
                     
                                                  </div>
                                </form>
          
          <!---End Body -->
         <br></div>
     </div>
        
      </div>
      <div class="clr"></div>
    </div>
  </div>

  <div class="footer">
    <div class="footer_resize">
      
      <div style="clear:both;"></div>
    </div>
  </div>
</div>
</body>
</html>

