                function submitSearch() {
                 
                 
                var request = false;
                try {
                    request = new XMLHttpRequest();
                } catch (trymicrosoft) {
                    try {
                        request = new ActiveXObject("Msxml2.XMLHTTP");
                    } catch (othermicrosoft) {
                        try {
                            request = new ActiveXObject("Microsoft.XMLHTTP");
                        } catch (failed) {
                            request = false;
                        }
                    }
                }

                if (!request)
                    alert("Error initializing XMLHttpRequest!");
                    
                    

                var Q = document.getElementById("search").value;
                var url = "SearchHandler.ashx?Q=" + escape(Q);
                request.open("GET", url, true);
                request.send(null);
               
                    
                }
                //////////////////////////

                function setLocation() {
                    // set the location path specified in the textbox.
                    location.href = document.getElementById("search").value;
                }


