JavaScript Error Object required

Last post 08-02-2009, 11:00 PM by cutechat. 6 replies.
Sort Posts: Previous Next
  •  07-16-2009, 3:57 AM 54021

    JavaScript Error Object required

     Hi,
     
    I am using IE8 and during page load I recive javascript errors:
     
     _hideImplementation : function() {
            /// <summary>
            /// Internal implementation to hide the modal dialog
            /// </summary>

            this._backgroundElement.style.display = 'none';
            this._foregroundElement.style.display = 'none';       //Object required.

            this.restoreTab();

            this._detachPopup();
        },
    AjaxControlToolkit.ModalPopupBehavior.prototype = {
        initialize : function() {
            /// <summary>
            /// Initialize the behavior
            /// </summary>
            
            /*
                <div superpopup - drag container resizable><div -- drag handle\dropshadow foreground></div></div>
            */

    .
    .
    .
    this._popupElement.parentNode.appendChild(this._foregroundElement); //Object required
    this._foregroundElement.appendChild(this._popupElement); //Incorrect argument.
    .
    .
    .
    this._foregroundElement.parentNode.appendChild(this._backgroundElement);//Object required

            this._foregroundElement.style.display = 'none';//Object required
            this._foregroundElement.style.position = 'fixed';//Object required
            this._foregroundElement.style.zIndex = $common.getCurrentStyle(this._backgroundElement, 'zIndex', this._backgroundElement.style.zIndex) + 1;//Object required
     
    .
    .
     
    }
    I don't know what causes this errors.
     
    I am using asp.net 3.5 with C#
     
    any help will be appreciated
     
    thasnks in advance

     

  •  07-16-2009, 11:44 PM 54044 in reply to 54021

    Re: JavaScript Error Object required

    Hi,
     
    It seems that you use other javascript library.
     
    Can you post your code ?
     
    Regards,
    Terry
     
  •  07-20-2009, 7:59 AM 54095 in reply to 54044

    Re: JavaScript Error Object required

    Hi,
     
    This code I received from IE8 debuger(with javascirpt debug) and it come from inside of the control.
    I didn't write this code.
     
    I have next issue:
    I am using the latest version you distributed (v. 3.0.0.0).
    I  am using flash 9 ax becouse with flash 10 ax it don't work correctly with your control. When I click on the Upload button the message "File Browsing has been blocked." apears. My code code works when I click to the message "File Browsing has been blocked.".I think  it is not a good solution to use this product when our clients wants to upload files. Could you fix that, please.
     
     
    Regards,
    Bart
     

  •  07-21-2009, 5:42 AM 54151 in reply to 54095

    Re: JavaScript Error Object required

    Hi,
     
    I am sending code:
    // (c) Copyright Microsoft Corporation.
    // This source is subject to the Microsoft Permissive License.
    // See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
    // All other rights reserved.


    /// <reference name="MicrosoftAjax.debug.js" />
    /// <reference name="MicrosoftAjaxTimer.debug.js" />
    /// <reference name="MicrosoftAjaxWebForms.debug.js" />
    /// <reference path="../ExtenderBase/BaseScripts.js" />
    /// <reference path="../Common/Common.js" />
    /// <reference path="../DynamicPopulate/DynamicPopulateBehavior.js" />
    /// <reference path="../RoundedCorners/RoundedCornersBehavior.js" />
    /// <reference path="../Compat/Timer/Timer.js" />
    /// <reference path="../DropShadow/DropShadowBehavior.js" />
    /// <reference path="../Compat/DragDrop/DragDropScripts.js" />
    /// <reference path="../DragPanel/FloatingBehavior.js" />


    Type.registerNamespace('AjaxControlToolkit');

    AjaxControlToolkit.ModalPopupRepositionMode = function() {
        /// <summary>
        /// The ModalPopupRepositionMode enumeration describes how the modal popup repositions
        /// </summary>
        /// <field name="None" type="Number" integer="true" />
        /// <field name="RepositionOnWindowResize" type="Number" integer="true" />
        /// <field name="RepositionOnWindowScroll" type="Number" integer="true" />
        /// <field name="RepositionOnWindowResizeAndScroll" type="Number" integer="true" />
        throw Error.invalidOperation();
    }
    AjaxControlToolkit.ModalPopupRepositionMode.prototype = {
        None : 0,
        RepositionOnWindowResize : 1,
        RepositionOnWindowScroll : 2,
        RepositionOnWindowResizeAndScroll : 3
    }
    AjaxControlToolkit.ModalPopupRepositionMode.registerEnum('AjaxControlToolkit.ModalPopupRepositionMode');


    AjaxControlToolkit.ModalPopupBehavior = function(element) {
        /// <summary>
        /// The ModalPopupBehavior is used to display the target element as a modal dialog
        /// </summary>
        /// <param name="element" type="Sys.UI.DomElement" domElement="true">
        /// DOM Element the behavior is associated with
        /// </param>
        AjaxControlToolkit.ModalPopupBehavior.initializeBase(this, [element]);
        
        // Properties
        this._PopupControlID = null;
        this._PopupDragHandleControlID = null;
        this._BackgroundCssClass = null;
        this._DropShadow = false;
        this._Drag = false;    
        this._OkControlID = null;
        this._CancelControlID = null;
        this._OnOkScript = null;
        this._OnCancelScript = null;
        this._xCoordinate = -1;
        this._yCoordinate = -1;
        this._repositionMode = AjaxControlToolkit.ModalPopupRepositionMode.RepositionOnWindowResizeAndScroll;

        // Variables
        this._backgroundElement = null;
        this._foregroundElement = null;
        this._relativeOrAbsoluteParentElement = null;
        this._popupElement = null;
        this._dragHandleElement = null;
        this._showHandler = null;
        this._okHandler = null;
        this._cancelHandler = null;
        this._scrollHandler = null;
        this._resizeHandler = null;
        this._windowHandlersAttached = false;
        this._dropShadowBehavior = null;
        this._dragBehavior = null;
        this._isIE6 = false;

        this._saveTabIndexes = new Array();
        this._saveDesableSelect = new Array();
        this._tagWithTabIndex = new Array('A','AREA','BUTTON','INPUT','OBJECT','SELECT','TEXTAREA','IFRAME');
    }
    AjaxControlToolkit.ModalPopupBehavior.prototype = {
        initialize : function() {
            /// <summary>
            /// Initialize the behavior
            /// </summary>
            
            /*
                <div superpopup - drag container resizable><div -- drag handle\dropshadow foreground></div></div>
            */
            AjaxControlToolkit.ModalPopupBehavior.callBaseMethod(this, 'initialize');
            this._isIE6 = (Sys.Browser.agent == Sys.Browser.InternetExplorer && Sys.Browser.version < 7);
            if(this._PopupDragHandleControlID)
                this._dragHandleElement = $get(this._PopupDragHandleControlID);

            this._popupElement = $get(this._PopupControlID);
            if(this._DropShadow)
            {
                this._foregroundElement = document.createElement('div');
                this._foregroundElement.id = this.get_id() + '_foregroundElement';
                this._popupElement.parentNode.appendChild(this._foregroundElement);//object required
                this._foregroundElement.appendChild(this._popupElement);//Incorrect argument.
            }
            else
            {
                this._foregroundElement = this._popupElement;
            }
            this._backgroundElement = document.createElement('div');
            this._backgroundElement.id = this.get_id() + '_backgroundElement';
            this._backgroundElement.style.display = 'none';
            this._backgroundElement.style.position = 'fixed';
            this._backgroundElement.style.left = '0px';
            this._backgroundElement.style.top = '0px';
            // Want zIndex to big enough that the background sits above everything else
            // CSS 2.1 defines no bounds for the <integer> type, so pick arbitrarily
            this._backgroundElement.style.zIndex = 10000;
            if (this._BackgroundCssClass) {
                this._backgroundElement.className = this._BackgroundCssClass;
            }
            this._foregroundElement.parentNode.appendChild(this._backgroundElement);//object required

            this._foregroundElement.style.display = 'none';//object required
            this._foregroundElement.style.position = 'fixed';//object required
            this._foregroundElement.style.zIndex = $common.getCurrentStyle(this._backgroundElement, 'zIndex', this._backgroundElement.style.zIndex) + 1;;//object required
            
            this._showHandler = Function.createDelegate(this, this._onShow);
            $addHandler(this.get_element(), 'click', this._showHandler);

            if (this._OkControlID) {
                this._okHandler = Function.createDelegate(this, this._onOk);
                $addHandler($get(this._OkControlID), 'click', this._okHandler);
            }

            if (this._CancelControlID) {
                this._cancelHandler = Function.createDelegate(this, this._onCancel);
                $addHandler($get(this._CancelControlID), 'click', this._cancelHandler);
            }

            this._scrollHandler = Function.createDelegate(this, this._onLayout);
            this._resizeHandler = Function.createDelegate(this, this._onLayout);

            // Need to know when partial updates complete
            this.registerPartialUpdateEvents();
        },

        dispose : function() {
            /// <summary>
            /// Dispose the behavior
            /// </summary>

            // Going away; restore any changes to the page
            this._hideImplementation();

            if (this._foregroundElement && this._foregroundElement.parentNode) {
                // Remove background we added to the DOM
                this._foregroundElement.parentNode.removeChild(this._backgroundElement);

                if(this._DropShadow) {
                    // Remove DIV wrapper added in initialize
                    this._foregroundElement.parentNode.appendChild(this._popupElement);
                    this._foregroundElement.parentNode.removeChild(this._foregroundElement);
                }
            }

            this._scrollHandler = null;
            this._resizeHandler = null;
            if (this._cancelHandler && $get(this._CancelControlID)) {
                $removeHandler($get(this._CancelControlID), 'click', this._cancelHandler);
                this._cancelHandler = null;
            }
            if (this._okHandler && $get(this._OkControlID)) {
                $removeHandler($get(this._OkControlID), 'click', this._okHandler);
                this._okHandler = null;
            }
            if (this._showHandler) {
                $removeHandler(this.get_element(), 'click', this._showHandler);
                this._showHandler = null;
            }
            
            AjaxControlToolkit.ModalPopupBehavior.callBaseMethod(this, 'dispose');
        },

        _attachPopup : function() {
            /// <summary>
            /// Attach the event handlers for the popup
            /// </summary>

            if (this._DropShadow && !this._dropShadowBehavior) {
                this._dropShadowBehavior = $create(AjaxControlToolkit.DropShadowBehavior, {}, null, null, this._popupElement);
            }
            if (this._dragHandleElement && !this._dragBehavior) {
                this._dragBehavior = $create(AjaxControlToolkit.FloatingBehavior, {"handle" : this._dragHandleElement}, null, null, this._foregroundElement);
            }        
                    
            $addHandler(window, 'resize', this._resizeHandler);
            $addHandler(window, 'scroll', this._scrollHandler);
            this._windowHandlersAttached = true;
        },

        _detachPopup : function() {
            /// <summary>
            /// Detach the event handlers for the popup
            /// </summary>

            if (this._windowHandlersAttached) {
                if (this._scrollHandler) {
                    $removeHandler(window, 'scroll', this._scrollHandler);
                }
                if (this._resizeHandler) {
                    $removeHandler(window, 'resize', this._resizeHandler);
                }
                this._windowHandlersAttached = false;
            }
            
            if (this._dragBehavior) {
                this._dragBehavior.dispose();
                this._dragBehavior = null;
            }       
            
            if (this._dropShadowBehavior) {
                this._dropShadowBehavior.dispose();
                this._dropShadowBehavior = null;
            }
        },

        _onShow : function(e) {
            /// <summary>
            /// Handler for the target's click event
            /// </summary>
            /// <param name="e" type="Sys.UI.DomEvent">
            /// Event info
            /// </param>

            if (!this.get_element().disabled) {
                this.show();
                e.preventDefault();
                return false;
            }
        },

        _onOk : function(e) {
            /// <summary>
            /// Handler for the modal dialog's OK button click
            /// </summary>
            /// <param name="e" type="Sys.UI.DomEvent">
            /// Event info
            /// </param>

            var element = $get(this._OkControlID);
            if (element && !element.disabled) {
                if (this.hide() && this._OnOkScript) {
                    window.setTimeout(this._OnOkScript, 0);
                }
                e.preventDefault();
                return false;
            }
        },

        _onCancel : function(e) {
            /// <summary>
            /// Handler for the modal dialog's Cancel button click
            /// </summary>
            /// <param name="e" type="Sys.UI.DomEvent">
            /// Event info
            /// </param>

            var element = $get(this._CancelControlID);
            if (element && !element.disabled) {
                if (this.hide() && this._OnCancelScript) {
                    window.setTimeout(this._OnCancelScript, 0);
                }
                e.preventDefault();
                return false;
            }
        },

        _onLayout : function(e) {
            /// <summary>
            /// Handler for scrolling and resizing events that would require a repositioning of the modal dialog
            /// </summary>
            /// <param name="e" type="Sys.UI.DomEvent">
            /// Event info
            /// </param>
            var positioning = this.get_repositionMode();
            if (((positioning === AjaxControlToolkit.ModalPopupRepositionMode.RepositionOnWindowScroll) ||
                (positioning === AjaxControlToolkit.ModalPopupRepositionMode.RepositionOnWindowResizeAndScroll)) && (e.type === 'scroll')) {
                this._layout();
            } else if (((positioning === AjaxControlToolkit.ModalPopupRepositionMode.RepositionOnWindowResize) ||
                (positioning === AjaxControlToolkit.ModalPopupRepositionMode.RepositionOnWindowResizeAndScroll)) && (e.type === 'resize')) {
                this._layout();
            } else {
                // Layout background element again to make sure it covers the whole background.
                // This needs to be called separately since _layout will not be always called
                // to reposition the popup depending on the RepositionMode but the background needs
                // to handle the resize/scroll every time.
                this._layoutBackgroundElement();
            }
        },

        show : function() {
            /// <summary>
            /// Display the element referenced by PopupControlID as a modal dialog
            /// </summary>
            
            var eventArgs = new Sys.CancelEventArgs();
            this.raiseShowing(eventArgs);
            if (eventArgs.get_cancel()) {
                return;
            }
            
            this.populate();
            this._attachPopup();

            this._backgroundElement.style.display = '';
            this._foregroundElement.style.display = '';
            this._popupElement.style.display = '';
            if (this._isIE6) {
                this._foregroundElement.style.position = 'absolute';
                this._backgroundElement.style.position = 'absolute';
                // find the relative or absolute parent
                var tempRelativeOrAbsoluteParent = this._foregroundElement.parentNode;
                while (tempRelativeOrAbsoluteParent && (tempRelativeOrAbsoluteParent != document.documentElement)) {
                    if((tempRelativeOrAbsoluteParent.style.position != 'relative') && (tempRelativeOrAbsoluteParent.style.position != 'absolute')) {
                        tempRelativeOrAbsoluteParent = tempRelativeOrAbsoluteParent.parentNode;
                    } else {
                        this._relativeOrAbsoluteParentElement = tempRelativeOrAbsoluteParent;
                        break;
                    }
                }                       
            }        


            // Disable TAB
            this.disableTab();

            this._layout();
            // On pages that don't need scrollbars, Firefox and Safari act like
            // one or both are present the first time the layout code runs which
            // obviously leads to display issues - run the layout code a second
            // time to work around this problem
            this._layout();
            
            this.raiseShown(Sys.EventArgs.Empty);
        },

        disableTab : function() {
            /// <summary>
            /// Change the tab indices so we only tab through the modal popup
            /// (and hide SELECT tags in IE6)
            /// </summary>

            var i = 0;
            var tagElements;
            var tagElementsInPopUp = new Array();
            Array.clear(this._saveTabIndexes);

            //Save all popup's tag in tagElementsInPopUp
            for (var j = 0; j < this._tagWithTabIndex.length; j++) {
                tagElements = this._foregroundElement.getElementsByTagName(this._tagWithTabIndex[j]);
                for (var k = 0 ; k < tagElements.length; k++) {
                    tagElementsInPopUp[i] = tagElements[k];
                    i++;
                }
            }

            i = 0;
            for (var j = 0; j < this._tagWithTabIndex.length; j++) {
                tagElements = document.getElementsByTagName(this._tagWithTabIndex[j]);
                for (var k = 0 ; k < tagElements.length; k++) {
                    if (Array.indexOf(tagElementsInPopUp, tagElements[k]) == -1)  {
                        this._saveTabIndexes[i] = {tag: tagElements[k], index: tagElements[k].tabIndex};
                        tagElements[k].tabIndex="-1";
                        i++;
                    }
                }
            }

            //IE6 Bug with SELECT element always showing up on top
            i = 0;
            if ((Sys.Browser.agent === Sys.Browser.InternetExplorer) && (Sys.Browser.version < 7)) {
                //Save SELECT in PopUp
                var tagSelectInPopUp = new Array();
                for (var j = 0; j < this._tagWithTabIndex.length; j++) {
                    tagElements = this._foregroundElement.getElementsByTagName('SELECT');
                    for (var k = 0 ; k < tagElements.length; k++) {
                        tagSelectInPopUp[i] = tagElements[k];
                        i++;
                    }
                }

                i = 0;
                Array.clear(this._saveDesableSelect);
                tagElements = document.getElementsByTagName('SELECT');
                for (var k = 0 ; k < tagElements.length; k++) {
                    if (Array.indexOf(tagSelectInPopUp, tagElements[k]) == -1)  {
                        this._saveDesableSelect[i] = {tag: tagElements[k], visib: $common.getCurrentStyle(tagElements[k], 'visibility')} ;
                        tagElements[k].style.visibility = 'hidden';
                        i++;
                    }
                }
            }
        },

        restoreTab : function() {
            /// <summary>
            /// Restore the tab indices so we tab through the page like normal
            /// (and restore SELECT tags in IE6)
            /// </summary>

            for (var i = 0; i < this._saveTabIndexes.length; i++) {
                this._saveTabIndexes[i].tag.tabIndex = this._saveTabIndexes[i].index;
            }
            Array.clear(this._saveTabIndexes);

            //IE6 Bug with SELECT element always showing up on top
            if ((Sys.Browser.agent === Sys.Browser.InternetExplorer) && (Sys.Browser.version < 7)) {
                for (var k = 0 ; k < this._saveDesableSelect.length; k++) {
                    this._saveDesableSelect[k].tag.style.visibility = this._saveDesableSelect[k].visib;
                }
                Array.clear(this._saveDesableSelect);
            }
        },

        hide : function() {
            /// <summary>
            /// Hide the modal dialog
            /// </summary>
            /// <returns type="Boolean" mayBeNull="false">
            /// Whether or not the dialog was hidden
            /// </returns>

            var eventArgs = new Sys.CancelEventArgs();
            this.raiseHiding(eventArgs);
            if (eventArgs.get_cancel()) {
                return false;
            }

            this._hideImplementation();

            this.raiseHidden(Sys.EventArgs.Empty);
            return true;
        },

        _hideImplementation : function() {
            /// <summary>
            /// Internal implementation to hide the modal dialog
            /// </summary>

            this._backgroundElement.style.display = 'none';
            this._foregroundElement.style.display = 'none';

            this.restoreTab();

            this._detachPopup();
        },

        _layout : function() {
            /// <summary>
            /// Position the modal dialog
            /// </summary>
            var scrollLeft = (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft);
            var scrollTop = (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
                   
            var clientBounds = $common.getClientBounds();
            var clientWidth = clientBounds.width;
            var clientHeight = clientBounds.height;
            
            // Setup the location of the background element
            this._layoutBackgroundElement();

            var xCoord = 0;
            var yCoord = 0;
            if(this._xCoordinate < 0) {
                var foregroundelementwidth = this._foregroundElement.offsetWidth? this._foregroundElement.offsetWidth: this._foregroundElement.scrollWidth;
                xCoord = ((clientWidth-foregroundelementwidth)/2);
                // workaround for drag behavior which calls setlocation which in turn
                // changes the position of the panel to be absolute and requiring us
                // to add the scrollLeft so that it is positioned correctly.
                if (this._foregroundElement.style.position == 'absolute') {
                    xCoord += scrollLeft;
                }
                this._foregroundElement.style.left = xCoord + 'px';
                
            } else {
                if(this._isIE6) {
                    this._foregroundElement.style.left = (this._xCoordinate + scrollLeft) + 'px';
                    xCoord = this._xCoordinate + scrollLeft;
                }
                else {
                    this._foregroundElement.style.left = this._xCoordinate + 'px';
                    xCoord = this._xCoordinate;
                }
            }
            if(this._yCoordinate < 0) {
                var foregroundelementheight = this._foregroundElement.offsetHeight? this._foregroundElement.offsetHeight: this._foregroundElement.scrollHeight;
                yCoord = ((clientHeight-foregroundelementheight)/2);           
                // workaround for drag behavior which calls setlocation which in turn
                // changes the position of the panel to be absolute and requiring us
                // to add the scrollLeft so that it is positioned correctly.
                if (this._foregroundElement.style.position == 'absolute') {
                    yCoord += scrollTop;
                }
                this._foregroundElement.style.top = yCoord + 'px';
              
            } else {
                if(this._isIE6) {
                    this._foregroundElement.style.top = (this._yCoordinate + scrollTop) + 'px';
                    yCoord = this._yCoordinate + scrollTop;
                }
                else {
                    this._foregroundElement.style.top = this._yCoordinate + 'px';
                    yCoord = this._yCoordinate;
                }
            }

            // make sure get location agrees with the location of the foreground element
            this._layoutForegroundElement(xCoord, yCoord);
            
            if (this._dropShadowBehavior) {
                this._dropShadowBehavior.setShadow();
                window.setTimeout(Function.createDelegate(this, this._fixupDropShadowBehavior), 0);
            }
            
            // layout background element again to make sure it covers the whole background
            // in case things moved around when laying out the foreground element
            this._layoutBackgroundElement();
        },
        
        _layoutForegroundElement : function(xCoord, yCoord) {
            /// <summary>
            /// Set the correct location of the foreground element to ensure that it is absolutely
            /// positioned with respect to the browser. This is just a workaround for IE 6 since
            /// elements nested in relative parents cause modal popup positioning issues and 'fixed'
            /// is not supported by IE 6. Hence we manually compute the right location of the popup.
            /// </summary>
            /// <param name="xCoord" type="Number" integer="true" maybenull="false">
            /// <param name="yCoord" type="Number" integer="true" maybenull="false">        
            /// </params>
            
            if (this._isIE6 && this._relativeOrAbsoluteParentElement) {
                var foregroundLocation = $common.getLocation(this._foregroundElement);  
                var relativeParentLocation = $common.getLocation(this._relativeOrAbsoluteParentElement);
                var getLocationXCoord = foregroundLocation.x;
                if (getLocationXCoord != xCoord) {
                    // offset it by that amount
                    this._foregroundElement.style.left = (xCoord - relativeParentLocation.x) + 'px';
                }
                            
                var getLocationYCoord = foregroundLocation.y;
                if (getLocationYCoord != yCoord) {
                    // offset it by that amount
                    this._foregroundElement.style.top = (yCoord - relativeParentLocation.y) + 'px';
                }
            }
        },
        
        _layoutBackgroundElement : function() {
            /// <summary>
            /// Set the correct location of the background element to ensure that it is absolutely
            /// positioned with respect to the browser.
            /// </summary>

            // Background element needs to cover the visible client area completely hence its
            // top and left coordinates need to be 0, and if relatively positioned its getlocation
            // value needs to be 0.
            if(this._isIE6) {
                var backgroundLocation = $common.getLocation(this._backgroundElement);
                var backgroundXCoord = backgroundLocation.x;
                if (backgroundXCoord != 0) {
                    // offset it by that amount. This is assuming only one level of nesting. If
                    // multiple parents with absolute/relative positioning are setup this may not
                    // cover the whole background.
                    this._backgroundElement.style.left = (-backgroundXCoord) + 'px';
                }
                
                var backgroundYCoord = backgroundLocation.y;
                if (backgroundYCoord != 0) {
                    // offset it by that amount. This is assuming only one level of nesting. If
                    // multiple parents with absolute/relative positioning are setup this may not
                    // cover the whole background.
                    this._backgroundElement.style.top = (-backgroundYCoord) + 'px';
                }         
            }
            var clientBounds = $common.getClientBounds();
            var clientWidth = clientBounds.width;
            var clientHeight = clientBounds.height;
            this._backgroundElement.style.width = Math.max(Math.max(document.documentElement.scrollWidth, document.body.scrollWidth), clientWidth)+'px';
            this._backgroundElement.style.height = Math.max(Math.max(document.documentElement.scrollHeight, document.body.scrollHeight), clientHeight)+'px';
        },

        _fixupDropShadowBehavior : function() {
            /// <summary>
            /// Some browsers don't update the location values immediately, so
            /// the location of the drop shadow would always be a step behind
            /// without this method
            /// </summary>

            if (this._dropShadowBehavior) {
                this._dropShadowBehavior.setShadow();
            }
        },

        _partialUpdateEndRequest : function(sender, endRequestEventArgs) {
            /// <summary>
            /// Show the popup if requested during a partial postback
            /// </summary>
            /// <param name="sender" type="Object">
            /// Sender
            /// </param>
            /// <param name="endRequestEventArgs" type="Sys.WebForms.EndRequestEventArgs">
            /// Event arguments
            /// </param>
            /// <returns />
            AjaxControlToolkit.ModalPopupBehavior.callBaseMethod(this, '_partialUpdateEndRequest', [sender, endRequestEventArgs]);

            if (this.get_element()) {
                // Look up result by element's ID
                var action = endRequestEventArgs.get_dataItems()[this.get_element().id];
                if ("show" == action) {
                    this.show();
                } else if ("hide" == action) {
                    this.hide();
                }
            }

            // Async postback may have added content; re-layout to accomodate it
            this._layout();
        },

        _onPopulated : function(sender, eventArgs) {
            /// <summary>
            /// Re-layout the popup after we've dynamically populated
            /// </summary>
            /// <param name="sender" type="Object">
            /// Sender
            /// </param>
            /// <param name="eventArgs" type="Sys.EventArgs">
            /// Event arguments
            /// </param>
            /// <returns />
            AjaxControlToolkit.ModalPopupBehavior.callBaseMethod(this, '_onPopulated', [sender, eventArgs]);

            // Dynamic populate may have added content; re-layout to accomodate it
            this._layout();
        },
        
        get_PopupControlID : function() {
            /// <value type="String">
            /// The ID of the element to display as a modal popup
            /// </value>
            return this._PopupControlID;
        },
        set_PopupControlID : function(value) {
            if (this._PopupControlID != value) {
                this._PopupControlID = value;
                this.raisePropertyChanged('PopupControlID');
            }
        },

        get_X: function() {
            /// <value type="Number" integer="true">
            /// The number of pixels from the left of the browser to position the modal popup.
            /// </value>
            return this._xCoordinate;
        },
        set_X: function(value) {
            if (this._xCoordinate != value) {
                this._xCoordinate = value;
                this.raisePropertyChanged('X');
            }
        },

        get_Y: function() {
            /// <value type="Number" integer="true">
            /// The number of pixels from the top of the browser to position the modal popup.
            /// </value>
            return this._yCoordinate;
        },
        set_Y: function(value) {
            if (this._yCoordinate != value) {
                this._yCoordinate = value;
                this.raisePropertyChanged('Y');
            }
        },
           
        get_PopupDragHandleControlID : function() {
            /// <value type="String">
            /// The ID of the element to display as the drag handle for the modal popup
            /// </value>
            return this._PopupDragHandleControlID;
        },
        set_PopupDragHandleControlID : function(value) {
            if (this._PopupDragHandleControlID != value) {
                this._PopupDragHandleControlID = value;
                this.raisePropertyChanged('PopupDragHandleControlID');
            }
        },

        get_BackgroundCssClass : function() {
            /// <value type="String">
            /// The CSS class to apply to the background when the modal popup is displayed
            /// </value>
            return this._BackgroundCssClass;
        },
        set_BackgroundCssClass : function(value) {
            if (this._BackgroundCssClass != value) {
                this._BackgroundCssClass = value;
                this.raisePropertyChanged('BackgroundCssClass');
            }
        },

        get_DropShadow : function() {
            /// <value type="Boolean">
            /// Whether or not a drop-shadow should be added to the modal popup
            /// </value>
            return this._DropShadow;
        },
        set_DropShadow : function(value) {
            if (this._DropShadow != value) {
                this._DropShadow = value;
                this.raisePropertyChanged('DropShadow');
            }
        },

        get_Drag : function() {
            /// <value type="Boolean">
            /// Obsolete: Setting the _Drag property is a noop
            /// </value>
            return this._Drag;
        },
        set_Drag : function(value) {
            if (this._Drag != value) {
                this._Drag = value;
                this.raisePropertyChanged('Drag');
            }
        },

        get_OkControlID : function() {
            /// <value type="String">
            /// The ID of the element that dismisses the modal popup
            /// </value>
            return this._OkControlID;
        },
        set_OkControlID : function(value) {
            if (this._OkControlID != value) {
                this._OkControlID = value;
                this.raisePropertyChanged('OkControlID');
            }
        },

        get_CancelControlID : function() {
            /// <value type="String">
            /// The ID of the element that cancels the modal popup
            /// </value>
            return this._CancelControlID;
        },
        set_CancelControlID : function(value) {
            if (this._CancelControlID != value) {
                this._CancelControlID = value;
                this.raisePropertyChanged('CancelControlID');
            }
        },

        get_OnOkScript : function() {
            /// <value type="String">
            /// Script to run when the modal popup is dismissed with the OkControlID
            /// </value>
            return this._OnOkScript;
        },
        set_OnOkScript : function(value) {
            if (this._OnOkScript != value) {
                this._OnOkScript = value;
                this.raisePropertyChanged('OnOkScript');
            }
        },

        get_OnCancelScript : function() {
            /// <value type="String">
            /// Script to run when the modal popup is dismissed with the CancelControlID
            /// </value>
            return this._OnCancelScript;
        },
        set_OnCancelScript : function(value) {
            if (this._OnCancelScript != value) {
                this._OnCancelScript = value;
                this.raisePropertyChanged('OnCancelScript');
            }
        },

        get_repositionMode : function() {
            /// <value type="AjaxControlToolkit.ModalPopupRepositionMode">
            /// Determines if the ModalPopup should be repositioned on window resize/scroll
            /// </value>
            return this._repositionMode;
        },
        set_repositionMode : function(value) {
            if (this._repositionMode !== value) {
                this._repositionMode = value;
                this.raisePropertyChanged('RepositionMode');
            }
        },
        
        add_showing : function(handler) {
            /// <summary>
            /// Add an event handler for the showing event
            /// </summary>
            /// <param name="handler" type="Function" mayBeNull="false">
            /// Event handler
            /// </param>
            /// <returns />
            this.get_events().addHandler('showing', handler);
        },
        remove_showing : function(handler) {
            /// <summary>
            /// Remove an event handler from the showing event
            /// </summary>
            /// <param name="handler" type="Function" mayBeNull="false">
            /// Event handler
            /// </param>
            /// <returns />
            this.get_events().removeHandler('showing', handler);
        },
        raiseShowing : function(eventArgs) {
            /// <summary>
            /// Raise the showing event
            /// </summary>
            /// <param name="eventArgs" type="Sys.CancelEventArgs" mayBeNull="false">
            /// Event arguments for the showing event
            /// </param>
            /// <returns />
            
            var handler = this.get_events().getHandler('showing');
            if (handler) {
                handler(this, eventArgs);
            }
        },
        
        add_shown : function(handler) {
            /// <summary>
            /// Add an event handler for the shown event
            /// </summary>
            /// <param name="handler" type="Function" mayBeNull="false">
            /// Event handler
            /// </param>
            /// <returns />
            this.get_events().addHandler('shown', handler);
        },
        remove_shown : function(handler) {
            /// <summary>
            /// Remove an event handler from the shown event
            /// </summary>
            /// <param name="handler" type="Function" mayBeNull="false">
            /// Event handler
            /// </param>
            /// <returns />
            this.get_events().removeHandler('shown', handler);
        },
        raiseShown : function(eventArgs) {
            /// <summary>
            /// Raise the shown event
            /// </summary>
            /// <param name="eventArgs" type="Sys.EventArgs" mayBeNull="false">
            /// Event arguments for the shown event
            /// </param>
            /// <returns />
            
            var handler = this.get_events().getHandler('shown');
            if (handler) {
                handler(this, eventArgs);
            }
        },
        
        add_hiding : function(handler) {
            /// <summary>
            /// Add an event handler for the hiding event
            /// </summary>
            /// <param name="handler" type="Function" mayBeNull="false">
            /// Event handler
            /// </param>
            /// <returns />
            this.get_events().addHandler('hiding', handler);
        },
        remove_hiding : function(handler) {
            /// <summary>
            /// Remove an event handler from the hiding event
            /// </summary>
            /// <param name="handler" type="Function" mayBeNull="false">
            /// Event handler
            /// </param>
            /// <returns />
            this.get_events().removeHandler('hiding', handler);
        },
        raiseHiding : function(eventArgs) {
            /// <summary>
            /// Raise the hiding event
            /// </summary>
            /// <param name="eventArgs" type="Sys.CancelEventArgs" mayBeNull="false">
            /// Event arguments for the hiding event
            /// </param>
            /// <returns />
            
            var handler = this.get_events().getHandler('hiding');
            if (handler) {
                handler(this, eventArgs);
            }
        },
        
        add_hidden : function(handler) {
            /// <summary>
            /// Add an event handler for the hidden event
            /// </summary>
            /// <param name="handler" type="Function" mayBeNull="false">
            /// Event handler
            /// </param>
            /// <returns />
            this.get_events().addHandler('hidden', handler);
        },
        remove_hidden : function(handler) {
            /// <summary>
            /// Remove an event handler from the hidden event
            /// </summary>
            /// <param name="handler" type="Function" mayBeNull="false">
            /// Event handler
            /// </param>
            /// <returns />
            this.get_events().removeHandler('hidden', handler);
        },
        raiseHidden : function(eventArgs) {
            /// <summary>
            /// Raise the hidden event
            /// </summary>
            /// <param name="eventArgs" type="Sys.EventArgs" mayBeNull="false">
            /// Event arguments for the hidden event
            /// </param>
            /// <returns />
            
            var handler = this.get_events().getHandler('hidden');
            if (handler) {
                handler(this, eventArgs);
            }
        }
    }
    AjaxControlToolkit.ModalPopupBehavior.registerClass('AjaxControlToolkit.ModalPopupBehavior', AjaxControlToolkit.DynamicPopulateBehaviorBase);

    AjaxControlToolkit.ModalPopupBehavior.invokeViaServer = function(behaviorID, show) {
        /// <summary>
        /// This static function (that is intended to be called from script emitted
        /// on the server) will show or hide the behavior associated with behaviorID
        /// (i.e. to use this, the ModalPopupExtender must have an ID or BehaviorID) and
        /// will either show or hide depending on the show parameter.
        /// </summary>
        /// <param name="behaviorID" type="String">
        /// ID of the modal popup behavior
        /// </param>
        /// <param name="show" type="Boolean">
        /// Whether to show or hide the modal popup
        /// </param>
        var behavior = $find(behaviorID);
        if (behavior) {
            if (show) {
                behavior.show();
            } else {
                behavior.hide();
            }
        }
    }

    if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
     ///////////////////////////////----------------------------------------------////////////////////////////////////////
    // (c) Copyright Microsoft Corporation.
    // This source is subject to the Microsoft Permissive License.
    // See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
    // All other rights reserved.


    /// <reference name="MicrosoftAjax.debug.js" />
    /// <reference name="MicrosoftAjaxTimer.debug.js" />
    /// <reference name="MicrosoftAjaxWebForms.debug.js" />
    /// <reference path="../ExtenderBase/BaseScripts.js" />
    /// <reference path="../Common/Common.js" />
    /// <reference path="../DynamicPopulate/DynamicPopulateBehavior.js" />
    /// <reference path="../RoundedCorners/RoundedCornersBehavior.js" />
    /// <reference path="../Compat/Timer/Timer.js" />
    /// <reference path="../DropShadow/DropShadowBehavior.js" />
    /// <reference path="../Compat/DragDrop/DragDropScripts.js" />
    /// <reference path="../DragPanel/FloatingBehavior.js" />


    Type.registerNamespace('AjaxControlToolkit');

    AjaxControlToolkit.ModalPopupRepositionMode = function() {
        /// <summary>
        /// The ModalPopupRepositionMode enumeration describes how the modal popup repositions
        /// </summary>
        /// <field name="None" type="Number" integer="true" />
        /// <field name="RepositionOnWindowResize" type="Number" integer="true" />
        /// <field name="RepositionOnWindowScroll" type="Number" integer="true" />
        /// <field name="RepositionOnWindowResizeAndScroll" type="Number" integer="true" />
        throw Error.invalidOperation();
    }
    AjaxControlToolkit.ModalPopupRepositionMode.prototype = {
        None : 0,
        RepositionOnWindowResize : 1,
        RepositionOnWindowScroll : 2,
        RepositionOnWindowResizeAndScroll : 3
    }
    AjaxControlToolkit.ModalPopupRepositionMode.registerEnum('AjaxControlToolkit.ModalPopupRepositionMode');


    AjaxControlToolkit.ModalPopupBehavior = function(element) {
        /// <summary>
        /// The ModalPopupBehavior is used to display the target element as a modal dialog
        /// </summary>
        /// <param name="element" type="Sys.UI.DomElement" domElement="true">
        /// DOM Element the behavior is associated with
        /// </param>
        AjaxControlToolkit.ModalPopupBehavior.initializeBase(this, [element]);
        
        // Properties
        this._PopupControlID = null;
        this._PopupDragHandleControlID = null;
        this._BackgroundCssClass = null;
        this._DropShadow = false;
        this._Drag = false;    
        this._OkControlID = null;
        this._CancelControlID = null;
        this._OnOkScript = null;
        this._OnCancelScript = null;
        this._xCoordinate = -1;
        this._yCoordinate = -1;
        this._repositionMode = AjaxControlToolkit.ModalPopupRepositionMode.RepositionOnWindowResizeAndScroll;

        // Variables
        this._backgroundElement = null;
        this._foregroundElement = null;
        this._relativeOrAbsoluteParentElement = null;
        this._popupElement = null;
        this._dragHandleElement = null;
        this._showHandler = null;
        this._okHandler = null;
        this._cancelHandler = null;
        this._scrollHandler = null;
        this._resizeHandler = null;
        this._windowHandlersAttached = false;
        this._dropShadowBehavior = null;
        this._dragBehavior = null;
        this._isIE6 = false;

        this._saveTabIndexes = new Array();
        this._saveDesableSelect = new Array();
        this._tagWithTabIndex = new Array('A','AREA','BUTTON','INPUT','OBJECT','SELECT','TEXTAREA','IFRAME');
    }
    AjaxControlToolkit.ModalPopupBehavior.prototype = {
        initialize : function() {
            /// <summary>
            /// Initialize the behavior
            /// </summary>
            
            /*
                <div superpopup - drag container resizable><div -- drag handle\dropshadow foreground></div></div>
            */
            AjaxControlToolkit.ModalPopupBehavior.callBaseMethod(this, 'initialize');
            this._isIE6 = (Sys.Browser.agent == Sys.Browser.InternetExplorer && Sys.Browser.version < 7);
            if(this._PopupDragHandleControlID)
                this._dragHandleElement = $get(this._PopupDragHandleControlID);

            this._popupElement = $get(this._PopupControlID);
            if(this._DropShadow)
            {
                this._foregroundElement = document.createElement('div');
                this._foregroundElement.id = this.get_id() + '_foregroundElement';
                this._popupElement.parentNode.appendChild(this._foregroundElement);
                this._foregroundElement.appendChild(this._popupElement);
            }
            else
            {
                this._foregroundElement = this._popupElement;
            }
            this._backgroundElement = document.createElement('div');
            this._backgroundElement.id = this.get_id() + '_backgroundElement';
            this._backgroundElement.style.display = 'none';
            this._backgroundElement.style.position = 'fixed';
            this._backgroundElement.style.left = '0px';
            this._backgroundElement.style.top = '0px';
            // Want zIndex to big enough that the background sits above everything else
            // CSS 2.1 defines no bounds for the <integer> type, so pick arbitrarily
            this._backgroundElement.style.zIndex = 10000;
            if (this._BackgroundCssClass) {
                this._backgroundElement.className = this._BackgroundCssClass;
            }
            this._foregroundElement.parentNode.appendChild(this._backgroundElement);

            this._foregroundElement.style.display = 'none';
            this._foregroundElement.style.position = 'fixed';
            this._foregroundElement.style.zIndex = $common.getCurrentStyle(this._backgroundElement, 'zIndex', this._backgroundElement.style.zIndex) + 1;
            
            this._showHandler = Function.createDelegate(this, this._onShow);
            $addHandler(this.get_element(), 'click', this._showHandler);

            if (this._OkControlID) {
                this._okHandler = Function.createDelegate(this, this._onOk);
                $addHandler($get(this._OkControlID), 'click', this._okHandler);
            }

            if (this._CancelControlID) {
                this._cancelHandler = Function.createDelegate(this, this._onCancel);
                $addHandler($get(this._CancelControlID), 'click', this._cancelHandler);
            }

            this._scrollHandler = Function.createDelegate(this, this._onLayout);
            this._resizeHandler = Function.createDelegate(this, this._onLayout);

            // Need to know when partial updates complete
            this.registerPartialUpdateEvents();
        },

        dispose : function() {
            /// <summary>
            /// Dispose the behavior
            /// </summary>

            // Going away; restore any changes to the page
            this._hideImplementation();

            if (this._foregroundElement && this._foregroundElement.parentNode) {
                // Remove background we added to the DOM
                this._foregroundElement.parentNode.removeChild(this._backgroundElement);

                if(this._DropShadow) {
                    // Remove DIV wrapper added in initialize
                    this._foregroundElement.parentNode.appendChild(this._popupElement);
                    this._foregroundElement.parentNode.removeChild(this._foregroundElement);
                }
            }

            this._scrollHandler = null;
            this._resizeHandler = null;
            if (this._cancelHandler && $get(this._CancelControlID)) {
                $removeHandler($get(this._CancelControlID), 'click', this._cancelHandler);
                this._cancelHandler = null;
            }
            if (this._okHandler && $get(this._OkControlID)) {
                $removeHandler($get(this._OkControlID), 'click', this._okHandler);
                this._okHandler = null;
            }
            if (this._showHandler) {
                $removeHandler(this.get_element(), 'click', this._showHandler);
                this._showHandler = null;
            }
            
            AjaxControlToolkit.ModalPopupBehavior.callBaseMethod(this, 'dispose');
        },

        _attachPopup : function() {
            /// <summary>
            /// Attach the event handlers for the popup
            /// </summary>

            if (this._DropShadow && !this._dropShadowBehavior) {
                this._dropShadowBehavior = $create(AjaxControlToolkit.DropShadowBehavior, {}, null, null, this._popupElement);
            }
            if (this._dragHandleElement && !this._dragBehavior) {
                this._dragBehavior = $create(AjaxControlToolkit.FloatingBehavior, {"handle" : this._dragHandleElement}, null, null, this._foregroundElement);
            }        
                    
            $addHandler(window, 'resize', this._resizeHandler);
            $addHandler(window, 'scroll', this._scrollHandler);
            this._windowHandlersAttached = true;
        },

        _detachPopup : function() {
            /// <summary>
            /// Detach the event handlers for the popup
            /// </summary>

            if (this._windowHandlersAttached) {
                if (this._scrollHandler) {
                    $removeHandler(window, 'scroll', this._scrollHandler);
                }
                if (this._resizeHandler) {
                    $removeHandler(window, 'resize', this._resizeHandler);
                }
                this._windowHandlersAttached = false;
            }
            
            if (this._dragBehavior) {
                this._dragBehavior.dispose();
                this._dragBehavior = null;
            }       
            
            if (this._dropShadowBehavior) {
                this._dropShadowBehavior.dispose();
                this._dropShadowBehavior = null;
            }
        },

        _onShow : function(e) {
            /// <summary>
            /// Handler for the target's click event
            /// </summary>
            /// <param name="e" type="Sys.UI.DomEvent">
            /// Event info
            /// </param>

            if (!this.get_element().disabled) {
                this.show();
                e.preventDefault();
                return false;
            }
        },

        _onOk : function(e) {
            /// <summary>
            /// Handler for the modal dialog's OK button click
            /// </summary>
            /// <param name="e" type="Sys.UI.DomEvent">
            /// Event info
            /// </param>

            var element = $get(this._OkControlID);
            if (element && !element.disabled) {
                if (this.hide() && this._OnOkScript) {
                    window.setTimeout(this._OnOkScript, 0);
                }
                e.preventDefault();
                return false;
            }
        },

        _onCancel : function(e) {
            /// <summary>
            /// Handler for the modal dialog's Cancel button click
            /// </summary>
            /// <param name="e" type="Sys.UI.DomEvent">
            /// Event info
            /// </param>

            var element = $get(this._CancelControlID);
            if (element && !element.disabled) {
                if (this.hide() && this._OnCancelScript) {
                    window.setTimeout(this._OnCancelScript, 0);
                }
                e.preventDefault();
                return false;
            }
        },

        _onLayout : function(e) {
            /// <summary>
            /// Handler for scrolling and resizing events that would require a repositioning of the modal dialog
            /// </summary>
            /// <param name="e" type="Sys.UI.DomEvent">
            /// Event info
            /// </param>
            var positioning = this.get_repositionMode();
            if (((positioning === AjaxControlToolkit.ModalPopupRepositionMode.RepositionOnWindowScroll) ||
                (positioning === AjaxControlToolkit.ModalPopupRepositionMode.RepositionOnWindowResizeAndScroll)) && (e.type === 'scroll')) {
                this._layout();
            } else if (((positioning === AjaxControlToolkit.ModalPopupRepositionMode.RepositionOnWindowResize) ||
                (positioning === AjaxControlToolkit.ModalPopupRepositionMode.RepositionOnWindowResizeAndScroll)) && (e.type === 'resize')) {
                this._layout();
            } else {
                // Layout background element again to make sure it covers the whole background.
                // This needs to be called separately since _layout will not be always called
                // to reposition the popup depending on the RepositionMode but the background needs
                // to handle the resize/scroll every time.
                this._layoutBackgroundElement();
            }
        },

        show : function() {
            /// <summary>
            /// Display the element referenced by PopupControlID as a modal dialog
            /// </summary>
            
            var eventArgs = new Sys.CancelEventArgs();
            this.raiseShowing(eventArgs);
            if (eventArgs.get_cancel()) {
                return;
            }
            
            this.populate();
            this._attachPopup();

            this._backgroundElement.style.display = '';
            this._foregroundElement.style.display = '';
            this._popupElement.style.display = '';
            if (this._isIE6) {
                this._foregroundElement.style.position = 'absolute';
                this._backgroundElement.style.position = 'absolute';
                // find the relative or absolute parent
                var tempRelativeOrAbsoluteParent = this._foregroundElement.parentNode;
                while (tempRelativeOrAbsoluteParent && (tempRelativeOrAbsoluteParent != document.documentElement)) {
                    if((tempRelativeOrAbsoluteParent.style.position != 'relative') && (tempRelativeOrAbsoluteParent.style.position != 'absolute')) {
                        tempRelativeOrAbsoluteParent = tempRelativeOrAbsoluteParent.parentNode;
                    } else {
                        this._relativeOrAbsoluteParentElement = tempRelativeOrAbsoluteParent;
                        break;
                    }
                }                       
            }        


            // Disable TAB
            this.disableTab();

            this._layout();
            // On pages that don't need scrollbars, Firefox and Safari act like
            // one or both are present the first time the layout code runs which
            // obviously leads to display issues - run the layout code a second
            // time to work around this problem
            this._layout();
            
            this.raiseShown(Sys.EventArgs.Empty);
        },

        disableTab : function() {
            /// <summary>
            /// Change the tab indices so we only tab through the modal popup
            /// (and hide SELECT tags in IE6)
            /// </summary>

            var i = 0;
            var tagElements;
            var tagElementsInPopUp = new Array();
            Array.clear(this._saveTabIndexes);

            //Save all popup's tag in tagElementsInPopUp
            for (var j = 0; j < this._tagWithTabIndex.length; j++) {
                tagElements = this._foregroundElement.getElementsByTagName(this._tagWithTabIndex[j]);
                for (var k = 0 ; k < tagElements.length; k++) {
                    tagElementsInPopUp[i] = tagElements[k];
                    i++;
                }
            }

            i = 0;
            for (var j = 0; j < this._tagWithTabIndex.length; j++) {
                tagElements = document.getElementsByTagName(this._tagWithTabIndex[j]);
                for (var k = 0 ; k < tagElements.length; k++) {
                    if (Array.indexOf(tagElementsInPopUp, tagElements[k]) == -1)  {
                        this._saveTabIndexes[i] = {tag: tagElements[k], index: tagElements[k].tabIndex};
                        tagElements[k].tabIndex="-1";
                        i++;
                    }
                }
            }

            //IE6 Bug with SELECT element always showing up on top
            i = 0;
            if ((Sys.Browser.agent === Sys.Browser.InternetExplorer) && (Sys.Browser.version < 7)) {
                //Save SELECT in PopUp
                var tagSelectInPopUp = new Array();
                for (var j = 0; j < this._tagWithTabIndex.length; j++) {
                    tagElements = this._foregroundElement.getElementsByTagName('SELECT');
                    for (var k = 0 ; k < tagElements.length; k++) {
                        tagSelectInPopUp[i] = tagElements[k];
                        i++;
                    }
                }

                i = 0;
                Array.clear(this._saveDesableSelect);
                tagElements = document.getElementsByTagName('SELECT');
                for (var k = 0 ; k < tagElements.length; k++) {
                    if (Array.indexOf(tagSelectInPopUp, tagElements[k]) == -1)  {
                        this._saveDesableSelect[i] = {tag: tagElements[k], visib: $common.getCurrentStyle(tagElements[k], 'visibility')} ;
                        tagElements[k].style.visibility = 'hidden';
                        i++;
                    }
                }
            }
        },

        restoreTab : function() {
            /// <summary>
            /// Restore the tab indices so we tab through the page like normal
            /// (and restore SELECT tags in IE6)
            /// </summary>

            for (var i = 0; i < this._saveTabIndexes.length; i++) {
                this._saveTabIndexes[i].tag.tabIndex = this._saveTabIndexes[i].index;
            }
            Array.clear(this._saveTabIndexes);

            //IE6 Bug with SELECT element always showing up on top
            if ((Sys.Browser.agent === Sys.Browser.InternetExplorer) && (Sys.Browser.version < 7)) {
                for (var k = 0 ; k < this._saveDesableSelect.length; k++) {
                    this._saveDesableSelect[k].tag.style.visibility = this._saveDesableSelect[k].visib;
                }
                Array.clear(this._saveDesableSelect);
            }
        },

        hide : function() {
            /// <summary>
            /// Hide the modal dialog
            /// </summary>
            /// <returns type="Boolean" mayBeNull="false">
            /// Whether or not the dialog was hidden
            /// </returns>

            var eventArgs = new Sys.CancelEventArgs();
            this.raiseHiding(eventArgs);
            if (eventArgs.get_cancel()) {
                return false;
            }

            this._hideImplementation();

            this.raiseHidden(Sys.EventArgs.Empty);
            return true;
        },

        _hideImplementation : function() {
            /// <summary>
            /// Internal implementation to hide the modal dialog
            /// </summary>

            this._backgroundElement.style.display = 'none';
            this._foregroundElement.style.display = 'none';       //Object required.

            this.restoreTab();

            this._detachPopup();
        },

        _layout : function() {
            /// <summary>
            /// Position the modal dialog
            /// </summary>
            var scrollLeft = (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft);
            var scrollTop = (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
                   
            var clientBounds = $common.getClientBounds();
            var clientWidth = clientBounds.width;
            var clientHeight = clientBounds.height;
            
            // Setup the location of the background element
            this._layoutBackgroundElement();

            var xCoord = 0;
            var yCoord = 0;
            if(this._xCoordinate < 0) {
                var foregroundelementwidth = this._foregroundElement.offsetWidth? this._foregroundElement.offsetWidth: this._foregroundElement.scrollWidth;
                xCoord = ((clientWidth-foregroundelementwidth)/2);
                // workaround for drag behavior which calls setlocation which in turn
                // changes the position of the panel to be absolute and requiring us
                // to add the scrollLeft so that it is positioned correctly.
                if (this._foregroundElement.style.position == 'absolute') {
                    xCoord += scrollLeft;
                }
                this._foregroundElement.style.left = xCoord + 'px';
                
            } else {
                if(this._isIE6) {
                    this._foregroundElement.style.left = (this._xCoordinate + scrollLeft) + 'px';
                    xCoord = this._xCoordinate + scrollLeft;
                }
                else {
                    this._foregroundElement.style.left = this._xCoordinate + 'px';
                    xCoord = this._xCoordinate;
                }
            }
            if(this._yCoordinate < 0) {
                var foregroundelementheight = this._foregroundElement.offsetHeight? this._foregroundElement.offsetHeight: this._foregroundElement.scrollHeight;
                yCoord = ((clientHeight-foregroundelementheight)/2);           
                // workaround for drag behavior which calls setlocation which in turn
                // changes the position of the panel to be absolute and requiring us
                // to add the scrollLeft so that it is positioned correctly.
                if (this._foregroundElement.style.position == 'absolute') {
                    yCoord += scrollTop;
                }
                this._foregroundElement.style.top = yCoord + 'px';
              
            } else {
                if(this._isIE6) {
                    this._foregroundElement.style.top = (this._yCoordinate + scrollTop) + 'px';
                    yCoord = this._yCoordinate + scrollTop;
                }
                else {
                    this._foregroundElement.style.top = this._yCoordinate + 'px';
                    yCoord = this._yCoordinate;
                }
            }

            // make sure get location agrees with the location of the foreground element
            this._layoutForegroundElement(xCoord, yCoord);
            
            if (this._dropShadowBehavior) {
                this._dropShadowBehavior.setShadow();
                window.setTimeout(Function.createDelegate(this, this._fixupDropShadowBehavior), 0);
            }
            
            // layout background element again to make sure it covers the whole background
            // in case things moved around when laying out the foreground element
            this._layoutBackgroundElement();
        },
        
        _layoutForegroundElement : function(xCoord, yCoord) {
            /// <summary>
            /// Set the correct location of the foreground element to ensure that it is absolutely
            /// positioned with respect to the browser. This is just a workaround for IE 6 since
            /// elements nested in relative parents cause modal popup positioning issues and 'fixed'
            /// is not supported by IE 6. Hence we manually compute the right location of the popup.
            /// </summary>
            /// <param name="xCoord" type="Number" integer="true" maybenull="false">
            /// <param name="yCoord" type="Number" integer="true" maybenull="false">        
            /// </params>
            
            if (this._isIE6 && this._relativeOrAbsoluteParentElement) {
                var foregroundLocation = $common.getLocation(this._foregroundElement);  
                var relativeParentLocation = $common.getLocation(this._relativeOrAbsoluteParentElement);
                var getLocationXCoord = foregroundLocation.x;
                if (getLocationXCoord != xCoord) {
                    // offset it by that amount
                    this._foregroundElement.style.left = (xCoord - relativeParentLocation.x) + 'px';
                }
                            
                var getLocationYCoord = foregroundLocation.y;
                if (getLocationYCoord != yCoord) {
                    // offset it by that amount
                    this._foregroundElement.style.top = (yCoord - relativeParentLocation.y) + 'px';
                }
            }
        },
        
        _layoutBackgroundElement : function() {
            /// <summary>
            /// Set the correct location of the background element to ensure that it is absolutely
            /// positioned with respect to the browser.
            /// </summary>

            // Background element needs to cover the visible client area completely hence its
            // top and left coordinates need to be 0, and if relatively positioned its getlocation
            // value needs to be 0.
            if(this._isIE6) {
                var backgroundLocation = $common.getLocation(this._backgroundElement);
                var backgroundXCoord = backgroundLocation.x;
                if (backgroundXCoord != 0) {
                    // offset it by that amount. This is assuming only one level of nesting. If
                    // multiple parents with absolute/relative positioning are setup this may not
                    // cover the whole background.
                    this._backgroundElement.style.left = (-backgroundXCoord) + 'px';
                }
                
                var backgroundYCoord = backgroundLocation.y;
                if (backgroundYCoord != 0) {
                    // offset it by that amount. This is assuming only one level of nesting. If
                    // multiple parents with absolute/relative positioning are setup this may not
                    // cover the whole background.
                    this._backgroundElement.style.top = (-backgroundYCoord) + 'px';
                }         
            }
            var clientBounds = $common.getClientBounds();
            var clientWidth = clientBounds.width;
            var clientHeight = clientBounds.height;
            this._backgroundElement.style.width = Math.max(Math.max(document.documentElement.scrollWidth, document.body.scrollWidth), clientWidth)+'px';
            this._backgroundElement.style.height = Math.max(Math.max(document.documentElement.scrollHeight, document.body.scrollHeight), clientHeight)+'px';
        },

        _fixupDropShadowBehavior : function() {
            /// <summary>
            /// Some browsers don't update the location values immediately, so
            /// the location of the drop shadow would always be a step behind
            /// without this method
            /// </summary>

            if (this._dropShadowBehavior) {
                this._dropShadowBehavior.setShadow();
            }
        },

        _partialUpdateEndRequest : function(sender, endRequestEventArgs) {
            /// <summary>
            /// Show the popup if requested during a partial postback
            /// </summary>
            /// <param name="sender" type="Object">
            /// Sender
            /// </param>
            /// <param name="endRequestEventArgs" type="Sys.WebForms.EndRequestEventArgs">
            /// Event arguments
            /// </param>
            /// <returns />
            AjaxControlToolkit.ModalPopupBehavior.callBaseMethod(this, '_partialUpdateEndRequest', [sender, endRequestEventArgs]);

            if (this.get_element()) {
                // Look up result by element's ID
                var action = endRequestEventArgs.get_dataItems()[this.get_element().id];
                if ("show" == action) {
                    this.show();
                } else if ("hide" == action) {
                    this.hide();
                }
            }

            // Async postback may have added content; re-layout to accomodate it
            this._layout();
        },

        _onPopulated : function(sender, eventArgs) {
            /// <summary>
            /// Re-layout the popup after we've dynamically populated
            /// </summary>
            /// <param name="sender" type="Object">
            /// Sender
            /// </param>
            /// <param name="eventArgs" type="Sys.EventArgs">
            /// Event arguments
            /// </param>
            /// <returns />
            AjaxControlToolkit.ModalPopupBehavior.callBaseMethod(this, '_onPopulated', [sender, eventArgs]);

            // Dynamic populate may have added content; re-layout to accomodate it
            this._layout();
        },
        
        get_PopupControlID : function() {
            /// <value type="String">
            /// The ID of the element to display as a modal popup
            /// </value>
            return this._PopupControlID;
        },
        set_PopupControlID : function(value) {
            if (this._PopupControlID != value) {
                this._PopupControlID = value;
                this.raisePropertyChanged('PopupControlID');
            }
        },

        get_X: function() {
            /// <value type="Number" integer="true">
            /// The number of pixels from the left of the browser to position the modal popup.
            /// </value>
            return this._xCoordinate;
        },
        set_X: function(value) {
            if (this._xCoordinate != value) {
                this._xCoordinate = value;
                this.raisePropertyChanged('X');
            }
        },

        get_Y: function() {
            /// <value type="Number" integer="true">
            /// The number of pixels from the top of the browser to position the modal popup.
            /// </value>
            return this._yCoordinate;
        },
        set_Y: function(value) {
            if (this._yCoordinate != value) {
                this._yCoordinate = value;
                this.raisePropertyChanged('Y');
            }
        },
           
        get_PopupDragHandleControlID : function() {
            /// <value type="String">
            /// The ID of the element to display as the drag handle for the modal popup
            /// </value>
            return this._PopupDragHandleControlID;
        },
        set_PopupDragHandleControlID : function(value) {
            if (this._PopupDragHandleControlID != value) {
                this._PopupDragHandleControlID = value;
                this.raisePropertyChanged('PopupDragHandleControlID');
            }
        },

        get_BackgroundCssClass : function() {
            /// <value type="String">
            /// The CSS class to apply to the background when the modal popup is displayed
            /// </value>
            return this._BackgroundCssClass;
        },
        set_BackgroundCssClass : function(value) {
            if (this._BackgroundCssClass != value) {
                this._BackgroundCssClass = value;
                this.raisePropertyChanged('BackgroundCssClass');
            }
        },

        get_DropShadow : function() {
            /// <value type="Boolean">
            /// Whether or not a drop-shadow should be added to the modal popup
            /// </value>
            return this._DropShadow;
        },
        set_DropShadow : function(value) {
            if (this._DropShadow != value) {
                this._DropShadow = value;
                this.raisePropertyChanged('DropShadow');
            }
        },

        get_Drag : function() {
            /// <value type="Boolean">
            /// Obsolete: Setting the _Drag property is a noop
            /// </value>
            return this._Drag;
        },
        set_Drag : function(value) {
            if (this._Drag != value) {
                this._Drag = value;
                this.raisePropertyChanged('Drag');
            }
        },

        get_OkControlID : function() {
            /// <value type="String">
            /// The ID of the element that dismisses the modal popup
            /// </value>
            return this._OkControlID;
        },
        set_OkControlID : function(value) {
            if (this._OkControlID != value) {
                this._OkControlID = value;
                this.raisePropertyChanged('OkControlID');
            }
        },

        get_CancelControlID : function() {
            /// <value type="String">
            /// The ID of the element that cancels the modal popup
            /// </value>
            return this._CancelControlID;
        },
        set_CancelControlID : function(value) {
            if (this._CancelControlID != value) {
                this._CancelControlID = value;
                this.raisePropertyChanged('CancelControlID');
            }
        },

        get_OnOkScript : function() {
            /// <value type="String">
            /// Script to run when the modal popup is dismissed with the OkControlID
            /// </value>
            return this._OnOkScript;
        },
        set_OnOkScript : function(value) {
            if (this._OnOkScript != value) {
                this._OnOkScript = value;
                this.raisePropertyChanged('OnOkScript');
            }
        },

        get_OnCancelScript : function() {
            /// <value type="String">
            /// Script to run when the modal popup is dismissed with the CancelControlID
            /// </value>
            return this._OnCancelScript;
        },
        set_OnCancelScript : function(value) {
            if (this._OnCancelScript != value) {
                this._OnCancelScript = value;
                this.raisePropertyChanged('OnCancelScript');
            }
        },

        get_repositionMode : function() {
            /// <value type="AjaxControlToolkit.ModalPopupRepositionMode">
            /// Determines if the ModalPopup should be repositioned on window resize/scroll
            /// </value>
            return this._repositionMode;
        },
        set_repositionMode : function(value) {
            if (this._repositionMode !== value) {
                this._repositionMode = value;
                this.raisePropertyChanged('RepositionMode');
            }
        },
        
        add_showing : function(handler) {
            /// <summary>
            /// Add an event handler for the showing event
            /// </summary>
            /// <param name="handler" type="Function" mayBeNull="false">
            /// Event handler
            /// </param>
            /// <returns />
            this.get_events().addHandler('showing', handler);
        },
        remove_showing : function(handler) {
            /// <summary>
            /// Remove an event handler from the showing event
            /// </summary>
            /// <param name="handler" type="Function" mayBeNull="false">
            /// Event handler
            /// </param>
            /// <returns />
            this.get_events().removeHandler('showing', handler);
        },
        raiseShowing : function(eventArgs) {
            /// <summary>
            /// Raise the showing event
            /// </summary>
            /// <param name="eventArgs" type="Sys.CancelEventArgs" mayBeNull="false">
            /// Event arguments for the showing event
            /// </param>
            /// <returns />
            
            var handler = this.get_events().getHandler('showing');
            if (handler) {
                handler(this, eventArgs);
            }
        },
        
        add_shown : function(handler) {
            /// <summary>
            /// Add an event handler for the shown event
            /// </summary>
            /// <param name="handler" type="Function" mayBeNull="false">
            /// Event handler
            /// </param>
            /// <returns />
            this.get_events().addHandler('shown', handler);
        },
        remove_shown : function(handler) {
            /// <summary>
            /// Remove an event handler from the shown event
            /// </summary>
            /// <param name="handler" type="Function" mayBeNull="false">
            /// Event handler
            /// </param>
            /// <returns />
            this.get_events().removeHandler('shown', handler);
        },
        raiseShown : function(eventArgs) {
            /// <summary>
            /// Raise the shown event
            /// </summary>
            /// <param name="eventArgs" type="Sys.EventArgs" mayBeNull="false">
            /// Event arguments for the shown event
            /// </param>
            /// <returns />
            
            var handler = this.get_events().getHandler('shown');
            if (handler) {
                handler(this, eventArgs);
            }
        },
        
        add_hiding : function(handler) {
            /// <summary>
            /// Add an event handler for the hiding event
            /// </summary>
            /// <param name="handler" type="Function" mayBeNull="false">
            /// Event handler
            /// </param>
            /// <returns />
            this.get_events().addHandler('hiding', handler);
        },
        remove_hiding : function(handler) {
            /// <summary>
            /// Remove an event handler from the hiding event
            /// </summary>
            /// <param name="handler" type="Function" mayBeNull="false">
            /// Event handler
            /// </param>
            /// <returns />
            this.get_events().removeHandler('hiding', handler);
        },
        raiseHiding : function(eventArgs) {
            /// <summary>
            /// Raise the hiding event
            /// </summary>
            /// <param name="eventArgs" type="Sys.CancelEventArgs" mayBeNull="false">
            /// Event arguments for the hiding event
            /// </param>
            /// <returns />
            
            var handler = this.get_events().getHandler('hiding');
            if (handler) {
                handler(this, eventArgs);
            }
        },
        
        add_hidden : function(handler) {
            /// <summary>
            /// Add an event handler for the hidden event
            /// </summary>
            /// <param name="handler" type="Function" mayBeNull="false">
            /// Event handler
            /// </param>
            /// <returns />
            this.get_events().addHandler('hidden', handler);
        },
        remove_hidden : function(handler) {
            /// <summary>
            /// Remove an event handler from the hidden event
            /// </summary>
            /// <param name="handler" type="Function" mayBeNull="false">
            /// Event handler
            /// </param>
            /// <returns />
            this.get_events().removeHandler('hidden', handler);
        },
        raiseHidden : function(eventArgs) {
            /// <summary>
            /// Raise the hidden event
            /// </summary>
            /// <param name="eventArgs" type="Sys.EventArgs" mayBeNull="false">
            /// Event arguments for the hidden event
            /// </param>
            /// <returns />
            
            var handler = this.get_events().getHandler('hidden');
            if (handler) {
                handler(this, eventArgs);
            }
        }
    }
    AjaxControlToolkit.ModalPopupBehavior.registerClass('AjaxControlToolkit.ModalPopupBehavior', AjaxControlToolkit.DynamicPopulateBehaviorBase);

    AjaxControlToolkit.ModalPopupBehavior.invokeViaServer = function(behaviorID, show) {
        /// <summary>
        /// This static function (that is intended to be called from script emitted
        /// on the server) will show or hide the behavior associated with behaviorID
        /// (i.e. to use this, the ModalPopupExtender must have an ID or BehaviorID) and
        /// will either show or hide depending on the show parameter.
        /// </summary>
        /// <param name="behaviorID" type="String">
        /// ID of the modal popup behavior
        /// </param>
        /// <param name="show" type="Boolean">
        /// Whether to show or hide the modal popup
        /// </param>
        var behavior = $find(behaviorID);
        if (behavior) {
            if (show) {
                behavior.show();
            } else {
                behavior.hide();
            }
        }
    }

    if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
     
     
     
     
     
     
     
  •  07-26-2009, 8:25 AM 54283 in reply to 54151

    Re: JavaScript Error Object required

    Hi,
     
    That seems to be the source of the AjaxControlToolkit.
     
    Is your page use that control ? Can you paste your page source ??
     
    Regards,
    Terry
     
  •  07-29-2009, 2:41 AM 54357 in reply to 54283

    Re: JavaScript Error Object required

    Hi,
     
    Yes I'm using  AjaxControlToolkit on my page and this is page source;
     
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GlownaSkanowanie.aspx.cs" Inherits="Projekty.GlownaSkanowanie" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
    <%@ Register TagPrefix="obout" Namespace="OboutInc.Postback" Assembly="obout_Postback"%>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" >
        <head id="Head1" runat="server">
            <script src="JavaScript/glownaskanowanie.js" type="text/javascript"></script>
            <script src="JScript1.js" type="text/javascript"></script>
            <link href="Style/glownaskanowanie.css" type="text/css" rel="stylesheet" />
            <title>Moduł skanowania - Przeglądanie</title>
            <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR" />
            <meta content="C#" name="CODE_LANGUAGE" />
            <meta content="JavaScript" name="vs_defaultClientScript" />
            <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema" />
            
            <script language="javascript" type="text/javascript" event="OnPostTransfer" for="DynamicWebTwain1">
                <!-- DynamicWebTwain1_OnPostTransfer(); //-->
            </script>
            <script language="javascript" type="text/javascript" event="OnMouseClick(index)" for="DynamicWebTwain1">
                <!-- DynamicWebTwain1_OnMouseClick(index); //-->
            </script>
            <style type="text/css">
                #Form2
                {
                    width: 1103px;
                }
            </style>
            
            


        </head>
        
        <body onload="fOnLoad();">
            <p></p>
            
            <form id="Form2" runat="server">
           
            <div style="display:none;">
                <!-- <obout:postback id="Postback1" runat="server" ServerFileName="DataProcessing.aspx"></obout:postback> -->
            </div>
            
                <asp:datagrid id="DataGrid1"        
                    
                    
                    style="Z-INDEX: 101; LEFT: -4px; POSITION: absolute; TOP: 53px; height: 50px;" runat="server"
                    OnItemDataBound="ItemDataBoundEventHandler" PageSize="6" Font-Names="Arial" Width="190px"
                    BackColor="WhiteSmoke" ForeColor="Black" HorizontalAlign="Center" AutoGenerateColumns="False"
                    AllowPaging="True" BorderColor="Gainsboro" BorderWidth="1px"
                    BorderStyle="Dotted">
                    <FooterStyle HorizontalAlign="Center" Width="10px" VerticalAlign="Middle" BackColor="#CCCC99"></FooterStyle>
                    <SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#CE5D5A"></SelectedItemStyle>
                    <EditItemStyle ForeColor="White" BackColor="Cornsilk"></EditItemStyle>
                    <AlternatingItemStyle BackColor="White"></AlternatingItemStyle>
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" BackColor="#F7F7DE"></ItemStyle>
                    <HeaderStyle Font-Size="X-Small" Font-Bold="True" ForeColor="White" BorderColor="#004040" Width="10px"
                        VerticalAlign="Middle" BackColor="#6B696B"></HeaderStyle>
                    <Columns>
                        <asp:TemplateColumn>
                            <ItemTemplate>
                                <asp:TextBox runat="server" Width="0px" BackColor="PaleGoldenrod" Font-Bold="True" ForeColor="White"
                                    Font-Names="Arial" Font-Size="10pt" Height="50px" ID="Tytul" NAME="Label1"  BorderStyle="None" />
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn>
                            <HeaderStyle VerticalAlign="Top"></HeaderStyle>
                            <ItemStyle Height="40px"></ItemStyle>
                            <HeaderTemplate>
                                <b>Lp.</b>
                            </HeaderTemplate>
                            <ItemTemplate>
                            <!-- -->
                                <asp:TextBox onfocus="ZaznaczWiersz();" onclick="PodswietlWiersz();" onkeypress="return numbersonly(this,event)" onkeydown="ObslugaKlawiszy();" onblur="UsunPodswietlenieWiersza(this)"
                                    runat="server"  Width="20px" BackColor="PaleGoldenrod" Font-Bold="True"
                                    ForeColor="DimGray" onchange="OnChangeLp(this);" Font-Names="Arial" Font-Size="8pt" Height="20px"
                                    ID="INFO" NAME="Label1">
                                </asp:TextBox>
                                <asp:Label ID="Linfo" Font-Size="8pt" Runat="server"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn>
                            <HeaderStyle Width="150px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" Height="40px" Width="150px" VerticalAlign="Middle"></ItemStyle>
                            <HeaderTemplate>
                                <b>Obraz</b>
                            </HeaderTemplate>
                            <ItemTemplate>                           
                                    <asp:HyperLink Target="_blank" ID="Syg_Link" Width="110px" Height="40px" runat="server" onclick="OnClickPokarzDynamicWebTwain();"
                                    onblur="UsunPodswietlenieWiersza(this);">
                                    <asp:Image ID="Syg" Width="16" style="visibility: hidden;" Height="16" runat="server"></asp:Image>
                                    
                                    <asp:Label ID="labelNazwa" Font-Size="8pt" runat="server" onclick="ObrazekOnClick(this)" onblur="UsunPodswietlenieWiersza(this);" ></asp:Label>                            </asp:HyperLink>
                                
                                
                                <asp:Image ID="Syg3" Width="16" Height="16" runat="server"></asp:Image>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn>
                            <HeaderStyle Width="30px"></HeaderStyle>
                            <HeaderTemplate>
                                <!--<b>Zaznacz</b>-->
                            </HeaderTemplate>
                            <ItemTemplate>
                                <input type="checkbox" title="Zazncz aktualny skan alt+Z " runat="server" id="ZAZ" accesskey="Z" onclick="OnClickPokarzDynamicWebTwain();OnClickZaznaczone(this);" />
                            </ItemTemplate>
                        </asp:TemplateColumn>
                    </Columns>
                    <PagerStyle CssClass="gridPagerStyle" Mode="NumericPages"></PagerStyle>
                </asp:datagrid>
        
                     <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                
                <input id="hiddenPicture" type="hidden" runat="server" />
                <input id="cadKey" type="hidden" runat="server" />
                <input id="cadEmail" type="hidden" runat="server" />
                <input id="cadUser" type="hidden" runat="server" />
                
                <DIV id="pCADViewX"
                    style="Z-INDEX: 128; LEFT: 191px; WIDTH: 512px; POSITION: absolute; TOP: 49px; HEIGHT: 280px"
                    runat="server">
                    <OBJECT id="CADViewX" style="WIDTH: 100%; HEIGHT: 99%" codebase="CADViewX.CAB"
                        classid="clsid:F5F6C0A5-0D6F-41F6-932C-BB1D4F3566D5" VIEWASTEXT>
                        <param name="AutoScroll" VALUE="0">
                        <param name="AutoSize" VALUE="0">
                        <param name="AxBorderStyle" VALUE="1">
                        <param name="Caption" VALUE="CADViewX Control">
                        <param name="Color" VALUE="8421504">
                        <param name="KeyPreview" VALUE="-1">
                        <param name="PixelsPerInch" VALUE="96">
                        <param name="PrintScale" VALUE="1">
                        <param name="Scaled" VALUE="-1">
                        <param name="DropTarget" VALUE="0">
                        <param name="ScreenSnap" VALUE="0">
                        <param name="SnapBuffer" VALUE="10">
                        <param name="DoubleBuffered" VALUE="-1">
                        <param name="Enabled" VALUE="-1">
                        <param name="ToolBarVisible" VALUE="0">
                        <param name="LayoutIndex" VALUE="0">
                        <param name="LayoutsBarVisible" VALUE="0">
                        <param name="SelfPopupMenu" VALUE="-1">
                        <param name="IsWithoutBorder" VALUE="0">
                        <param name="Millimetres" VALUE="0">
                        <param name="UseSHXFonts" VALUE="0">
                        <param name="SearchSHXPaths" VALUE="-1">
                        <param name="DefaultSHXPath" VALUE="">
                        <param name="DefaultSHXFont" VALUE="simplex.shx">
                        <param name="SHXSearchPaths" VALUE="">
                        <param name="BackGroundColor" VALUE="16777215">
                        <param name="FileName" VALUE="">
                        <param name="DrawMode" VALUE="0">
                        <param name="DefaultColor" VALUE="0">
                        <param name="PrinterIndex" VALUE="0">
                        <param name="PaperOrientation" VALUE="0">
                        <param name="BorderWidth" VALUE="0">
                        <param name="VisibleOrbit3D" VALUE="0">
                        <param name="RasterColorDepth" VALUE="3">
                        <param name="ScaleFactor" VALUE="1">
                        <param name="ImageAlign" VALUE="5">
                        <param name="Language" VALUE="Polski">
                        <param name="PrintViewArea" VALUE="0">
                        <param name="IsShowPrinterSetupDialog" VALUE="0">
                        <param name="HScrollBarVisible" VALUE="-1">
                        <param name="VScrollBarVisible" VALUE="-1">
                        <param name="Font" VALUE="MS Sans Serif">
                        <param name="Visible" VALUE="0">
                        <param name="Picture" VALUE="1145444369">
                        <param name="PrintingTitle" VALUE="CADViewX printing">
                    </OBJECT>
                </DIV>
                <DIV id="pDynamicWebTwain" style="Z-INDEX: 146; LEFT: 191px; WIDTH: 512px; POSITION: absolute; TOP: 52px; HEIGHT: 272px"
                    ms_positioning="FlowLayout" runat="server">
                    <div style="display:none;">
                     <OBJECT classid="clsid:5220cb21-c88d-11cf-b347-00aa00a28331" VIEWASTEXT>
                        <PARAM NAME="LPKPath" VALUE="DynamicWebTwain.lpk">
                    </OBJECT>         
                   </div>
                   
                    <OBJECT id="DynamicWebTwain1" CodeBase = "DynamicWebTWAIN.cab#version=5,2" height="100%"
                        width="100%" classid="clsid:E7DA7F8D-27AB-4EE9-8FC0-3FEC9ECFE758" VIEWASTEXT >
                        <PARAM NAME="_cx" VALUE="13520">
                        <PARAM NAME="_cy" VALUE="7408">
                        <PARAM NAME="JpgQuality" VALUE="80">
                        <PARAM NAME="Manufacturer" VALUE="DynamSoft Corporation">
                        <PARAM NAME="ProductFamily" VALUE="Dynamic Web TWAIN">
                        <PARAM NAME="ProductName" VALUE="Dynamic Web TWAIN">
                        <PARAM NAME="VersionInfo" VALUE="Dynamic Web TWAIN 5.2">
                        <PARAM NAME="TransferMode" VALUE="0">
                        <PARAM NAME="BorderStyle" VALUE="0">
                        <PARAM NAME="FTPUserName" VALUE="">
                        <PARAM NAME="FTPPassword" VALUE="">
                        <PARAM NAME="FTPPort" VALUE="21">
                        <PARAM NAME="HTTPUserName" VALUE="">
                        <PARAM NAME="HTTPPassword" VALUE="">
                        <PARAM NAME="HTTPPort" VALUE="80">
                        <PARAM NAME="ProxyServer" VALUE="">
                        <PARAM NAME="IfDisableSourceAfterAcquire" VALUE="0">
                        <PARAM NAME="IfShowUI" VALUE="-1">
                        <PARAM NAME="IfModalUI" VALUE="-1">
                        <PARAM NAME="IfTiffMultiPage" VALUE="0">
                        <PARAM NAME="IfThrowException" VALUE="0">
                        <PARAM NAME="MaxImagesInBuffer" VALUE="1024">
                        <PARAM NAME="TIFFCompressionType" VALUE="0">
                        <PARAM NAME="IfFitWindow" VALUE="-1">
                        <PARAM NAME="IfSSL" VALUE="0">
                    </OBJECT>
                </DIV>
                <TABLE id="tDynamicWebTwain" style="FONT-SIZE: 10pt; Z-INDEX: 130; LEFT: 192px; WIDTH: 512px; POSITION: absolute; TOP: 328px; HEIGHT: 30px; bottom: 392px;"
                    cellSpacing="1" cellPadding="1" width="512" bgColor="whitesmoke" border="0">
                    <TR style="HEIGHT: 24;">
                        <TD style="WIDTH: 24px; HEIGHT: 24px;">
                            <INPUT id="bPierwszy"                 
                             style="border: 0px solid black;    Z-INDEX: 109; BACKGROUND-COLOR: transparent; background-repeat: no-repeat; background-position: center center; WIDTH: 24px; HEIGHT: 24px; BACKGROUND-IMAGE: url('./Images/Menu24/pierwszy.png'); "                          
                                type="button" name="bPierwszy"></TD>
                        <TD style="WIDTH: 24px; HEIGHT: 24px;"><INPUT id="bWstecz"
                                style="border: 0px solid black;   Z-INDEX: 109; BACKGROUND-COLOR: transparent; background-repeat: no-repeat; background-position: center center; WIDTH: 24px; HEIGHT: 24px; BACKGROUND-IMAGE: url('./Images/Menu24/poprzedni.png'); "                            
                                onclick="bWstecz_onclick();" type="button"
                                 name="bWstecz"></TD>
                        <TD style="WIDTH: 24px; HEIGHT: 24px;"><INPUT id="CurrentImage" style="WIDTH: 24px; HEIGHT: 24px;" readOnly
                                type="text" size="1" value="0" name="CurrentImage"></TD>
                        <TD style="FONT-WEIGHT: bold; FONT-SIZE: large; WIDTH: 4px">/
                        </TD>
                        <TD style="WIDTH: 24px; HEIGHT: 24px;"><INPUT id="TotalImage" style="WIDTH: 24px; HEIGHT: 24px;" readOnly type="text"
                                size="1" value="0" name="TotalImage"></TD>
                        <TD style="WIDTH: 24px; HEIGHT: 24px;"><INPUT id="bNastepny"
                        style="border: 0px solid black;    Z-INDEX: 109; BACKGROUND-COLOR: transparent; background-repeat: no-repeat; background-position: center center; WIDTH: 24px; HEIGHT: 24px; BACKGROUND-IMAGE: url('./Images/Menu24/nastepny.png');"                          
                        onclick="bNastepny_onclick();" type="button" name="bNastepny"></TD>
                        <TD style="WIDTH: 24px; HEIGHT: 24px;">
                            <INPUT id="bOstatni"
                                style="border: 0px solid black;    Z-INDEX: 109; BACKGROUND-COLOR: transparent; background-repeat: no-repeat; background-position: center center; WIDTH: 24px; HEIGHT: 24px; BACKGROUND-IMAGE: url('./Images/Menu24/ostatni.png');"                   
                                onclick="bOstatni_onclick();" type="button"
                           name="bOstatni"></TD>
                        <TD style="WIDTH: 268px; HEIGHT: 24px;" align="right">Format wyświetlania: &nbsp;</TD>
                        <TD colSpan="2"><SELECT id="PaintModeDDL" style="WIDTH: 100%; HEIGHT: 24px" onchange="slPaintModeDDL();"
                                name="PaintModeDDL"></SELECT></TD>
                    </TR>
                </TABLE>
                <INPUT id="Button1"  onmouseover="MenuOnMouseOver(this);" title="Alt+T" style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 8pt; Z-INDEX: 127; LEFT: 104px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 120px; FONT-FAMILY: Arial; POSITION: absolute; TOP: 0px; HEIGHT: 20px; BACKGROUND-COLOR: #e5e5e5; BORDER-RIGHT-WIDTH: 0px"
                    accessKey="T" tabIndex="-1" onmouseout="MenuOnMouseOut(this);" type="button" value="Pokaż/ukryj teczki szcz."
                    name="m1" runat="server">
                    
                    <DIV id = "HiddenDivOtworz"
                    
                    
                    style=" Z-INDEX: 5000; left: 194px; top: 68px; height: 293px; width:508px;  overflow:auto; POSITION: absolute;" >
                   
                    <INPUT id="HiddenButtonOtworz"  title="Pobierz skan  z dysku (Alt+D)"
                        style="BORDER-RIGHT: black 0px solid;display:none; BACKGROUND-POSITION: center center; BORDER-TOP: black 0px solid; Z-INDEX: 101; LEFT: 96px; BACKGROUND-IMAGE: url(./Images/Menu24/folder.png); BORDER-LEFT: black 0px solid; WIDTH: 24px; BORDER-BOTTOM: black 0px solid; POSITION: absolute; TOP: 0px; HEIGHT: 24px; BACKGROUND-COLOR: transparent"
                        onclick="SetFocus();" onmouseout="hideborder(this);" type="button" name="Button2" runat="server" >             
                    </DIV>
                    
                <DIV id="DIV1" style="Z-INDEX: 100; LEFT: 0px; WIDTH: 768px; CLIP: rect(auto auto auto auto); POSITION: absolute; TOP: 22px; HEIGHT: 24px; BACKGROUND-COLOR: #e5e5e5"
                    runat="server" ms_positioning="GridLayout">
                    <INPUT id="pobierzzdyskuIkon" onmouseover="showborder(this);" title="Pobierz skan  z dysku (Alt+D)"
                        style="border: 0px solid black; background-position: center; Z-INDEX: 101; LEFT: 100px; BACKGROUND-IMAGE: url('Images/Menu24/folder.png'); WIDTH: 24px; POSITION: absolute; TOP: 0px; HEIGHT: 24px; BACKGROUND-COLOR: transparent"
                        onclick="HiddenButtonOtworz.click();SetFocus();" onmouseout="hideborder(this);"
                        type="button" name="Button2" runat="server">
                    <INPUT id="MailIkon" onmouseover="if(document.getElementById('HiddenFieldBlokada').value == 'N'){showborder(this);}" title="Wyślij maila z załączonymi skanami . Zaznacz skany które chcesz dołączyć do maila (Alt +E)"
                        style="border: 0px solid black; background-position: center; Z-INDEX: 102; LEFT: 67px; BACKGROUND-IMAGE: url('Images/Menu24/email.png'); WIDTH: 24px; POSITION: absolute; TOP: 0px; HEIGHT: 26px; BACKGROUND-COLOR: transparent; right: 677px;"
                        onclick="if(document.getElementById('HiddenFieldBlokada').value == 'N'){mial();SetFocus();}" onmouseout="hideborder(this);" type="button" size="20"
                        name="Button2" runat="server">
                    <INPUT id="ZaznaczWszystkieIkon" onmouseover="if(document.getElementById('HiddenFieldBlokada').value == 'N'){showborder(this);}" title="Zaznacz wszystkie (Alt +Z)"
                        style="BORDER-RIGHT: black 0px solid; BACKGROUND-POSITION: center center; BORDER-TOP: black 0px solid; Z-INDEX: 104; LEFT: 168px; BACKGROUND-IMAGE: url(./Images/Menu24/ZanzaczTeczke.png); BORDER-LEFT: black 0px solid; WIDTH: 24px; BORDER-BOTTOM: black 0px solid; POSITION: absolute; TOP: 0px; HEIGHT: 24px; BACKGROUND-COLOR: transparent"
                        onmouseout="hideborder(this);" type="button" name="Button2" runat="server" onserverclick="ZaznaczWszystkieIkon_ServerClick">
                    <INPUT id="UsunSkanIkon" onmouseover="if(document.getElementById('HiddenFieldBlokada').value == 'N'){showborder(this);}" title="Usuń zaznaczone  skany  (Alt+U)"
                        style="BORDER-RIGHT: black 0px solid; BACKGROUND-POSITION: center center; BORDER-TOP: black 0px solid; Z-INDEX: 110; LEFT: 136px; BACKGROUND-IMAGE: url(./Images/Menu24/delete.png); BORDER-LEFT: black 0px solid; WIDTH: 24px; BORDER-BOTTOM: black 0px solid; POSITION: absolute; TOP: 0px; HEIGHT: 24px; BACKGROUND-COLOR: transparent"
                        onclick="if(document.getElementById('HiddenFieldBlokada').value == 'N'){Usunfunction(); CzyscNazweTytul(); SetFocus();}" onmouseout="hideborder(this);" type="button" name="Button2" runat="server" onserverclick="UsunSkanIkon_ServerClick">
                    <INPUT id="OdznaczWszytkieIkon" onmouseover="if(document.getElementById('HiddenFieldBlokada').value == 'N'){showborder(this);}" title="Odznacz wszystkie (Alt +O) "
                        style="border: 0px solid black; background-position: center; Z-INDEX: 103; LEFT: 200px; BACKGROUND-IMAGE: url('Images/Menu24/OdznaczTeczke.png'); WIDTH: 24px; POSITION: absolute; TOP: 0px; HEIGHT: 24px; BACKGROUND-COLOR: transparent; right: 544px;"
                        onmouseout="hideborder(this);" type="button" name="Button2" runat="server"
                        onserverclick="OdznaczWszytkieIkon_ServerClick">
                    <INPUT id="PowiekszIkon" onmouseover="showborder(this);" title="Powiększ skan (Alt+P)"
                        style="border: 0px solid black; background-position: center; Z-INDEX: 109; BACKGROUND-IMAGE: url('Images/Menu24/powieksz.png'); WIDTH: 27px; POSITION: absolute; TOP: 0px; HEIGHT: 24px; BACKGROUND-COLOR: transparent; left: 229px; right: 512px;"
                        disabled onclick="plusOnClick();SetFocus();" onmouseout="hideborder(this);"
                        type="button" name="Button2" runat="server">
                    <INPUT id="PomniejszIkon" onmouseover="showborder(this);" title="Pomnijesz skan (Alt+M)"
                        style="BORDER-RIGHT: black 0px solid; BACKGROUND-POSITION: center center; BORDER-TOP: black 0px solid; Z-INDEX: 105; LEFT: 264px; BACKGROUND-IMAGE: url(./Images/Menu24/pomniejsz.png); BORDER-LEFT: black 0px solid; WIDTH: 24px; BORDER-BOTTOM: black 0px solid; POSITION: absolute; TOP: 0px; HEIGHT: 24px; BACKGROUND-COLOR: transparent"
                        disabled onclick="minusOnClick();SetFocus();" onmouseout="hideborder(this);" type="button"
                        name="Button2" runat="server">
                      <INPUT id="OneToOneIkon" onmouseover="showborder(this);" title="Rzeczywisty rozmiar (Alt+R)"
                        style="border: 0px solid black; background-position: center; Z-INDEX: 111; LEFT: 296px; BACKGROUND-IMAGE: url('Images/Menu24/rzeczywisty.png'); WIDTH: 24px; POSITION: absolute; TOP: 0px; HEIGHT: 24px; BACKGROUND-COLOR: transparent; right: 448px;"
                        onclick="WartosciDomyslneOnClick();SetFocus();" onmouseout="hideborder(this);"
                        type="button" name="Button2" runat="server">
                    <INPUT id="PodgladIkon" onmouseover="showborder(this);" title="Podgląd wydruku (Alt+K)"
                        style="BORDER-RIGHT: black 0px solid; BACKGROUND-POSITION: center center; BORDER-TOP: black 0px solid; Z-INDEX: 108; LEFT: 328px; BACKGROUND-IMAGE: url(./Images/Menu24/podglad.png); BORDER-LEFT: black 0px solid; WIDTH: 24px; BORDER-BOTTOM: black 0px solid; POSITION: absolute; TOP: 0px; HEIGHT: 24px; BACKGROUND-COLOR: transparent"
                        onclick="podgladclick();SetFocus();" onmouseout="hideborder(this);" type="button" name="Button2"
                        runat="server">
                        
                        <INPUT id="ZamknijIkon" onmouseover="showborder(this);" title="Wyjście z modułu skanowania (Alt+T)"
                        style="BORDER-RIGHT: black 0px solid; BACKGROUND-POSITION: center center; BORDER-TOP: black 0px solid; Z-INDEX: 106; LEFT: 680px; BACKGROUND-IMAGE: url(./Images/Menu24/XL_exit.gif); BORDER-LEFT: black 0px solid; WIDTH: 24px; BORDER-BOTTOM: black 0px solid; POSITION: absolute; TOP: 0px; HEIGHT: 24px; BACKGROUND-COLOR: transparent"
                        onclick="window.close();SetFocus();" onmouseout="hideborder(this);" type="button" name="Button2" runat="server">
                    <INPUT id="SkanujIkon" onmouseover="if(document.getElementById('HiddenFieldBlokada').value == 'N'){showborder(this);}" title="Skanuj (Alt+S)" style="border: 0px solid black; background-position: center; Z-INDEX: 107; LEFT: 2px; BACKGROUND-IMAGE: url('Images/Menu24/skanuj.png'); WIDTH: 24px; POSITION: absolute; TOP: 0px; HEIGHT: 24px; BACKGROUND-COLOR: transparent; right: 742px;"
                        onclick="if(document.getElementById('HiddenFieldBlokada').value == 'N'){SkanujClick();SetFocus();}" onmouseout="hideborder(this);" type="button" name="Button2"
                        runat="server">
                    <INPUT id="IndeksyIkon" onmouseover="if(document.getElementById('HiddenFieldBlokada').value == 'N'){showborder(this);}"
                        title="Indeksy (Alt+I)" style="border: 0px solid black; background-position: center; Z-INDEX: 112; LEFT: 35px; BACKGROUND-IMAGE: url('Images/Menu24/folder_text.png'); WIDTH: 24px; POSITION: absolute; TOP: 0px; HEIGHT: 24px; BACKGROUND-COLOR: transparent; "
                        onclick="if(document.getElementById('HiddenFieldBlokada').value == 'N'){DodajWartosciIndeksow();SetFocus();}" onmouseout="hideborder(this);"
                        type="button" name="Button2"
                        runat="server">
                     <INPUT onmouseover="if(document.getElementById('HiddenFieldBlokada').value == 'N'){showborder(this);}" title="Edycja skanu" style="BORDER-RIGHT: black 0px solid; BACKGROUND-POSITION: center center; BORDER-TOP: black 0px solid; Z-INDEX: 148; LEFT: 360px; BACKGROUND-IMAGE: url(./Images/Menu24/paint_edit.png); VISIBILITY: hidden; BORDER-LEFT: black 0px solid; WIDTH: 24px; BORDER-BOTTOM: black 0px solid; POSITION: absolute; TOP: 0px; HEIGHT: 24px; BACKGROUND-COLOR: transparent"
                        onclick="if(document.getElementById('HiddenFieldBlokada').value == 'N'){bImageEditor_onclick();SetFocus();}" onmouseout="hideborder(this);" type="button" name="Button2"
                        runat="server" id="bImageEditor">
                </DIV>
                <INPUT id="m2_11" onmouseover="PodmenuOnMouseOver(this);PokazPodmenu_m2();" style="BORDER-RIGHT: #ffffff 2px solid; BORDER-TOP: #ffffff 2px solid; FONT-SIZE: 8pt; Z-INDEX: 135; LEFT: -152px; BORDER-LEFT: #ffffff 2px solid; WIDTH: 144px; BORDER-BOTTOM: #ffffff 2px solid; FONT-FAMILY: Arial; POSITION: absolute; TOP: 196px; HEIGHT: 20px; BACKGROUND-COLOR: #ffffff;"
                    accessKey="R" onclick="WartosciDomyslneOnClick();" tabIndex="-1" onmouseout="PodmenuOnMouseOut(this);UkryjPodmenu_m2();"
                    type="button" value="Rzeczywisty rozmiar alt+R" name="m2_2">
                <asp:label id="DolnyPasek" style="FONT-SIZE: 12px; Z-INDEX: 124; LEFT: 2px; POSITION: absolute; TOP: 471px; TEXT-ALIGN: center; width: 689px;"
                    runat="server" Font-Names="Arial" BackColor="Silver">Strzałka w dół/Strzałka w górę -Następny /Poprzedni skan PageDown/PageUp-Następna/Poprzednia strona  Ctrl PageDown/Ctrl PageUp -Pierwsza/Ostatnia strona</asp:label>
                <asp:textbox id="Label11" style="Z-INDEX: 112; LEFT: -424px; POSITION: absolute; TOP: 200px"
                    tabIndex="-1" runat="server" Width="41px" BackColor="ControlLight" BorderStyle="None" Height="24px" ReadOnly="True"></asp:textbox><asp:textbox id="Label12" style="Z-INDEX: 111; LEFT: -424px; POSITION: absolute; TOP: 224px"
                    tabIndex="-1" runat="server" Width="41px" BackColor="ControlLight" BorderStyle="None" Height="22px" ReadOnly="True"></asp:textbox>
                    
                <asp:textbox id="TytulTBox" onblur="UsunPodswietlenie(this);OnchangeTytul();" style="Z-INDEX: 123; OVERFLOW: auto; POSITION: absolute; TOP: 428px; height: 33px; width: 399px; left: 300px; right: 653px;"
                    onfocus="OnClickTytul(this);" accessKey="O" tabIndex="4"
                    runat="server" BackColor="Green" ForeColor="White"
                    TextMode="MultiLine" Rows="4" MaxLength="600"
                    ></asp:textbox>
                    
                <asp:label id="Label15" style="FONT-SIZE: 12px; Z-INDEX: 122; LEFT: 299px; POSITION: absolute; TOP: 367px; height: 15px; width: 89px;"
                    runat="server" Font-Names="Arial" BackColor="Blue"
                    ForeColor="White" Font-Bold="True"><u>
                        N</u>azwa skanu</asp:label>
                    
                <asp:label id="Label1" style="FONT-SIZE: 12px; Z-INDEX: 122; LEFT: 300px; POSITION: absolute; TOP: 411px; height: 15px;"
                    runat="server" Font-Names="Arial" Width="64px" BackColor="Blue"
                    ForeColor="White" Font-Bold="True"><u>
                        O</u>pis skanu</asp:label>
                <asp:textbox id="NazwaSkanuBox"
                    onblur="UsunPodswietlenie(this);OnChangeNazwa();"  onclick="" style="Z-INDEX: 123; OVERFLOW: auto; POSITION: absolute; TOP: 386px; height: 16px; width: 399px; left: 298px;"
                    onfocus="OnClickNazwa(this);" accessKey="O" tabIndex="4"
                    runat="server" BackColor="Green" ForeColor="White"
                    TextMode="MultiLine" Rows="4" MaxLength="200"
                    ></asp:textbox>
                    
                    <INPUT id="hSciezka" style="Z-INDEX: 102; LEFT: 712px; WIDTH: 24px; POSITION: absolute; TOP: 152px; HEIGHT: 22px"
                    type="hidden" size="1" runat="server"> <INPUT id="CZY_USUNAC" style="Z-INDEX: 103; LEFT: 712px; WIDTH: 24px; POSITION: absolute; TOP: 120px; HEIGHT: 22px"
                    type="hidden" size="1" runat="server"> <INPUT id="Id_uzytTBox" style="Z-INDEX: 104; LEFT: 712px; WIDTH: 24px; POSITION: absolute; TOP: 88px; HEIGHT: 22px"
                    type="hidden" size="1" runat="server">
                <asp:label id="Label14" style="Z-INDEX: 105; LEFT: -424px; POSITION: absolute; TOP: 176px"
                    runat="server" Font-Names="Arial" Width="90px" BackColor="Control" BorderColor="Black"
                    BorderWidth="1px" BorderStyle="Solid" Height="24px" Font-Bold="True"></asp:label><asp:textbox id="Syg1" style="Z-INDEX: 106; LEFT: -256px; POSITION: absolute; TOP: 200px" tabIndex="-1"
                    runat="server" BackColor="Green" ForeColor="Aqua" Font-Bold="True" ReadOnly="True"></asp:textbox><asp:textbox id="Syg3" style="Z-INDEX: 107; LEFT: -256px; POSITION: absolute; TOP: 248px" tabIndex="-1"
                    runat="server" Width="160px" BackColor="Green" ForeColor="Aqua" Font-Bold="True" ReadOnly="True"></asp:textbox><asp:textbox id="Syg2" style="Z-INDEX: 108; LEFT: -256px; POSITION: absolute; TOP: 224px" tabIndex="-1"
                    runat="server" BackColor="Green" ForeColor="Aqua" Font-Bold="True" ReadOnly="True"></asp:textbox><asp:label id="Label9" style="Z-INDEX: 109; LEFT: -256px; POSITION: absolute; TOP: 176px" runat="server"
                    Font-Names="Arial" Width="152px" BackColor="Control" BorderColor="Black" BorderWidth="1px" BorderStyle="Solid" Height="24px" Font-Bold="True">Sygnatura</asp:label><asp:textbox id="Label13" style="Z-INDEX: 110; LEFT: -424px; POSITION: absolute; TOP: 240px"
                    tabIndex="-1" runat="server" Width="41px" BackColor="ControlLight" BorderStyle="None" Height="28px" ReadOnly="True"></asp:textbox>
                    
                    <INPUT id="Skan" style="Z-INDEX: 113; LEFT: 712px; WIDTH: 24px; POSITION: absolute; TOP: 184px; HEIGHT: 22px"
                    type="hidden" size="1">
                    
                    <INPUT id="PageUpDown" style="Z-INDEX: 114; LEFT: 712px; WIDTH: 24px; POSITION: absolute; TOP: 216px; HEIGHT: 22px"
                    type="hidden" size="1" runat="server"> <INPUT id="MIN" style="Z-INDEX: 115; LEFT: -32px; WIDTH: 28px; POSITION: absolute; TOP: 352px; HEIGHT: 22px"
                    type="hidden" size="1" value="3">
                <INPUT id="MAX" style="Z-INDEX: 116; LEFT: 712px; WIDTH: 24px; POSITION: absolute; TOP: 280px; HEIGHT: 22px"
                    type="hidden" size="1" value="7">
                <INPUT id="UPDATE" style="Z-INDEX: 117; LEFT: 712px; WIDTH: 24px; POSITION: absolute; TOP: 56px; HEIGHT: 22px"
                    type="hidden" size="1" name="Hidden1" runat="server">
                <INPUT id="LpAktualne" style="Z-INDEX: 118; LEFT: -72px; WIDTH: 24px; POSITION: absolute; TOP: 352px; HEIGHT: 22px"
                    type="hidden" size="1" value="4" name="Hidden1" runat="server">
                <INPUT id="FOCUS" style="Z-INDEX: 121; LEFT: 712px; WIDTH: 24px; POSITION: absolute; TOP: 248px; HEIGHT: 22px"
                    type="hidden" size="1" name="Hidden1" runat="server">
                <INPUT id="m2" onmouseover="MenuOnMouseOver(this);PokazPodmenu_m2();" title="Alt +A" style="BORDER-RIGHT: #e5e5e5 0px solid; BORDER-TOP: #e5e5e5 0px solid; FONT-SIZE: 8pt; Z-INDEX: 125; LEFT: 48px; BORDER-LEFT: #e5e5e5 0px solid; WIDTH: 56px; BORDER-BOTTOM: #e5e5e5 0px solid; FONT-FAMILY: Arial; POSITION: absolute; TOP: 0px; HEIGHT: 20px; BACKGROUND-COLOR: #e5e5e5"
                    accessKey="A" onclick="this.blur();" tabIndex="-1" onmouseout="MenuOnMouseOut(this);UkryjPodmenu_m2();" type="button" value="Operacje" name="m2" runat="server">
                <INPUT id="m" style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; Z-INDEX: 126; LEFT: 224px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 544px; POSITION: absolute; TOP: 0px; HEIGHT: 20px; BACKGROUND-COLOR: #e5e5e5; BORDER-RIGHT-WIDTH: 0px"
                    tabIndex="-1" type="button" name="m" runat="server">
                <INPUT id="m1" onmouseover="MenuOnMouseOver(this);" title="Alt+T" style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 8pt; Z-INDEX: 147; LEFT: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 48px; FONT-FAMILY: Arial; POSITION: absolute; TOP: 0px; HEIGHT: 20px; BACKGROUND-COLOR: #e5e5e5; BORDER-RIGHT-WIDTH: 0px"
                    accessKey="T" onclick="window.close();" tabIndex="-1" onmouseout="MenuOnMouseOut(this);" type="button" value="Powrót" name="m1" runat="server">
                <INPUT id="m2_9" onmouseover="PodmenuOnMouseOver(this);PokazPodmenu_m2();" style="BORDER-RIGHT: #ffffff 2px solid; BORDER-TOP: #ffffff 2px solid; FONT-SIZE: 8pt; Z-INDEX: 142; LEFT: -152px; BORDER-LEFT: #ffffff 2px solid; WIDTH: 144px; BORDER-BOTTOM: #ffffff 2px solid; FONT-FAMILY: Arial; POSITION: absolute; TOP: 16px; HEIGHT: 20px; BACKGROUND-COLOR: #ffffff;"
                    accessKey="S" onclick="mskanujclick();" tabIndex="-1" onmouseout="PodmenuOnMouseOut(this);UkryjPodmenu_m2();"
                    type="button" value="Skanuj alt+S" runat="server">
                <INPUT id="m2_44" onmouseover="PodmenuOnMouseOver(this);PokazPodmenu_m2();" style="BORDER-RIGHT: #ffffff 2px solid; BORDER-TOP: #ffffff 2px solid; FONT-SIZE: 8pt; Z-INDEX: 133; LEFT: -152px; BORDER-LEFT: #ffffff 2px solid; WIDTH: 144px; BORDER-BOTTOM: #ffffff 2px solid; FONT-FAMILY: Arial; POSITION: absolute; TOP: 176px; HEIGHT: 20px; BACKGROUND-COLOR: #ffffff;"
                    accessKey="I" onclick="mindeksyclick();" tabIndex="-1" onmouseout="PodmenuOnMouseOut(this);UkryjPodmenu_m2();" type="button" value="Indeksy alt+I"
                    name="m2_2" runat="server">
                <INPUT id="m2_5" onmouseover="PodmenuOnMouseOver(this);PokazPodmenu_m2();" style="BORDER-RIGHT: #ffffff 2px solid; BORDER-TOP: #ffffff 2px solid; FONT-SIZE: 8pt; Z-INDEX: 141; LEFT: -152px; BORDER-LEFT: #ffffff 2px solid; WIDTH: 144px; BORDER-BOTTOM: #ffffff 2px solid; FONT-FAMILY: Arial; POSITION: absolute; TOP: 96px; HEIGHT: 20px; BACKGROUND-COLOR: #ffffff;"
                    accessKey="O" onclick="modznaczclick();" tabIndex="-1" onmouseout="PodmenuOnMouseOut(this);UkryjPodmenu_m2();" type="button"
                    value="Odznacz wszystkie alt+O" name="m2_2">
                <INPUT id="m2_6" onmouseover="PodmenuOnMouseOver(this);PokazPodmenu_m2();" style="BORDER-RIGHT: #ffffff 2px solid; BORDER-TOP: #ffffff 2px solid; FONT-SIZE: 8pt; Z-INDEX: 143; LEFT: -152px; BORDER-LEFT: #ffffff 2px solid; WIDTH: 144px; BORDER-BOTTOM: #ffffff 2px solid; FONT-FAMILY: Arial; POSITION: absolute; TOP: 76px; HEIGHT: 20px; BACKGROUND-COLOR: #ffffff;"
                    accessKey="W" onclick="mzaznaczclick();" tabIndex="-1" onmouseout="PodmenuOnMouseOut(this);UkryjPodmenu_m2();" type="button" value="Zaznacz wszystkie  alt+W"
                    name="m2_2">
                <INPUT id="m2_7" onmouseover="PodmenuOnMouseOver(this);PokazPodmenu_m2();" style="BORDER-RIGHT: #ffffff 2px solid; BORDER-TOP: #ffffff 2px solid; FONT-SIZE: 8pt; Z-INDEX: 134; LEFT: -152px; BORDER-LEFT: #ffffff 2px solid; WIDTH: 144px; BORDER-BOTTOM: #ffffff 2px solid; FONT-FAMILY: Arial; POSITION: absolute; TOP: 56px; HEIGHT: 20px; BACKGROUND-COLOR: #ffffff;"
                    accessKey="D" onclick="mpobierzzdyskuclick();" tabIndex="-1" onmouseout="PodmenuOnMouseOut(this);UkryjPodmenu_m2();"
                    type="button" value="Pobierz z dysku alt+D" name="m2_2" runat="server">
                <INPUT id="m2_8" onmouseover="PodmenuOnMouseOver(this);PokazPodmenu_m2();" style="BORDER-RIGHT: #ffffff 2px solid; BORDER-TOP: #ffffff 2px solid; FONT-SIZE: 8pt; Z-INDEX: 139; LEFT: -152px; BORDER-LEFT: #ffffff 2px solid; WIDTH: 144px; BORDER-BOTTOM: #ffffff 2px solid; FONT-FAMILY: Arial; POSITION: absolute; TOP: 36px; HEIGHT: 20px; BACKGROUND-COLOR: #ffffff;"
                    accessKey="E" onclick="mwyslijmailaclick();" tabIndex="-1" onmouseout="PodmenuOnMouseOut(this);UkryjPodmenu_m2();" type="button" value="Wyślij e-mail alt+E" name="m2_2">
                <INPUT id="m2_3" onmouseover="PodmenuOnMouseOver(this);PokazPodmenu_m2();" style="BORDER-RIGHT: #ffffff 2px solid; BORDER-TOP: #ffffff 2px solid; FONT-SIZE: 8pt; Z-INDEX: 137; LEFT: -152px; BORDER-LEFT: #ffffff 2px solid; WIDTH: 144px; BORDER-BOTTOM: #ffffff 2px solid; FONT-FAMILY: Arial; POSITION: absolute; TOP: 136px; HEIGHT: 20px; BACKGROUND-COLOR: #ffffff;"
                    accessKey="W" onclick="mpowiekszclick();" tabIndex="-1" onmouseout="PodmenuOnMouseOut(this);UkryjPodmenu_m2();"
                    type="button" value="Powiększ alt+P">
                <INPUT id="m2_10" onmouseover="PodmenuOnMouseOver(this);PokazPodmenu_m2();" style="BORDER-RIGHT: #ffffff 2px solid; BORDER-TOP: #ffffff 2px solid; FONT-SIZE: 8pt; Z-INDEX: 138; LEFT: -152px; BORDER-LEFT: #ffffff 2px solid; WIDTH: 144px; BORDER-BOTTOM: #ffffff 2px solid; FONT-FAMILY: Arial; POSITION: absolute; TOP: 156px; BACKGROUND-COLOR: white;"
                    accessKey="M" onclick="mpomniejszclick();" tabIndex="-1" onmouseout="PodmenuOnMouseOut(this);UkryjPodmenu_m2();" type="button" value="Pomniejsz alt+M">
               <INPUT id="m2_1" onmouseover="PodmenuOnMouseOver(this);PokazPodmenu_m2();" style="BORDER-RIGHT: #ffffff 2px solid; BORDER-TOP: #ffffff 2px solid; FONT-SIZE: 8pt; Z-INDEX: 136; LEFT: -152px; BORDER-LEFT: #ffffff 2px solid; WIDTH: 144px; BORDER-BOTTOM: #ffffff 2px solid; FONT-FAMILY: Arial; POSITION: absolute; TOP: 116px; HEIGHT: 20px; BACKGROUND-COLOR: #ffffff;"
                    accessKey="U" onclick="musunclick();" tabIndex="-1" onmouseout="PodmenuOnMouseOut(this);UkryjPodmenu_m2();"
                    type="button" value="Usuń zaznaczone    alt+U" name="m2_1" runat="server">
               <INPUT id="m2_45" onmouseover="PodmenuOnMouseOver(this);PokazPodmenu_m2();" style="BORDER-RIGHT: #ffffff 2px solid; BORDER-TOP: #ffffff 2px solid; FONT-SIZE: 8pt; Z-INDEX: 140; LEFT: -152px; BORDER-LEFT: #ffffff 2px solid; WIDTH: 144px; BORDER-BOTTOM: #ffffff 2px solid; FONT-FAMILY: Arial; POSITION: absolute; TOP: 216px; HEIGHT: 20px; BACKGROUND-COLOR: #ffffff;"
                    accessKey="K" onclick="podgladclick();" tabIndex="-1" onmouseout="PodmenuOnMouseOut(this);UkryjPodmenu_m2();" type="button" value="Podgląd alt+K">&nbsp;
                <asp:label id="Niezalogowany" style="Z-INDEX: 129; LEFT: 112px; POSITION: absolute; TOP: 368px;display: none"
                    runat="server" Width="506px" BackColor="White" ForeColor="Red" Font-Bold="True" Visible="False">NIE JESTEŚ ZALOGOWANY WIĘC MODUŁ SKANOWANIE NIE BĘDZIE DZIAŁAŁ POPRAWNIE. PROSZĘ ZALOGUJ SIĘ DO SYSTEMU.</asp:label><INPUT id="ip" style="Z-INDEX: 132; LEFT: 712px; WIDTH: 24px; POSITION: absolute; TOP: 408px; HEIGHT: 22px"
                    type="hidden" size="1" runat="server"> <INPUT id="hCadViewXLicencja" style="Z-INDEX: 144; LEFT: 712px; WIDTH: 24px; POSITION: absolute; TOP: 440px; HEIGHT: 22px"
                    type="hidden" size="1" name="Hidden1" runat="server">
                    
                    <div class="center" style="background: #ffffff;">
                        <span id="errorControl" runat="server" style=" display: none; color: Red; font-weight:bold;">NIE JESTEŚ ZALOGOWANY WIĘC MODUŁ SKANOWANIE NIE BĘDZIE DZIAŁAŁ POPRAWNIE.<br /> PROSZĘ O ZALOGOWANIE W SYSTEMIE.</span> </div></asp:Panel>
                        
                  
                    <asp:HiddenField ID="HidenFocusLpGrid" runat="server" />
                    <DIV  id="UploaderMenu"                 
                    style="Z-INDEX: 121; LEFT: 199px; WIDTH: 494px; POSITION: absolute; TOP: 370px; HEIGHT: 88px; overflow:auto" >
                    
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server" >               
                    <ContentTemplate>                                         
                       <CuteWebUI:Uploader   ID="Uploader1"  runat="server"
                            InsertButtonID="HiddenButtonOtworz" MultipleFilesUpload="True"
                            DialogFilter="All files|*.*|PDF Files|*.pdf|JPEG Images|*.jpg;*.jpeg;*.jpe;*.jfif|PNG Images|*.png|GIF Images|*.gif|BMP Images|*.bmp|TIFF Images|*.tiff;*.tif;"
                            MaxFilesLimitMsg=""
                            OnFileValidating="Uploader_FileValidating"  ProgressPanelWidth="300"
                             
                            NumFilesShowCancelAll="-1" onuploadcompleted="Uploader1_UploadCompleted1"
                            CancelAllMsg="Anuluj wszystkie" CancelText="Anuluj"
                            CancelUploadMsg="Anuluj ładowanie" UploadingMsg="Ładowanie..." FileTooLargeMsg="{0} Nie może być załadowany!Rozmiar pliku ({1}) jest za duży. Maksymalny dozwolony rozmiar pliku to:  {2}."
                            InsertText="Załaduj pliki"
                            WindowsDialogLimitMsg="" UploadType="Flash">
                            
                            <VALIDATEOPTION MaxSizeKB="20480" />
                        </CuteWebUI:Uploader>
                       
        
                            <!--<asp:ListBox runat="server" ID="ListBoxEvents" Height="300" Width="400"></asp:ListBox>-->
                            <!--<asp:Button ID="ButtonPostBack" Text="Testuj postback" runat="server"/>    -->
                       
                    </ContentTemplate>
                </asp:UpdatePanel>                       
        
                              
                  </DIV>
                  <asp:label id="labelSygnaturaModSkan" runat="server">Sygnatura teczki </asp:label>
                 <asp:label id="SygnaturaTextModSkan" runat="server" ReadOnly="True"></asp:label>              
                <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="buttonTargetControl" Y="340" PopupControlID="panelModalPopupExtender" BackgroundCssClass="modalBackground" DropShadow="true" />
                <asp:Button ID="buttonTargetControl" runat="server" style="display: none;" />
                       
           
                <asp:HiddenField ID="HiddenFieldBlokada" runat="server" />
                       
           
            </form>
        </body>
    </html>

    Regards,
    Bart
  •  08-02-2009, 11:00 PM 54446 in reply to 54357

    Re: JavaScript Error Object required

    Bart,
     
    We have tested your code .
     
    And we think that is not the uploader issue.
     
    I suggest you remove the uploader in that page and test again.
     
    Regards,
    Terry
     
View as RSS news feed in XML