﻿function check_fields(txtemail, txtpwd) {

    if (emptyField(txtemail)) {
        alert("Please Enter your Email");
        txtemail.focus();
        return false;
    }
    if (!validEmailId(txtemail.value)) {
        alert('Please enter valid EMail Address');
        txtemail.focus();
        return false;
    }  
    if (emptyField(txtpwd)) {
        alert("Please Enter Password");
        txtpwd.focus();
        return false;
    }
}

