﻿// 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);
	           }
		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);
	    }
	   }
	     /* Disabling Right Click */
           function DisableRightClick(event)
           {
           //For mouse right click 
           if (event.button==2)
           {
            return false;
           }
          }
          
        function DisableCtrlKey(e)
         {
          var code = (document.all) ? event.keyCode:e.which;
          var message = "Ctrl key functionality is disabled!";
          // look for CTRL key press
          if (parseInt(code)==17)
          {
          alert(message);
          window.event.returnValue = false;
          }
        }

	   