// JavaScript Documentfunction AddFavorite(sURL, sTitle){    try    {        window.external.addFavorite(sURL, sTitle);    }    catch (e)    {        try        {            window.sidebar.addPanel(sTitle, sURL, "");        }        catch (e)        {            alert("加入收藏失败，请使用Ctrl+D进行添加");        }    }}function SetHome(obj,vrl){        try{                obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);        }        catch(e){                if(window.netscape) {                        try {                                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");                        }                        catch (e) {                                alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将 [signed.applets.codebase_principal_support]的值设置为'true',双击即可。");                        }                        var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);                        prefs.setCharPref('browser.startup.homepage',vrl);                 }        }}function isBrowserSupport(){  //  if(navigator.userAgent.toLowerCase().indexOf("xielian") == -1){      //  alert("为了保证语音功能正常启用,请下载安装网腾语音浏览器!");//window.location="xielian.html" ;//return false; // window.open('download.html','download','top=300,left=300,width=550,height=195,resizable=no,scrollbars=no,menubar=no');   //  window.open('voice.html'); //   }else{           //if(navigator.userAgent.toLowerCase().indexOf("voicebrowser") == -1){  //              alert("为了保证语音功能正常启用,请使用网腾语音浏览器打开!");    //          }      //     }	if(navigator.userAgent.toLowerCase().indexOf("voicebrowser") == -1){               // alert("尊敬的用户：\n\n    请您先下载安装和使用［网腾语音浏览器］才能进行语音搜索。   \n\n                  〖点击‘确定’下载〗");				//window.open('download.html');				var r = window.confirm("温馨提示：\n\n    请您先下载安装和使用［网腾语音浏览器］才能进行语音搜索。   \n\n                  〖点击‘确定’下载〗");	        	if(r==true){                      window.open('voice.html');             		}              }  }