﻿function EkFmValidate(formObj1)
{ 
    var formObj = document.forms[0];
    var strError=''; 
    var e=null;
    if (strError=='' && 'function' == typeof design_validateHtmlForm) 
    {
        msg = "";
        e = design_validateHtmlForm(formObj);
        if (e) { strError = msg; }
    }
    if (strError=='') { return true; }
    else 
    {
        alert(strError);
        if ('function' == typeof e.scrollIntoView || 'object' == typeof e.scrollIntoView) e.scrollIntoView();
        if ('function' == typeof design_canElementReceiveFocus) 
        {
            if (design_canElementReceiveFocus(e)) e.focus();
        }  
        else { e.focus(); }
        return false;
    }
}


