
        var timeoutID = 0;
        Sys.Application.add_load(PageLoad);
        Sys.Application.add_unload(PageUnload);
        function PageLoad() {
            if($get('hiddenFieldScreenWidth'))
                $get('hiddenFieldScreenWidth').value = screen.width;
            if($get('hiddenFieldScreenHeight'))
                $get('hiddenFieldScreenHeight').value = screen.height;

//            var textboxProfile = $get('tbQueryStringProfile');
//            if (textboxProfile)
//                $addHandler(textboxProfile, 'keydown', onQueryStringProfileTextChanged);
//                
//            var textboxAccount = $get('tbQueryStringAccount');
//            if (textboxAccount)
//                $addHandler(textboxAccount, 'keydown', onQueryStringAccountTextChanged);
                
        }
        
        function PageUnload()
        {
//            $removeHandler($get('tbQueryStringProfile'), 'keydown', onQueryStringProfileTextChanged);
//            $removeHandler($get('tbQueryStringAccount'), 'keydown', onQueryStringAccountTextChanged);
        }

//        function onQueryStringProfileTextChanged()
//        {
//            if(timeoutID)
//            {
//                window.clearTimeout(timeoutID);
//            }
//            timeoutID = window.setTimeout(updateQueryStringProfile, 500);
//        }
        
//        function updateQueryStringProfile()
//        {
//            __doPostBack('tbQueryStringProfile', '');
//        }
        
//        function onQueryStringAccountTextChanged()
//        {
//            if(timeoutID)
//            {
//                window.clearTimeout(timeoutID);
//            }
//            timeoutID = window.setTimeout(updateQueryStringAccount, 500);
//        }

//        function updateQueryStringAccount()
//        {
//            __doPostBack('tbQueryStringAccount', '');
//        }



        
  