function changeEventIndexImg(d){var b;var a;for(var c=0;c<3;c++){b=document.getElementById("event_index_hot_img_div"+(c+1));a=document.getElementById("event_index_hot_img_li"+(c+1));if(d==(c+1)&&a!=null&&b!=null){a.className="hover";b.style.display="block";}else{if(a!=null&&b!=null){a.className="";b.style.display="none";}}}}function setEventTitleStyle(){var c=getVal("activity_type");var a=event_con_title_ul.getElementsByTagName("li");var d;if(c==0){d=0;}else{if(c==1){d=1;}else{if(c==2){d=2;}else{if(c==3){d=3;}else{if(c==4){d=4;}}}}}for(var b=0;b<5;b++){if(d==b){a[b].className="event_tabhover";a[b].getElementsByTagName("div")[0].className="event_tabhoverl";}else{a[b].className="event_tab";a[b].getElementsByTagName("div")[0].className="event_tabl";}}}function setFlag(){var a=document.getElementsByName("flag");for(var c=0;c<a.length;c++){var b=getVal("flag_"+(c+2));if(b==0){document.getElementById("s"+(c+2)).style.display="block";}else{document.getElementById("s"+(c+2)).style.display="none";}}}function enventAtention(){getmodule("event_main_div","bo_id=event_attention_bo&activity_id="+getVal("activity_id")+"&activity_type="+getVal("activity_type"));}function visitsLog(b){var c="ajax.do?method=doApp&app_attribute=activitiesVisitsLog&active_id="+b;var d=new Ajax.Request(c,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function a(e){str=e.responseText;}});}function productLog(b,c){var d="ajax.do?method=doApp&app_attribute=activitiesProductLog&active_id="+b+"&product_id="+c;var e=new Ajax.Request(d,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function a(f){str=f.responseText;}});}function setActivityAddress(){var a=document.getElementById("activity_address").value;var b=document.getElementById("activity_address_span");if(a!=""&a!=null){b.innerHTML="活动地点:"+a;}}function getTicket(b,d,a,c){alert("活动已结束，请关注移动商店其它活动！");return;}function getLotteryForCarnival(){if(!document.getElementById("nickname")){getmodule("pubwin","bo_id=cust_user_login_page_bo_div&logintype=login_div");}else{setTimeout("document.getElementById('event_migu_apDiv4').style.display = 'block';",1500);}}function closeThirdCarnivalDiv(){document.getElementById("event_migu_apDiv4").style.display="none";}function AttentionActivity(a,b){getmodule("pubwin","bo_id=event_attention_bo&activity_id="+a+"&activity_type="+b+"&function_name=enventAtention&function_params= ");if(document.getElementById("totalitem_Statistics")){alert("谢谢关注！");}}function OrderEventProduct(d){var j=d.split("|")[0];var e=d.split("|")[1];var h=d.split("|")[2];var b=document.getElementById("ssssnickname");var i="";var g=d.split("|")[3];if(e=="0"){i=window.confirm("请确认是否订制此业务？");}if(i==true){var c="ajax.do?method=doApp&app_attribute=prodIsExpeQuery&productid="+getVal("productid");var a=new Ajax.Request(c,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function f(l){str=l.responseText;}});if(e=="0"&&str=="0"){alert("您已经免费体验了此业务，请取消免费体验后再订制！");if(typeof(b)=="undefined"||b==null){window.location.reload();}return;}else{var c="ajax.do?method=doApp&app_attribute=busiSubProd&productId="+j+"&actionType="+e+"&type="+h;var a=new Ajax.Request(c,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function f(l){str=l.responseText;}});alert(str.split("|")[2]);if(str.split("|")[0]=="0"&&str.split("|")[1]=="000000"){productLog(g,j);if(g==19){var c="ajax.do?method=doApp&app_attribute=musicActiveWinning&&active_id="+g+"&product_id="+j;var a=new Ajax.Request(c,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function f(l){str=l.responseText;}});if(str==-1){document.getElementById("event_migu_apDiv3").style.display="block";}else{if(str>100){document.getElementById("event_migu_apDiv3").style.display="block";}else{if(str<=100){document.getElementById("event_migu_apDiv3").style.display="block";}else{alert(str);}}}}}else{if(str.split("|")[0]=="0"&&str.split("|")[1].substring(0,5)=="66666"){gxjZhangyInfo(str.split("|")[1],"dingzhi");}}}}}function closeCarnivalDivone(){document.getElementById("event_migu_apDiv2").style.display="none";}function closeCarnivalDivtwo(){document.getElementById("event_migu_apDiv3").style.display="none";}function showMonthTreasure(){var b="ajax.do?method=doApp&app_attribute=monthNewTreasure";var a=createXMLHTTP();a.open("POST",b,true);a.setRequestHeader("Content-Type","application/x-www-form-urlencoded");a.send("");a.onreadystatechange=function(){if(a.readyState==4){if(a.status==200){var c=a.responseText;if(c!=""){if(document.getElementById("show_month_treasure")){document.getElementById("show_month_treasure").innerHTML=c;}}}}};}function setStyleInEvent(b){if(document.getElementById(b)==null){return false;}else{var a=document.getElementById(b).childNodes;for(k=0;k<a.length;k++){a[k].onmouseover=function(){this.style.background="#F2F2F2";};a[k].onmouseout=function(){this.style.background="#FFF";};}}}function goToEventInfo(b,c,a){if(b=="23"){window.open("../../139sc/resource/html/activity/activity_runzhi.html");}else{if(b=="24"){window.open("../../139sc/activity/christmas_2009/christmas.jsp","");}else{if(b=="25"){window.open("../../139sc/activity/meiyanfang/meiyanfang.jsp","");}else{if(b=="26"){window.open("../../139sc/activity/avater/avater.jsp","");}else{if(b=="27"){window.open("../../139sc/activity/zhouenlai/zhou.jsp","");}else{if(b=="28"){window.open("../../139sc/activity/backroom/backroom.jsp","");}else{if(b=="31"){window.open("../../139sc/activity/yangcl/yangcl.jsp","");}else{if(b=="29"){window.open("../../139sc/activity/solareclipse/solareclipse.jsp","");}else{if(b=="30"){window.open("../../139sc/activity/sheep/sheep.jsp","");}else{if(b=="33"){window.open("../../139sc/activity/worldexp/worldexp.jsp","");}else{if(b=="34"){window.open("../../139sc/activity/yuanyl/yyl.jsp","");}else{if(b=="35"){window.open("../../139sc/activity/xiaoyaxuan/xiaoyaxuan.jsp","");}else{if(b=="36"){window.open("../../139sc/activity/laba/laba.jsp","");}else{if(b=="37"){window.location.href="initPage?topid=gxj_top&buid=acitivity_gxj_index_bu&tailid=tail";}else{if(b=="38"){window.open("../../activity/yearscan/index.jsp","");}else{if(b=="45"){window.location.href="initPage?topid=valent_top&buid=activity_valentineday_bu&tailid=tail";}else{if(b=="46"){window.location.href="initPage?topid=moma_top&buid=event_duancai_bu&tailid=tail";}else{if(b=="47"){window.location.href="initPage?topid=activity_tiger_top&buid=activity_tiger_bu&tailid=tail";}else{if(b=="49"){window.location.href="initPage?topid=activity_yuanxiao_top&buid=activity_yuanxiao_bu&tailid=tail";}else{if(b=="51"){window.location.href="initPage?topid=act_musichappy_top&buid=act_musichappy_bu&tailid=tail";}else{if(b=="52"){window.location.href="initPage?topid=activity_huangyue_top&buid=activity_huangyue_bu&tailid=tail";}else{if(b=="50"){window.location.href="initPage?topid=activity_jrnovel_top&buid=activity_jrnovel_bu&tailid=tail";}else{if(b=="54"){window.location.href="initPage?topid=act_pleased_top&buid=act_pleased_bu&tailid=tail";}else{if(b=="55"){window.location.href="initPage?topid=act_xuqianya_top&buid=act_xuqianya_bu&tailid=tail";}else{if(b=="56"){window.location.href="initPage?topid=act_sulisalesxhibution_top&buid=act_sulisalesxhibution_bu&tailid=tail";}else{if(b=="76"){window.location.href="initPage?topid=act_transferbox_top&buid=act_transferbox_bu&tailid=tail";}else{if(b=="77"){window.location.href="initPage?topid=act_alice_top&buid=act_alice_bu&tailid=tail";}else{if(b=="161"){window.location.href="initPage?topid=act_foolday_top&buid=act_foolday_bu&tailid=tail";}else{if(b=="162"){window.location.href="initPage?topid=act_slack_top&buid=act_slack_bu&tailid=tail";}else{if(b=="163"){window.location.href="initPage?topid=act_easion_top&buid=act_easion_bu&tailid=tail";}else{if(b=="164"){window.location.href="initPage?topid=act_readevent_top&buid=act_readevent_bu&tailid=tail";}else{if(b=="242"){window.location.href="initPage?topid=act_hotmusicbroad_top&buid=act_hotmusicbroad_bu";}else{if(b=="243"){window.location.href="initPage?topid=gxj_wulin_top&buid=gxj_wulinmeeting_bu&tailid=tail";}else{if(b=="244"){window.location.href="initPage?topid=act_motherday10_top&buid=act_motherday10_bu&tailid=tail";}else{if(b=="245"){window.location.href="initPage?topid=act_commemorate512_top&buid=act_commemorate512_bu&tailid=tail";}else{if(b=="246"){window.location.href="initPage?topid=act_mymagic_top&buid=act_mymagic_bu&tailid=tail";}else{if(b=="247"){window.location.href="initPage?topid=act_campusshow_top&buid=act_campusshow_bu&tailid=tail";}else{if(b=="248"){window.location.href="initPage?topid=act_sdd_top&buid=act_sadingding_bu&tailid=tail";}else{if(b=="249"){window.location.href="initPage?topid=act_worldcup_top&buid=act_worldcup_bu&tailid=tail";}else{if(b=="250"){window.location.href="initPage?topid=act_Tangs_top&buid=act_Tangs_bu&tailid=tail";}else{if(b=="251"){window.location.href="initPage?topid=act_boysing_top&buid=act_boysing_bu&tailid=tail";}else{if(b=="252"){window.location.href="initPage?topid=act_FallMarketing_top&buid=act_FallMarketing_bu&tailid=tail&toui=0";}else{if(b=="253"){window.location.href="initPage?topid=act_ChineseValentineDay_top&buid=act_ChineseValentineDay_bu&tailid=tail";}else{if(b=="254"){window.location.href="initPage?topid=act_midautumn_top&buid=act_midautumn_bu&tailid=tail";}else{if(b=="255"){window.location.href="initPage?topid=act_snMess_top&buid=act_snMess_bu&tailid=tail";}else{if(b=="256"){window.location.href="initPage?topid=act_NationalDay_top&buid=act_NationalDay_bu&tailid=tail";}else{window.location.href="initPage?topid=event_top&buid=event_con_bu&tailid=tail&activity_id="+b+"&activity_type="+c;}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}function schoolEventOrderProduct1(h,c){var e="1";var b=document.getElementById("ssssnickname");var d="";if(c=="0"){d=window.confirm("请确认是否订制此业务？");}if(d==true){var f="ajax.do?method=doApp&app_attribute=prodIsExpeQuery&productid="+h;var g=new Ajax.Request(f,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function a(i){str=i.responseText;}});if(c=="0"&&str=="0"){alert("您已经免费体验了此业务，请取消免费体验后再订制！");return;}else{var f="ajax.do?method=doApp&app_attribute=busiSubProd&productId="+h+"&actionType="+c+"&type="+e;var g=new Ajax.Request(f,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function a(i){str=i.responseText;}});alert(str.split("|")[2]);if(str.split("|")[1]=="000000"){getmodule("pubwin","bo_id=school_singer_msg_bo");}else{if(str.split("|")[1].substring(0,5)=="66666"){gxjZhangyInfo(str.split("|")[1],"dingzhi");getmodule("pubwin","bo_id=school_singer_msg_bo");}}}}}var setSelect1=function(g,f){var e=document.getElementById(g);var d=e.childNodes;var c=[];for(var b=0;b<d.length;b++){if(d[b].nodeType==1&&d[b].tagName.toUpperCase()=="OPTION"){c.push(d[b]);}}for(var a=0;a<c.length;a++){if(c[a].childNodes[0].nodeValue==String(f)){c[a].selected=true;break;}}};function initSelectData(){var d=document.getElementById("birthday_hidden").value;var c=document.getElementById("sex_hidden").value;if(d!=undefined){var e=d.split("-");var b=e[0];var f=e[1];var a=e[2];setSelect1("birthday_year",b);setSelect1("birthday_month",f);setSelect1("birthday_day",a);}if(c!=undefined){document.getElementById("sex_"+c).checked=true;}}function initDate1(e,f,b){MonDays=[31,28,31,30,31,30,31,31,30,31,30,31];var j=new Date().getFullYear();var a=new Date().getMonth()+1;var g=new Date().getDate();for(var c=j-100;c<=j;c++){e.options.add(new Option(c,c));}e.value=j;for(var c=1;c<=12;c++){f.options.add(new Option(c,c));}f.value=a;var h=MonDays[a-1];if(a==2&&isLeapYear(e.options[e.selectedIndex].value)){h++;}createDay1(h,b);b.value=new Date().getDate();}function changeDay1(c,d,b){var f=c.options[c.selectedIndex].value;var a=d.options[d.selectedIndex].value;var e=MonDays[a-1];if(a==2&&isLeapYear(f)){e++;}createDay1(e,b);}function createDay1(c,a){clearOptions(a);for(var b=1;b<=c;b++){a.options.add(new Option(b,b));}}function clearOptions(a){for(var b=a.options.length-1;b>=0;b--){a.remove(b);}}function isLeapYear(a){return(a%4==0||(a%100==0&&a%400==0));}function insertSingerInfoForMigu(){var j=document.getElementById("check_is_not_do");if(j.checked==false){alert("如果您不是自愿参加，请返回！");return;}var f=trim(document.getElementById("nicknameforsongs").value);var a=document.getElementById("nationality").value;var i=document.getElementById("hometown").value;var l=document.getElementById("height").value;var e=document.getElementById("weight").value;var d=document.getElementById("blood_type").value;var c=document.getElementById("id_no").value;var b=document.getElementById("education").value;var n=document.getElementById("college_subject").value;var g=document.getElementById("email").value;var h=document.getElementById("address").value;var m=document.getElementById("self_description").value;if(f.length>8){alert("姓名不能超过8个字！");return;}if(a.length>20){alert("民族不能超过20个字！");return;}if(i.length>20){alert("籍贯不能超过20个字！");return;}if(l.length!=0){if(l.length>10){alert("身高不能超过10个数字！");return;}else{if(!isCorrectData(l)){alert("身高只能输入整数！");return;}}}if(e.length!=0){if(e.length>10){alert("体重不能超过10个数字！");return;}else{if(!isCorrectData(e)){alert("体重只能输入整数！");return;}}}if(d.length>4){alert("血型不能超过4个字！");return;}if(c.length!=0){if(!isCorrectIDNO(c)){alert("身份证号码不正确！");return;}}if(b.length>20){alert("文化程度不能超过20个字！");return;}if(n.length>40){alert("所在院校和所学专业不能超过40个字！");return;}if(g.length!=0){if(g.length>40){alert("E-mail不能超过40个字！");return;}else{if(!isCorrectEMail(g)){alert("E-mail格式不正确！");return;}}}if(h.length>100){alert("通讯地址不能超过100个字！");return;}if(m.length>100){alert("性格自我描述不能超过100个字！");return;}getmoduleByPost("pubwin","school_singer_info_save_for_migu_bo","singer_info_for_migu_form");}function updateSingerInfo(a){var m=document.getElementById("check_is_not_do");if(m.checked==false){alert("如果您不是自愿参加，请返回！");return;}var g=trim(document.getElementById("nicknameforsongs").value);var b=document.getElementById("nationality").value;var l=document.getElementById("hometown").value;var n=document.getElementById("height").value;var f=document.getElementById("weight").value;var e=document.getElementById("blood_type").value;var d=document.getElementById("id_no").value;var c=document.getElementById("education").value;var p=document.getElementById("college_subject").value;var i=document.getElementById("email").value;var j=document.getElementById("address").value;var o=document.getElementById("self_description").value;var h=document.getElementById("experience").value;if(g==null||g==""){alert("姓名不能为空！");return;}else{if(g.length>8){alert("姓名不能超过8个字！");return;}}if(b==null||b==""){alert("民族不能为空！");return;}else{if(b.length>20){alert("民族不能超过20个字！");return;}}if(l==null||l==""){alert("籍贯不能为空！");return;}else{if(l.length>20){alert("籍贯不能超过20个字！");return;}}if(n==null||n==""){alert("身高不能为空！");return;}else{if(n.length>10){alert("身高不能超过10个数字！");return;}else{if(!isCorrectData(n)){alert("身高只能输入整数！");return;}}}if(f==null||f==""){alert("体重不能为空！");return;}else{if(f.length>10){alert("体重不能超过10个数字！");return;}else{if(!isCorrectData(f)){alert("体重只能输入整数！");return;}}}if(e==null||e==""){alert("血型不能为空！");return;}else{if(e.length>4){alert("血型不能超过4个字！");return;}}if(d==null||d==""){alert("身份证号码不能为空！");return;}else{if(!isCorrectIDNO(d)){alert("身份证号码不正确！");return;}}if(c==null||c==""){alert("文化程度不能为空！");return;}else{if(c.length>20){alert("文化程度不能超过20个字！");return;}}if(p==null||p==""){alert("所在院校和所学专业不能为空！");return;}else{if(p.length>40){alert("所在院校和所学专业不能超过40个字！");return;}}if(i==null||i==""){alert("E-mail不能为空！");return;}else{if(i.length>40){alert("E-mail不能超过40个字！");return;}else{if(!isCorrectEMail(i)){alert("E-mail格式不正确！");return;}}}if(j==null||j==""){alert("通讯地址不能为空！");return;}else{if(j.length>100){alert("通讯地址不能超过100个字！");return;}}if(o==null||o==""){alert("性格自我描述不能为空！");return;}else{if(o.length>100){alert("性格自我描述不能超过100个字！");return;}}if(h==null||h==""){alert("才艺及舞台经历不能为空！");return;}else{if(h.length>100){alert("才艺及舞台经历不能超过100个字！");return;}}if(a=="true"){getmoduleByPost("pubwin","school_singer_info_update_bo1","singer_save_form1");}else{getmoduleByPost("pubwin","school_singer_info_update_bo","singer_save_form");}}function isCorrectData(b){var a=/^\d+$/g;return a.test(b);}function isCorrectIDNO(b){var a=/^(\d{15}|\d{17}[Xx]|\d{18})$/;return a.test(b);}function isCorrectEMail(a){var b=/(\S)+[@]{1}(\S)+[.]{1}(\w)+/;return b.test(a);}function setRedirect(){window.location="initPage?topid=cust_top&buid=cust_index_update_info_bu&tailid=tail";}function setTheEndStyle(c){var a=c;var b=getVal("resultmsg");if(b!=null&&b!=""){alert(b);}if(a==0){if(document.getElementById("s1")){document.getElementById("s1").style.display="block";}}}function openNewWindow(){window.open("../resource/html/activity/miguAndFriends.html");}function insertCandleCount(c,b){var d="ajax.do?method=doApp&app_attribute=activitiesFocusByRunZhiLog&activity_id="+c+"&product_id="+b;var e=new Ajax.Request(d,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function a(f){strs=f.responseText;}});if(strs=="-1"){getmodule("pubwin","bo_id=cust_user_login_page_bo_div&logintype=login_div&activity_id="+c);}else{if(strs=="true"){alert("谢谢你付出的力量！");window.location="/resource/html/activity/activity_runzhi.html";}else{alert("系统错误，请联系管理员！");}}}function getCandleCount(){var b="ajax.do?method=doApp&app_attribute=getActivitiesFocusByRunZhiLog";var c=new Ajax.Request(b,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function a(d){str=d.responseText;}});document.getElementById("Candle_1").innerHTML=str.split("|")[0];document.getElementById("Candle_2").innerHTML=str.split("|")[1];document.getElementById("Candle_3").innerHTML=str.split("|")[2];document.getElementById("Candle_4").innerHTML=str.split("|")[3];document.getElementById("Candle_5").innerHTML=str.split("|")[4];document.getElementById("Candle_6").innerHTML=str.split("|")[5];document.getElementById("runzhi_hidden").value=str.split("|")[6];}function toIndexForRunZhi(){window.location.href="http://localhost:8080/initPage?topid=index_top&buid=index&tailid=tail";}function checkOrder(b){var c="ajax.do?method=doApp&app_attribute=prodIsSubQuery&productid="+b;var d=new Ajax.Request(c,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function a(e){str=e.responseText;}});return str;}function queryOrder(){if(!document.getElementById("nickname")){getmodule("pubwin","bo_id=cust_user_login_page_bo_div&logintype=login_div");}else{var d=0;var b=[1023,1069,1070];for(var c=0;c<b.length;c++){var a=checkOrder(b[c]);if(a=="0"){d++;}}if(d>0){document.getElementById("event_fsy_apDiv2").style.display="block";}else{document.getElementById("event_fsy_apDiv3").style.display="block";}}}function closeWd1(){document.getElementById("event_fsy_apDiv2").style.display="none";}function closeWd2(){document.getElementById("event_fsy_apDiv3").style.display="none";}function getMessageClubDA(){var b=document.getElementById("productid").value;var e="";if(document.getElementById("mobileno")){e=document.getElementById("mobileno").value;}var c="ajax.do?method=doApp&app_attribute=getAppDcCheck&productid="+b+"&mobileno="+e;var d=new Ajax.Request(c,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function a(f){checkstr=f.responseText;}});if(e==""||e==null){document.getElementById("my_dc1").style.display="none";document.getElementById("my_dc2").style.display="none";document.getElementById("my_dc3").style.display="none";document.getElementById("my_dc2").style.display="block";document.getElementById("tempval").value="2";return;}else{if(checkstr=="false"){document.getElementById("my_dc1").style.display="none";document.getElementById("my_dc2").style.display="none";document.getElementById("my_dc3").style.display="none";document.getElementById("my_dc3").style.display="block";document.getElementById("tempval").value="3";}else{var c="ajax.do?method=doApp&app_attribute=getappMessageClubDA&productid="+b+"&mobileno="+e;var d=new Ajax.Request(c,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function a(f){str=f.responseText;}});document.getElementById("my_dc1").style.display="none";document.getElementById("my_dc2").style.display="none";document.getElementById("my_dc3").style.display="none";document.getElementById("my_dc1").style.display="block";document.getElementById("dc_user").innerHTML=str;document.getElementById("tempval").value="1";}}}function getkingofDc(){var b=document.getElementById("productid").value;var c="ajax.do?method=doApp&app_attribute=GetAppKingofDc&productid="+b;var d=new Ajax.Request(c,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function a(e){str=e.responseText;}});document.getElementById("dc_detail").innerHTML=str;}function setsortstyle(c){try{document.getElementById("sortstyle").value=c;}catch(b){return false;}var a=document.getElementById("choicedsort");a.href="javscript:setsortstyle('"+c+"');";if("1"==c){a.innerHTML="热度值从高到低";}else{if("0"==c){a.innerHTML="上传时间从近到远";}}var d="";var e;if(document.getElementById("totalitem")){d=parseInt(document.getElementById("totalitem").value);}if(d!=null&&d!=""&&d<=10){e=1;}else{if(d%10==0){e=parseInt(d/10);}else{e=parseInt(d/10)+1;}}var f="";try{if(document.getElementById("currepage")){f=parseInt(document.getElementById("currepage").value);}else{window.location.reload();}}catch(b){window.location.reload();}if(f>0&&f<=e){getdclist(f);getPageObjDC("pageObjDC");}}function getdclist(g){var b=document.getElementById("productid").value;var d="1";try{d=document.getElementById("sortstyle").value;}catch(f){d="1";}var c="ajax.do?method=doApp&app_attribute=GetAppDcList&productid="+b+"&currepage="+g+"&sortstyle="+d;var e=new Ajax.Request(c,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function a(h){str=h.responseText;}});document.getElementById("dclist").innerHTML=str;}function OrderEventDc(l,j){alert("活动圆满结束，敬请关注中奖名单");return;var d=document.getElementById("mobileno").value;var f=document.getElementById("productid").value;var e="ajax.do?method=doApp&app_attribute=setDcTp&productid="+f+"&ip="+j+"&mobileno="+d+"&smsid="+l;var a=new Ajax.Request(e,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function h(m){str=m.responseText;}});alert(str);var g="";var b;if(document.getElementById("totalitem")){g=parseInt(document.getElementById("totalitem").value);}if(g!=null&&g!=""&&g<=10){b=1;}else{if(g%10==0){b=parseInt(g/10);}else{b=parseInt(g/10)+1;}}var i="";try{if(document.getElementById("currepage")){i=parseInt(document.getElementById("currepage").value);}else{window.location.reload();}}catch(c){window.location.reload();}if(i>0&&i<=b){getdclist(i);getPageObjDC("pageObjDC");}}function getPageObjDC(l){var f="";if(document.getElementById("totalitem")){f=parseInt(document.getElementById("totalitem").value);}var a="";var h="";if(document.getElementById("currepage")){h=parseInt(document.getElementById("currepage").value);}var c=10;var q=h-1;var r=h+1;var t="";if(f!=null&&f!=""&&f<=10){a=1;}else{if(f%10==0){a=parseInt(f/10);}else{a=parseInt(f/10)+1;}}var g=a;var b=(g-1)/c+1;var p=0;for(var d=0;d<b;d++){if(h<=(c*(d+1))&&h>(c*d)){p=d;}}if(g>c*(p+1)){g=c*(p+1);}var o=0;if(a!=null&&a!=""){for(var e=c*p;e<g;e++){if(h==(e+1)){t+="<span class='current'>"+(e+1)+"</span> ";}else{t+="<a href=javascript:toPageDC("+(e+1)+","+h+","+a+",'"+l+"');>"+(e+1)+"</a> ";}o=e+1;}}var s="";if(h==1){s="<span class='disabled' id='firstpage' onclick=javascript:toPageDC(1,"+h+","+a+",'"+l+"');>首页</span> ";s+="<span class='disabled' id='uppage' onclick=javascript:toPageDC("+q+","+h+","+a+",'"+l+"');>上一页</span> "+t;}else{s="<a id='firstpage' href=javascript:toPageDC(1,"+h+","+a+",'"+l+"');>首页</a> ";s+="<a id='uppage' href=javascript:toPageDC("+q+","+h+","+a+",'"+l+"');>上一页</a> "+t;}if((o+2)==a){s+=" <a href=javascript:toPageDC("+(a-1)+","+h+","+a+",'"+l+"');>"+(a-1)+"</a> <a href=javascript:toPageDC("+a+","+h+","+a+",'"+l+"');>"+a+"</a> ";}else{if((o+2)<a){s+="... <a href=javascript:toPageDC("+(a-1)+","+h+","+a+",'"+l+"');>"+(a-1)+"</a> <a href=javascript:toPageDC("+a+","+h+","+a+",'"+l+"');>"+a+"</a> ";}else{if((o+1)==a){s=s+" <a href=javascript:toPageDC("+a+","+h+","+a+",'"+l+"');>"+a+"</a> ";}}}if(h==a){s+="<span class='disabled' id='downpage' onclick=javascript:toPageDC("+r+","+h+","+a+",'"+l+"');>下一页</span>";s+="<span class='disabled' id='lastpage' onclick=javascript:toPageDC("+a+","+h+","+a+",'"+l+"');>末页</span>";}else{s+="<a id='downpage' href=javascript:toPageDC("+r+","+h+","+a+",'"+l+"');>下一页</a>";s+="<a id='lastpage' href=javascript:toPageDC("+a+","+h+","+a+",'"+l+"');>末页</a>";}document.getElementById("pageObjDC").innerHTML=s;}function toPageDC(c,b,a,d){if(c>0&&c<=a&&c!=b){getdclist(c);getPageObjDC(d);}}function qiehuanpic(){var a=document.getElementById("tempval").value;var b="my_dc"+a;if((document.getElementById(b).style.display=="none")){document.getElementById(b).style.display="block";document.getElementById("btn_DcMore").style.display="none";return;}if((document.getElementById("my_dc1").style.display=="none")&&(document.getElementById("my_dc2").style.display=="none")&&(document.getElementById("my_dc3").style.display=="block")){document.getElementById("my_dc3").style.display="none";document.getElementById("btn_DcMore").style.display="block";}if((document.getElementById("my_dc1").style.display=="none")&&(document.getElementById("my_dc2").style.display=="block")&&(document.getElementById("my_dc3").style.display=="none")){document.getElementById("my_dc2").style.display="none";document.getElementById("btn_DcMore").style.display="block";}if((document.getElementById("my_dc1").style.display=="block")&&(document.getElementById("my_dc2").style.display=="none")&&(document.getElementById("my_dc3").style.display=="none")){document.getElementById("my_dc1").style.display="none";document.getElementById("btn_DcMore").style.display="block";}}function getTopUsers(c){var b=escape(escape(document.getElementById("areaname").value));var d="ajax.do?method=doApp&app_attribute=getAppQueryTopUsers&ordertype="+c+"&areaname="+b;var e=new Ajax.Request(d,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function a(f){str=f.responseText;}});document.getElementById("gxj_topusers").innerHTML=str;}function getGxjnickName(b){var d="";var c=0;if(document.getElementById("totalitem")){c=parseInt(document.getElementById("totalitem").value);}for(var a=0;a<c;a++){d=trim(document.getElementById("nick"+a).value);getmodule("nick"+a,"bo_id=event_gxj_userinfo_bo&mobileno="+d+"&type="+b);}}function getUserResAndTopsDetail(a){var c="ajax.do?method=doApp&app_attribute=getAppQueryUserResAndTopsDetail&flag="+a;var d=new Ajax.Request(c,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function b(e){str=e.responseText;}});document.getElementById("gxj_zhangyin").innerHTML=str;}function getTopUsersMore(c,f){var b=escape(escape(document.getElementById("areaname").value));var d="ajax.do?method=doApp&app_attribute=getAppQueryTopUsersMore&ordertype="+c+"&currepage="+f+"&areaname="+b;var e=new Ajax.Request(d,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function a(g){str=g.responseText;}});document.getElementById("gxj_topusers_more").innerHTML=str;}function getAppQueryUserWinningInfo(d){var b="ajax.do?method=doApp&app_attribute=getAppQueryUserWinningInfo&currepage="+d;var c=new Ajax.Request(b,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function a(e){str=e.responseText;}});document.getElementById("gxj_userwin_more").innerHTML=str;}function userExchangeFei(a){alert("攻新计集掌印活动已结束！敬请期待5月10日-5月14日攻新计之武林大会！");return;}function queryMyShouji(){alert("攻新计集掌印活动已结束！敬请期待5月10日-5月14日攻新计之武林大会！");return;var a="37";if(shutdown(a,"get")){return;}}function getPageObjUM(){var e="";var d="";var f="";if(document.getElementById("totalitem")){d=parseInt(document.getElementById("totalitem").value);}if(document.getElementById("currepage")){f=parseInt(document.getElementById("currepage").value);}var c="";if(document.getElementById("ordertype")){c=parseInt(document.getElementById("ordertype").value);}var b=f-1;if(b<=1){b=1;}var a=f+1;if(f==1){e="<li><a href='javascript:toPageUM("+c+","+b+");' class='eventGongxin_pageBut' disabled='true'>上一页</a><span class='eventGongxin_pageNum'>&nbsp;<a href='javaScript:;'>"+f+"</a>&nbsp;</span>";}else{e="<li><a href='javascript:toPageUM("+c+","+b+");' class='eventGongxin_pageBut'>上一页</a><span class='eventGongxin_pageNum'>&nbsp;<a href='javaScript:;'>"+f+"</a>&nbsp;</span>";}if(d<10){e+="<a href='javascript:toPageUM("+c+","+a+");' class='eventGongxin_pageBut' disabled='true'>下一页</a></li>";}else{e+="<a href='javascript:toPageUM("+c+","+a+");' class='eventGongxin_pageBut'>下一页</a></li>";}document.getElementById("pageObjUM").innerHTML=e;}function toPageUM(a,b){getTopUsersMore(a,b);getGxjnickName(2);getPageObjUM();}function goToLoginPageGxj(){getmodule("pubwin","bo_id=gxj_user_login_page_bo_div&logintype=login_div");}function callIndexCustLoginGxj(functionName,functionParams){if(logintype.value=="login_div"){indexCustLogin();var is_login_success=document.getElementById("is_login_success").value;if(is_login_success=="1"){getmodule("top","bo_id=moma_top");getmodule("tail","bo_id=tail");closePubWin();if(functionName!=null&&functionName!="undefined"&&functionName!=""){if(functionParams!=null&&functionParams!="undefined"&&functionParams!=""){functionParams=unescape(functionParams);eval(functionName+".call(this,functionParams)");}else{eval(functionName+".call()");}}else{var nonce_url=window.location.href;var url_subscript=nonce_url.indexOf("initPage");var url_location=nonce_url.substring(url_subscript);var check_location_exit="initPage?topid=index_top&buid=index_head_exit_bu&tailid=tail";var check_location_regist="initPage?topid=register_top&buid=cust_info_mobile_register_change_edition_bu&tailid=tail";if(url_location.indexOf(check_location_exit)>=0||url_location.indexOf(check_location_regist)>=0){window.location="initPage?topid=index_top&buid=index&tailid=tail";}else{window.location.reload();}}return;}return;}}function autoCheckForLoginGxj(){var b="ajax.do?method=doApp&app_attribute=cust_info_register_app&uiid=&operationtype=autochecklogin";var c=new Ajax.Request(b,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function a(d){str=d.responseText;}});if(str!=""){performAutoLoginGxj(str);}else{}}function performAutoLoginGxj(g){if(g!=""){var c="";var b="";var f="";var e=g.split("@|@");if(e.length==3){c=e[0];b=e[1];f=e[2];}var a='<span id="gxj_top_info" class="right"><span id="totalitem_Statistics"></span>&nbsp;<a href="initPage?topid=cust_top&buid=cust_info_index_bu&tailid=tail">'+b+'</a>&nbsp;|&nbsp;<a href="javascript:logoutOnHead();">退出</a>&nbsp;|&nbsp;<a href="initPage?topid=index_top&buid=helper_hot&tailid=tail">帮助</a></span>';document.getElementById("gxj_top_info").innerHTML=a;var d="&mobile="+c+"&nickname="+b+"&region_name="+f;getmodule("loginbox","bo_id=index_login_bo"+d);}}function getPageObjUserWin(l){var f="";if(document.getElementById("totalitem")){f=parseInt(document.getElementById("totalitem").value);}var a="";var h="";if(document.getElementById("currepage")){h=parseInt(document.getElementById("currepage").value);}var c=10;var q=h-1;var r=h+1;var t="";if(f!=null&&f!=""&&f<=10){a=1;}else{if(f!=0&&f%10==0){a=parseInt(f/10);}else{a=parseInt(f/10)+1;}}var g=a;var b=(g-1)/c+1;var p=0;for(var d=0;d<b;d++){if(h<=(c*(d+1))&&h>(c*d)){p=d;}}if(g>c*(p+1)){g=c*(p+1);}var o=0;if(a!=null&&a!=""){for(var e=c*p;e<g;e++){if(h==(e+1)){t+="<span class='current'>"+(e+1)+"</span> ";}else{t+="<a href=javascript:toPageUserWin("+(e+1)+","+h+","+a+",'"+l+"');>"+(e+1)+"</a> ";}o=e+1;}}var s="";if(h==1){s="<span class='disabled' id='uppage' onclick=javascript:toPageUserWin("+q+","+h+","+a+",'"+l+"');>上一页</span> "+t;}else{s="<a id='uppage' href=javascript:toPageUserWin("+q+","+h+","+a+",'"+l+"');>上一页</a> "+t;}if((o+2)==a){s=s+" <a href=javascript:toPageUserWin("+(a-1)+","+h+","+a+",'"+l+"');>"+(a-1)+"</a> <a href=javascript:toPageUserWin("+a+","+h+","+a+",'"+l+"');>"+a+"</a> ";}else{if((o+2)<a){s=s+"... <a href=javascript:toPageUserWin("+(a-1)+","+h+","+a+",'"+l+"');>"+(a-1)+"</a> <a href=javascript:toPageUserWin("+a+","+h+","+a+",'"+l+"');>"+a+"</a> ";}else{if((o+1)==a){s=s+" <a href=javascript:toPageUserWin("+a+","+h+","+a+",'"+l+"');>"+a+"</a> ";}}}if(h==a){s+="<span class='disabled' id='downpage' onclick=javascript:toPageUserWin("+r+","+h+","+a+",'"+l+"');>下一页</span>";}else{s+="<a id='downpage' href=javascript:toPageUserWin("+r+","+h+","+a+",'"+l+"');>下一页</a>";}document.getElementById("pageobjuserwin").innerHTML=s;}function toPageUserWin(c,b,a,d){if(c>0&&c<=a&&c!=b){getAppQueryUserWinningInfo(c);getPageObjUserWin(d);}}function GongXinJiInfo(){var b="ajax.do?method=doApp&app_attribute=activityForGongXinJi";var c=new Ajax.Request(b,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function a(d){str=d.responseText;}});document.getElementById("dynamic").innerHTML=str;}function prodInfoFocusLogGxj(a){var c="ajax.do?method=doApp&app_attribute=prodInfoFocusLogGxjApp&pageid="+a;var d=new Ajax.Request(c,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function b(e){str=e.responseText;}});}function registeRecommend(b){var c="ajax.do?method=doApp&app_attribute=saveUserDetailInfoApp";var a=window.createXMLHttp();a.open("POST",c,true);a.setRequestHeader("Content-Type","application/x-www-form-urlencoded");a.send("nickname="+escape(b));a.onreadystatechange=function(){if(a.readyState==4){if(a.status==200){var d=a.responseText;}}};}