function goPCPage(obj){ var hcdir = getCookie('hcdir'); if(hcdir == '' || typeof hcdir == 'undefined' ){hcdir = '../../';} setCookie('jump','1',"",hcdir,1); history.forward(); location.href = obj.href; return false; } function setCookie(name, value, domain, path, expires, secure) { if (!name) return; var str = name + "=" + escape(value); if (domain) { if (domain == 1) domain = location.hostname.replace(/^[^\.]*/, ""); str += "; domain=" + domain; } if (path) { if (path == 1) path = location.pathname; str += "; path=" + path; } if (expires) { var nowtime = new Date().getTime(); expires = new Date(nowtime + (60 * 60 * 24 * 1000 * expires)); expires = expires.toGMTString(); str += "; expires=" + expires; } if (secure && location.protocol == "https:") { str += "; secure"; } document.cookie = str; } // ------------------ cookie ---------------------- function getCookie(key) { var cookieString = document.cookie; var cookieKeyArray = cookieString.split(";"); for (var i=0; i