
        function doBuilder() {
            //            var strName = document.getElementById("txtName").value.replace(/^\s+|\s+$/g, '');
            //            var strURI = document.getElementById("txtURL").value.replace(/^\s+|\s+$/g, '');
            //            var strEncoding = document.getElementById("inputEncoding").value;
            //            if (strURI.length < 1) { alert("Please enter the URL of the search results page."); document.getElementById("txtURL").focus(); return false; }
            //            if (strURI.indexOf("TEST") < 0) { alert("The search results URL must contain the word TEST. Please check the URL. It is possible that this tool cannot be used to build a query for that search engine."); document.getElementById("txtURL").focus(); return false; }
            //            if (strName.length < 1) { alert("Please enter a name for the new Search Provider."); document.getElementById("txtName").focus(); return false; }
            //            var strQuery = "Encoding=" + encodeURIComponent(strEncoding) + "&Name=" + encodeURIComponent(strName) + "&URI=" + encodeURIComponent(strURI);
            //            var strAddURI = "http://www.microsoft.com/windows/ie/searchguide/spbuilder.mspx?" + strQuery;
            try {
                window.external.AddSearchProvider('SearchProvider.xml');
            }
            catch (eX) {
                if (70 == (eX.number & 0xFFFF)) {
                    alert("For security reasons, you must use the mouse (or the Enter key) to click the Install button.");
                } else {
                    alert("Unable to add Search Provider. The Create Your Own tool requires Internet Explorer." + " [" + (eX.number & 0xFFFF) + "]");
                }
            }
            return false;
        }