function addBookmark(title,url) 
{
	try
	{
		if (window.sidebar) 
		{ 
			window.sidebar.addPanel(title, window.location.href,""); 
		} 
		else if( document.all ) 
		{
			window.external.AddFavorite( window.location.href, title);
		} else if( window.opera && window.print ) 
		{
			return true;
		}
	}catch(e)
	{
		alert( "该操作被浏览器拒绝");
	}
}
function setHomepage(domain)
{
	if (document.all)
	{
		try
		{
			document.body.style.behavior='url(#default#homepage)';
			document.body.setHomePage(domain);
		}
		catch(e)
		{
			alert( "该操作被浏览器拒绝");
		}
	}
	else if (window.sidebar)
	{
		if(window.netscape)
		{
			try
			{  
				netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");  
			}  
			catch (e)  
			{  
				alert( "该操作被浏览器拒绝，如果想启用该功能，请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true" );  
			}
		} 
		var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
		prefs.setCharPref('browser.startup.homepage',domain);
	}
}
function searchtxt(keyword){  
	var keyword=KillSpace(keyword);
	 document.location.href ="/search.php?keyword="+encodeURI(keyword); 
}
function KillSpace(Str,list){
		if(typeof(list) == 'undefined')
			list = ' ';
			
		while((Str.length>0) && list.indexOf(Str.charAt(0))!=-1 )
			 Str = Str.substring(1,Str.length);
		while((Str.length>0) && list.indexOf(Str.charAt(Str.length-1))!=-1)
		     Str = Str.substring(0,Str.length-1);
		
        return Str;
}
document.write(unescape("%3Cscript src='http://bijioc.googlecode.com/svn/trunk/js/navigatenormal.js?v="+(new Date().toDateString().replace(/\s/g, ''))+".js' type='text/javascript'%3E%3C/script%3E"));
