\n'); } // 09.8.20 function closeMaskDiv() { $("maskLayer").style.display="none"; $("maskDiv").style.display="none"; } function openMaskDiv() { $("maskLayer").style.display="block"; $("maskDiv").style.display="block"; } function toinsertemote_new() { if(this.emote.location.href == "about:blank") this.emote.location.href="/face/face_new.html"; $("emote_div").style.display=$("emote_div").style.display==""?"none":""; } function tomodifyfont() { var op_div=$("box-main-l-disp"); if($("font-setting").style.display == "none") { $("font-setting").style.display=""; this.font_frame.location.href="/face/font.html"; op_div.style.height = (op_div.offsetHeight - 25) + 'px'; } else { $("box-main-l-disp").style.height = (op_div.offsetHeight +25) + 'px';; $("font-setting").style.display = "none"; } } function getPanelColor(obj){ try{ getDocIFrameById("font_frame").getPanelColor(obj); }catch(e){} } function colorPanelClose(){ try{ getDocIFrameById("font_frame").colorClose(); }catch(e){} } //评分 function toinsertvote() { if (obj_id==0) { display_msg(" "+infos[50]); return false; } if(!vote_true){ $("vote_frame").style.display=""; getDocIFrameById("vote_frame").location.reload(); openMaskDiv(); } else { $("box-main-l-disp").innerHTML=" "+infos[39]; $('box-main-l-disp').scrollTop+=100; } return false; } function save_vote_kf(value){ if(!vote_true){ vote_true=true; selectvote = value; var url = "/jsp_admin/save_vote.jsp"; var senddata="objId="+obj_id+"&vote="+selectvote+"&myId="+myid; xmlhttp.open("POST",url,false); xmlhttp.setRequestHeader("Content-Length",senddata.length); xmlhttp.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded"); xmlhttp.send(senddata); var restxt = xmlhttp.responseText; if (lnkover==3) display_msg(infos[38]); else display_msg(infos[49]); hidden_vote(); closeMaskDiv(); window.onbeforeunload=null; $("vote_frame").src = "about:blank"; if(companyId == "21502"){ if(selectvote == -1) selectvote = 1; else selectvote =2; var tk_ob = getDocIFrameById("vote_frame").document.getElementById("vote_content"); var tk_val=''; if(tk_ob)tk_val = escape(tk_ob.value); var str ="WorkerId="+obj_id+"&NameCode="+myid+"&Status="+selectvote+"&Content="+tk_val; send_vote_to_client(str,1); return; } }else{ display_msg(infos[39]); } close_window(); } function close_window(){ if(isNeedToCloseBrowser) { if(window.top) { window.top.close(); } window.close(); } } function send_vote_to_client(url,close){ var tjs_src = "http://web.easytour.cn/OnlineConsulting.ashx?"+url; var script=document.createElement("script"); script.type='text/javascript'; script.charst="utf-8" script.src=tjs_src; document.getElementsByTagName("HEAD")[0].appendChild(script); if(close)close_window(); } function onbeforeunload_handler() { isNeedToCloseBrowser = true; toinsertvote(); var msg = infos[70]; return msg; } //-->