// JScript File
    function Check_HeaderLogin_Value()
    {   
        var txt_Login=document.getElementById('uc1$txt_Login');
        var txt_Password=document.getElementById('uc1$txt_Password');
        
        if(fnValidateInput(txt_Login,"getlen") == 0 || txt_Login.value == "Your Login ID")
        {
               alert('Login ID should not left blank !!');
                if (txt_Login.disabled==false)
                {
                    txt_Login.focus();
                }    
                return false;
        }
        else if(!fnValidateInput(txt_Login,"alnum_s"))
        {
                 alert('Special Characters are not allowed for Login ID !!');
                 if (txt_Login.disabled==false)
                 {
                    txt_Login.focus();
                 }    
                 return false;  
        }
        
        if(fnValidateInput(txt_Password,"getlen") == 0)
        {
               alert('Password should not left blank !!');
                if (txt_Password.disabled==false)
                {
                    txt_Password.focus();
                }    
                return false;
        }
        else if(!fnValidateInput(txt_Password,"alnum_s"))
        {
                 alert('Special Characters are not allowed for Password !!');
                 if (txt_Password.disabled==false)
                 {
                    txt_Password.focus();
                 }    
                 return false;  
        }
        
        return true;
    } // function Check_HeaderLogin_Value()
    
    function Check_Login_Value()
    {   
        var txt_UserName=document.getElementById('txt_UserName');
        var txt_Password=document.getElementById('txt_Pass');
        var strError=document.getElementById('lbl_mandotary');
        
        if(fnValidateInput(txt_UserName,"getlen") == 0)
        {
               alert('User Name should not left blank !!');
                if (txt_UserName.disabled==false)
                {
                    txt_UserName.focus();
                }    
                return false;
        }
        else if(!fnValidateInput(txt_UserName,"alnum_s"))
        {
                 alert('Special Characters are not allowed for User Name !!');
                 if (txt_UserName.disabled==false)
                 {
                    txt_UserName.focus();
                 }    
                 return false;  
        }
        
        if(fnValidateInput(txt_Password,"getlen") == 0)
        {
               alert('Password should not left blank !!');
                if (txt_Password.disabled==false)
                {
                    txt_Password.focus();
                }    
                return false;
        }
        else if(!fnValidateInput(txt_Password,"alnum_s"))
        {
                 alert('Special Characters are not allowed for Password !!');
                 if (txt_Password.disabled==false)
                 {
                    txt_Password.focus();
                 }    
                 return false;  
        }
        
        return true;
    } // function CheckValue()
    
    function password_valid()
    {
        var txt_old_password = document.getElementById('txt_old_password');
        var txt_new_password = document.getElementById('txt_new_password');
        var txt_con_pwd = document.getElementById('txt_con_pwd');
        var strError=document.getElementById('lbl_mandotary');
        
        if(fnValidateInput(txt_old_password,"getlen") == 0)
        {
               alert('Old Password should not left blank !!');
                if (txt_old_password.disabled==false)
                {
                    txt_old_password.focus();
                }    
                return false;
        }
        else if(!fnValidateInput(txt_old_password,"alnum_s"))
        {
                 alert('Special Characters are not allowed for Old Password !!');
                 if (txt_old_password.disabled==false)
                 {
                    txt_old_password.focus();
                 }    
                 return false;  
        }
        
        if(fnValidateInput(txt_new_password,"getlen") == 0)
        {
               alert('New Password should not left blank !!');
                if (txt_new_password.disabled==false)
                {
                    txt_new_password.focus();
                }    
                return false;
        }
        else if(!fnValidateInput(txt_new_password,"pass"))
        {
                 alert('New Password may be letters, numbers or a combination of the two only !!');
                 if (txt_new_password.disabled==false)
                 {
                    txt_new_password.focus();
                 }    
                 return false;  
        }
        else if(!fnValidateInput(txt_new_password,"minlen",6))
        {
                 alert('New password must be minimum 6 characters long !!');
                 if (txt_new_password.disabled==false)
                 {
                    txt_new_password.focus();
                 }    
                 return false;  
        }
        
        if(fnValidateInput(txt_con_pwd,"getlen") == 0)
        {
               alert('Confirm Password should not left blank !!');
                if (txt_con_pwd.disabled==false)
                {
                    txt_con_pwd.focus();
                }    
                return false;
        }
        else if(!fnValidateInput(txt_con_pwd,"pass"))
        {
                 alert('Confirm Password may be letters, numbers or a combination of the two only !!');
                 if (txt_con_pwd.disabled==false)
                 {
                    txt_con_pwd.focus();
                 }    
                 return false;  
        }
        else if(txt_new_password.value != txt_con_pwd.value)
        {
                 alert('New Password and Confirm Password does not match !!');
                 if (txt_con_pwd.disabled==false)
                 {
                    txt_con_pwd.focus();
                 }    
                 return false;  
        }
    }
    
        function resetpassword()
    {   
        var txt_Email=document.getElementById('txt_Email');
        
        if(fnValidateInput(txt_Email,"getlen") == 0)
        {
           alert('Email ID should not left blank !!');
            if (txt_Email.disabled==false)
            {
                txt_Email.focus();
            }    
            return false;
        }
        else if (!(txt_Email.value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1))
        {
            alert("Please enter valid Email ID !!");
            if(txt_Email.disabled==false)
            {
                txt_Email.focus();   
            }
            return false; 
        }  
        
    }
