//左右翻页
document.onkeydown=function(b){
b=(b)?b:window.event;
var page_index = '1';
var page_num = '4';
if(""==page_index)return;
if(b.keyCode=="37"){
if(page_index > 1){
window.location.href='/q_0.shtml';
}
}else if(b.keyCode=="39"){
if(parseInt(page_index) < parseInt(page_num)){
window.location.href='/q_2.shtml';
}
}
}
function closed(){
document.getElementById('close_em').style.display='none';
setCookie('soft_page_tip','1') ;
}
//加入收藏夹
function AddFavorite(sURL, sTitle) {
try {
window.external.addFavorite(sURL, sTitle);
} catch (e) {
try {
window.sidebar.addPanel(sTitle, sURL, "");
} catch (e) {
alert(' 加入收藏失败,请使用Ctrl+D进行添加');
}
}
}