﻿// JScript File

function sendData(salt)
			{
			 
              if (document.aspnetForm.ctl00_Login1_txtLogin.value == "")
    	       {
    		     alert("Enter Your Roll Number");
    		     document.aspnetForm.ctl00_Login1_txtLogin.focus();
    		     return (false);
        	   }
    
              if (document.aspnetForm.ctl00_Login1_txtPWD.value == "")
    	       {
    		     alert(" Enter Your Password");
    		     document.aspnetForm.ctl00_Login1_txtPWD.focus();
    		     return (false);
	           }
	         
//	        var pwd=document.getElementById('txtPwd');
	         //var pwd=document.getElementById("<%=txtPWD.ClientID%>").value;
		if(document.aspnetForm.ctl00_Login1_txtPWD.value != "")
	     {
	      
	      document.aspnetForm.ctl00_Login1_txtPWD.value = hex_md5(document.aspnetForm.ctl00_Login1_txtPWD.value);
		   document.aspnetForm.ctl00_Login1_txtPWD.value = hex_md5(document.aspnetForm.ctl00_Login1_txtPWD.value+salt);
	    }
//       alert("hiii"+salt);
	   }
	   
	   
	   
	   
	   
//	   function sendData(salt)
//			{
//			 alert("hiii");
//              if (document.aspnetForm.txtLogin.value == "")
//    	       {
//    		     alert("Enter Your Roll Number");
//    		     document.aspnetForm.txtLogin.focus();
//    		     return (false);
//        	   }
//    
//              if (document.aspnetForm.txtPWD.value == "")
//    	       {
//    		     alert(" Enter Your Password");
//    		     document.aspnetForm.txtPWD.focus();
//    		     return (false);
//	           }
//	         alert("hello");
////	        var pwd=document.getElementById('txtPwd');
//	         //var pwd=document.getElementById("<%=txtPWD.ClientID%>").value;
//		if(document.aspnetForm.txtPWD.value != "")
//	     {
//	      alert("hiiihello");
//	      document.aspnetForm.txtPWD.value = hex_md5(document.aspnetForm.txtPWD.value);
//		   document.aspnetForm.txtPWD.value = hex_md5(document.aspnetForm.txtPWD.value+salt);
//	    }
////       alert("hiii"+salt);
//	   }