﻿
function isNumericData(evt) {
        var KeyChar = (evt.which) ? evt.which : event.keyCode
        if (KeyChar >= 48 && KeyChar <= 57 || KeyChar == 45 || KeyChar == 8 || KeyChar == 47) {
            return true;
        }
        return false;

    }
    function CheckDate(EnterDate, ErrorShow) {
        var CheckDate = EnterDate.value;
        if (CheckDate.length < 7) {
            if (document.getElementById(ErrorShow).style.display == 'none') {
                document.getElementById(ErrorShow).style.display = '';
            }
            document.getElementById(ErrorShow).className = "ErrorMessage";
            document.getElementById(ErrorShow).innerHTML = "Enter proper date";
        }
        else {
            document.getElementById(ErrorShow).style.display = 'none';
        }

    }
    
     function MinusValueNotAccept(evt) {
            var KeyChar = (evt.which) ? evt.which : event.keyCode
            if (KeyChar == 45 || KeyChar == 46)
                return false;
            return true;
        }
        
        function ViewShortResumeTraining() {
            window.radopen("../ResumeTools/ViewResume.aspx?rt=short", "ViewResume");
            return false;
        }
        function PrintShortResumeTraining() {
            window.open("../ResumeTools/PrintResume.aspx?rt=short", "PrintResume", 'toolbar=no, directories=no, location=no, status=yes, menubar=no, resizeable=no, scrollbar=yes, width=700, height=500');
             return false;
        }
        
        function ShowSendResume() {
            window.radopen("../ResumeTools/SendResume.aspx?rt=short", "viewSendResume");
            return false;
        }
        
         function GetRadWindow() {
        var oWindow = null;
        if (window.radWindow) oWindow = window.radWindow;
        else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
        return oWindow;
    }
    
     function BlockListbox(ListObjStart, ListOBjEnd) {
        if (document.getElementById(ListObjStart)) {
            var ListObjStart1 = document.getElementById(ListObjStart).value;
            if (ListObjStart1 == "0") {
                document.getElementById(ListOBjEnd).disabled = true;  
            }
            else {
                document.getElementById(ListOBjEnd).disabled = false;
            }
        }
    }
    
     function doSubmit(ev) {
    var id = ev.replace(/_/g,"$");
    __doPostBack(id,'');
    }
       