function AddFavorite(sURL,sTitle){
		try{
			window.external.addFavorite(sURL,sTitle);
		}catch(e){
			try{
				window.sidebar.addPanel(sTitle,sURL,"");
			}catch(e){
				alert("Favorite Failed，Please Use The Ctrl+D add");
			}
		}
	}
	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("Times rejected by the browser operation!\nPlease enter in the browser address bar about:config and enter\and then take [signed.applets.codebase_principal_support]value set up 'true',chick twice。");
				}
				var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
				prefs.setCharPref('browser.startup.homepage',vrl);
			}
		}
	}
