function killerrors() { return true; } window.onerror = killerrors; function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } function GetEleId(nnn){ return document.getElementById(nnn); } function ClickTdId(p){ //如果有N个标签,就将i<=N; //本功能非常OK,兼容IE7,FF,IE6; for(var q=1;q<=2;q++){ GetEleId('tb_News_'+q).className='Change_title'; GetEleId('NewsDiv'+q).style.display="none"; GetEleId('NewsDiv'+p).style.display="block"; GetEleId('tb_News_'+p).className='Change_title2'; } } function ClickProClassId(A){ //如果有N个标签,就将i<=N; //本功能非常OK,兼容IE7,FF,IE6; for(var B=1;B<=2;B++){ GetEleId('tb_Product_'+B).className='Change_Product_Title'; GetEleId('ProductClassDiv'+B).style.display="none"; GetEleId('ProductClassDiv'+A).style.display="block"; GetEleId('tb_Product_'+A).className="Change_Product_Title_Hover"; } } function addFavorite2() { var url = window.location; var title = document.title; var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf("360se") > -1) { alert("由于360浏览器功能限制,请按 Ctrl+D 手动收藏!"); } else if (ua.indexOf("msie 8") > -1) { window.external.AddToFavoritesBar(url, title); //IE8 } else if (document.all) { try{ window.external.addFavorite(url, title); }catch(e){ alert('您的浏览器不支持,请按 Ctrl+D 手动收藏!'); } } else if (window.sidebar) { window.sidebar.addPanel(title, url, ""); } else { alert('您的浏览器不支持,请按 Ctrl+D 手动收藏!'); } }