﻿
        function ShowPopUpDiv(Show) {
            el = document.getElementById("overlay"); el.style.display = (el.style.display == "block") ? "none" : "block";
            el = document.getElementById("contex"); el.style.display = (el.style.display == "block") ? "none" : "block";
            Lock(document.body, Show);
            if (Show) {
            
            }
        }
        function Lock(ParentObj, Show) {
            var L = ParentObj.childNodes.length;
            if (L > 0) {
                for (i = 0; i < L; i++) {
                    Obj = ParentObj.childNodes[i];

                    if (Obj != null) {
                        if (Obj.id != "overlay")
                            if (Obj.onfocus != null && Obj.onfocus + "" != "undefined") {
                                Lock(Obj, ToLock);
                                if (ToLock) {
                                    aa = Obj.onfocus;
                                    Obj.onfocus = function () { this.blur(); }
                                    Obj.onfocus.prototype.base_onfocus = aa;
                                }
                                else {
                                    Obj.onfocus = Obj.onfocus.prototype.base_onfocus;
                                }
                            }
                    }
                }
            }
        }
         

