function getCookie(A){var B,C=new RegExp("(^| )"+A+"=([^;]*)(;|$)");if(B=document.cookie.match(C)){return unescape(B[2])}else{return null}}function setLogin(){if(getCookie("gwp_l")!=null&&getCookie("gwp_l")!=""&&getCookie("gwp_c")!=null&&getCookie("gwp_c")!=""&&getCookie("dengluName")!=null&&getCookie("dengluName")!=""){document.write("你好,"+getCookie("dengluName")+'&nbsp;<a href="http://office.glass.cn/default.aspx" target=\'_blank\'>[进入商务室]</a>&nbsp;<a href="http://office.glass.cn/logout.aspx">[退出]</a>')}else{document.write("<a  href=\"http://office.glass.cn/login.aspx\" target='_blank'>[请登录]</a><a href=\"http://office.glass.cn/join.html\" target='_blank'>[免费注册]</a>")}};
