﻿function sendData(salt)
 {   
                  var TextBox1 = document.getElementById('TextBox1');  
                   var DropDownList1 = document.getElementById('DropDownList1');  
                   var DropDownList2 = document.getElementById('DropDownList2');
                   var DropDownList3 = document.getElementById('DropDownList3');     
                         
                         if((DropDownList1.options[DropDownList1.selectedIndex].text)=="--Select--")
                         {
                         
                          alert ("Select District");
                          DropDownList1.focus();
                          return false;
                         
                         }
                         
                       
	                           
	                           
	         if(document.form1.TextBox1.value=="")
                       
	           {  
	                  alert("Enter Your Password");
    		           document.form1.TextBox1.focus();
    		              return false;
	         
	         }
	         var aaas=/(?=^.{6,12}$)(?=.*\d)(?=.*[\!\@\#\$\*])((?=.*[A-Z])|(?=.*[a-z])).*$/;
	         if(!document.form1.TextBox1.value.match(aaas))
	            {
	                alert("Password must be 6 character long and should contain at least one alphabet(a-z or (A-Z)),one numeric digit (0-9) and one special character(!@#$*).");
	                document.form1.TextBox1.focus();
	                return false;
	            }
	          
                       if((DropDownList2.options[DropDownList2.selectedIndex].text)=="--Select--")
                         {
                         
                          alert ("Select Month");
                          DropDownList2.focus();
                          return false;
                         
                         }
	         
	                      if((DropDownList3.options[DropDownList3.selectedIndex].text)=="--Select--")
                         {
                         
                          alert ("Select Year");
                          DropDownList3.focus();
                          return false;
                         
                         }
	                           
	                    
                          
                          if(document.form1.TextBox1.value != "")
                         {
                          	      document.form1.TextBox1.value = hex_md5(document.form1.TextBox1.value);
	                              //document.form1.TextBox1.value =document.form1.TextBox1.value+salt;
	                              document.form1.TextBox1.value =hex_md5(document.form1.TextBox1.value+salt);
                         }
               

  }




















