
	//设为首页与加入收藏浏览器检查
function addBookmark(title) {
			 var url=parent.location.href;
			 if (window.sidebar) { 
					window.sidebar.addPanel(title, url,""); 
			 } else if( document.all ) {
			 window.external.AddFavorite( url, title);
			 } else if( window.opera && window.print ) {
			 return true;
			 }
}
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("抱歉！您的浏览器不支持直接设为首页。请在浏览器地址栏输入“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',vrl);
                 }
        }
}


function copyToClipBoard(){
			 var clipBoardContent="";
			 clipBoardContent+='上虞二手汽车|上虞二手车价格|上虞二手车评估|上虞二手车资讯|上虞二手车市场|上虞网';
			 clipBoardContent+="\n";
			 clipBoardContent+=parent.location.href;
			 window.clipboardData.setData("Text",clipBoardContent);
			 alert("复制成功，请粘贴到你的QQ/MSN/BLOG/论坛上推荐给你的好友");
		}

function doZoom(size)
{document.getElementById('zoom').style.fontSize=size+'px';}
		
