var FrontNews_list01={friendlyWords:function(){alert(i18n_FrontNews_list01_news_page_haveNoRight)},getAjaxValueByNewsId:function(f,h,c,e,a,d,b,g){if(h){$.post("/FrontNews.do","method=getAjaxValueByNewsId&newsId="+f+"&infoStatus="+h+"&showDegree="+c+"&showMessageCount="+e+"&showQuestionTag="+a,function(l){var m=l.split("|");if(a=="1"){var o=document.getElementsByName(g);if(m[0]=="fail"){for(var k=0;kC.maxContent.value){FrontMessages_customizeEmit01.hideInfo(J+"_infocontent");FrontMessages_customizeEmit01.hideInfo(J+"_infocontent_black");FrontMessages_customizeEmit01.hideInfo(J+"_nocontent");FrontMessages_customizeEmit01.displayInfo(J+"_errcontent");H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_infocontent_black");FrontMessages_customizeEmit01.displayInfo(J+"_infocontent")}}if((M=="all"||M=="messagesTitle")&&C.messagesTitle){C.messagesTitle.value=C.messagesTitle.value.replace(/^\s+|\s+$/g,"");if(!/^\s*$/.test(C.messagesTitle.value)){if(specialCharactersCheck(C.messagesTitle.value)){FrontMessages_customizeEmit01.hideInfo(J+"_infomessagesTitle");FrontMessages_customizeEmit01.hideInfo(J+"_infomessagesTitle_black");FrontMessages_customizeEmit01.hideInfo(J+"_nomessagesTitle");FrontMessages_customizeEmit01.displayInfo(J+"_errmessagesTitle");H=false}}if(C.isDisplayMessagesTitle.value=="1"){if(/^\s*$/.test(C.messagesTitle.value)){FrontMessages_customizeEmit01.hideInfo(J+"_infomessagesTitle");FrontMessages_customizeEmit01.hideInfo(J+"_infomessagesTitle_black");FrontMessages_customizeEmit01.hideInfo(J+"_errmessagesTitle");FrontMessages_customizeEmit01.displayInfo(J+"_nomessagesTitle");H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_infomessagesTitle_black");FrontMessages_customizeEmit01.displayInfo(J+"_infomessagesTitle")}}if((M=="all"||M=="weburl")&&C.weburl){var L=/^((http|https|ftp):(\/\/|\\\\))?((\w)+[.]){1,}/;if(C.isDisplayUrl.value=="1"){if(C.weburl.value==""||C.weburl.value=="http://"){FrontMessages_customizeEmit01.hideInfo(J+"_infoweburl");FrontMessages_customizeEmit01.hideInfo(J+"_infoweburl_black");FrontMessages_customizeEmit01.hideInfo(J+"_errweburl");FrontMessages_customizeEmit01.displayInfo(J+"_noweburl");H=false}else{if(!L.test(C.weburl.value)){FrontMessages_customizeEmit01.hideInfo(J+"_infoweburl");FrontMessages_customizeEmit01.hideInfo(J+"_infoweburl_black");FrontMessages_customizeEmit01.hideInfo(J+"_errweburl");FrontMessages_customizeEmit01.displayInfo(J+"_errweburl");H=false}}}else{if(C.weburl.value!=""&&C.weburl.value!="http://"){if(!L.test(C.weburl.value)){FrontMessages_customizeEmit01.hideInfo(J+"_infoweburl");FrontMessages_customizeEmit01.hideInfo(J+"_infoweburl_black");FrontMessages_customizeEmit01.hideInfo(J+"_errweburl");FrontMessages_customizeEmit01.displayInfo(J+"_errweburl");H=false}}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_infoweburl_black");FrontMessages_customizeEmit01.displayInfo(J+"_infoweburl")}}if(M=="all"||M=="verifyCode"){if(C.verifyCode.value.length==0){FrontMessages_customizeEmit01.hideInfo(J+"_pastverifyCode");FrontMessages_customizeEmit01.hideInfo(J+"_errverifyCode");FrontMessages_customizeEmit01.displayInfo(J+"_noverifyCode");H=false}else{if(!FrontMessages_customizeEmit01.checkVerifyCodeInput(C.verifyCode.value,J)){FrontMessages_customizeEmit01.hideInfo(J+"_pastverifyCode");FrontMessages_customizeEmit01.displayInfo(J+"_errverifyCode");FrontMessages_customizeEmit01.hideInfo(J+"_noverifyCode");H=false}}}if(M=="all"||A=="0"){if(B=="0"){document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}}if(B=="1"){document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(!/^\s*$/.test(extendAtrributeValue)){if(!isEmail(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}if(B=="2"){document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(!/^\s*$/.test(extendAtrributeValue)){if(!isMobileNumber(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}if(B=="3"){document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(!/^\s*$/.test(extendAtrributeValue)){if(!FrontMessages_customizeEmit01.isValidPhone(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}if(B=="4"){zip=/^\d{6}$/;document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(!/^\s*$/.test(extendAtrributeValue)){if(!zip.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}if(B=="5"){document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(!/^\s*$/.test(extendAtrributeValue)){if(!FrontMessages_customizeEmit01.isIdCard(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}if(B=="6"){L=/^((http|https|ftp):(\/\/|\\\\))?((\w)+[.]){1,}/;document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(isDisplayAttribute=="1"){if(extendAtrributeValue==""||extendAtrributeValue=="http://"){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}else{if(!L.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}}else{if(extendAtrributeValue!=""&&extendAtrributeValue!="http://"){if(!L.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}if(B=="7"){qq=/^[1-9]\d{4,9}$/;document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(!/^\s*$/.test(extendAtrributeValue)){if(!qq.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}if(B=="8"){str=/^[-]{0,1}[0-9]{1,}$/;document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(!/^\s*$/.test(extendAtrributeValue)){if(!str.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}if(B=="9"){str=/^(-?\d+)(\.\d+)?$/;document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(!/^\s*$/.test(extendAtrributeValue)){if(!str.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(isDisplayAttribute=="1"){if(/^\s*$/.test(extendAtrributeValue)){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}}if(M=="all"||A=="1"){if(document.getElementById("extendAtrribute"+M)&&document.getElementById("isDisplayAttribute"+M)){document.getElementById("extendAtrribute"+M).value=document.getElementById("extendAtrribute"+M).value.replace(/^\s+|\s+$/g,"");extendAtrributeValue=document.getElementById("extendAtrribute"+M).value;isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;attributeMaxContent=document.getElementById("maxContent"+M).value;if(/^\s*$/.test(extendAtrributeValue)&&isDisplayAttribute=="1"){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_err"+M);FrontMessages_customizeEmit01.displayInfo(J+"_no"+M);H=false}else{if(extendAtrributeValue.length>attributeMaxContent){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}}if(M=="all"||A=="2"){if(document.getElementById("isDisplayAttribute"+M)){isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(document.getElementById("extendAtrribute"+M)){extendAtrribute=document.getElementById("extendAtrribute"+M)}option=document.getElementsByName("extendAtrribute"+M);arrCheckbox=document.getElementsByName("checkboxExtendAtrribute"+M);if(arrCheckbox.length>0){option=document.getElementsByName("checkboxExtendAtrribute"+M)}if(isDisplayAttribute=="1"){var K=false;for(i=0;iattributeMaxContent){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M);FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.hideInfo(J+"_no"+M);FrontMessages_customizeEmit01.displayInfo(J+"_err"+M);H=false}}if(H==true){FrontMessages_customizeEmit01.hideInfo(J+"_info"+M+"_black");FrontMessages_customizeEmit01.displayInfo(J+"_info"+M)}}}if(M=="all"||A=="2"){if(document.getElementById("isDisplayAttribute"+M)){isDisplayAttribute=document.getElementById("isDisplayAttribute"+M).value;if(document.getElementById("extendAtrribute"+M)){extendAtrribute=document.getElementById("extendAtrribute"+M)}option=document.getElementsByName("extendAtrribute"+M);arrCheckbox=document.getElementsByName("checkboxExtendAtrribute"+M);if(arrCheckbox.length>0){strCheckbox="";for(m=arrCheckbox.length-1;m>=0;m--){if(arrCheckbox[m].checked){strCheckbox=arrCheckbox[m].value+","+strCheckbox}}strCheckbox=strCheckbox.substr(0,strCheckbox.length-1);extendAtrribute.value=strCheckbox;option=document.getElementsByName("checkboxExtendAtrribute"+M)}if(isDisplayAttribute=="1"){var K=false;for(j=0;j