﻿// JScript File
/// Summary description for Instr_Login.js
/// FileName                  : Instr_Login.js
/// Description               : Validate Instructor login information.
/// Developer                 : Aruna
/// Created Date              : 26th-Mar-2008 

    function InstrLoginValidation()
    {
        var strAlert=0;
        var strFocus=" ";
        var strMsg="Required information incorrect \n\n";
        
        if(document.getElementById("txtLogin").value == "")
        {
            strMsg +="Instructor Login \n";
            strAlert=1;
             strFocus +="#"+"txtLogin";
        }
        if(document.getElementById("txtPassword").value == "")
        {
            strMsg+="Password \n";
            strAlert=1;
             strFocus +="#"+"txtPassword";
        }
        if(strAlert==1)
        {
            var id=strFocus.split("#");
            document.getElementById(id[1]).focus();
            alert(strMsg);
            return false;
        }
        else
        {
            return true;
        }
    }
