var FrontMessages_emit01={isValidPhone:function(B){if(!/^[\d\-()、]{7,32}$/.test(B)){return false}var A=[];for(var C=0,D;D=B.charAt(C);C++){if(D=="("){A.push(D)}else{if(D==")"){if(A.pop()!="("){return false}}}}return !A.length},displayInfo:function(A){document.getElementById(A).style.display="block"},hideInfo:function(A){document.getElementById(A).style.display="none"},showinfo:function(A){strarr=A.split("_");laststr=strarr[strarr.length-1];strinfo="";strno="";strerr="";strpast="";for(i=0;iA.maxContent.value){FrontMessages_emit01.hideInfo(G+"_infocontent");FrontMessages_emit01.hideInfo(G+"_infocontent_black");FrontMessages_emit01.hideInfo(G+"_nocontent");FrontMessages_emit01.displayInfo(G+"_errcontent");F=false}}if(F==true){FrontMessages_emit01.hideInfo(G+"_infocontent_black");FrontMessages_emit01.displayInfo(G+"_infocontent")}}if((I=="all"||I=="messagesTitle")&&A.messagesTitle){A.messagesTitle.value=A.messagesTitle.value.replace(/^\s+|\s+$/g,"");if(A.isDisplayMessagesTitle.value=="2"){if(/^\s*$/.test(A.messagesTitle.value)){FrontMessages_emit01.displayInfo(G+"_nomessagesTitle");F=false}}}if((I=="all"||I=="weburl")&&A.weburl){if(A.isDisplayUrl.value=="2"){var H=/^((http|https|ftp):(\/\/|\\\\))?((\w)+[.]){1,}/;if(A.weburl.value==""){FrontMessages_emit01.displayInfo(G+"_noweburl");F=false}else{if(!H.test(A.weburl.value)){FrontMessages_emit01.displayInfo(G+"_errweburl");F=false}}}else{if(A.isDisplayUrl.value=="1"){var H=/^((http|https|ftp):(\/\/|\\\\))?((\w)+[.]){1,}/;if(A.weburl.value!=""&&A.weburl.value!="http://"){if(!H.test(A.weburl.value)){FrontMessages_emit01.displayInfo(G+"_errweburl");F=false}}}}}if(I=="all"||I=="verifyCode"){if(A.verifyCode.value.length==0){FrontMessages_emit01.hideInfo(G+"_pastverifyCode");FrontMessages_emit01.hideInfo(G+"_errverifyCode");FrontMessages_emit01.displayInfo(G+"_noverifyCode");F=false}else{if(!FrontMessages_emit01.checkVerifyCodeInput(A.verifyCode.value,G)){FrontMessages_emit01.hideInfo(G+"_pastverifyCode");FrontMessages_emit01.displayInfo(G+"_errverifyCode");FrontMessages_emit01.hideInfo(G+"_noverifyCode");F=false}}}if(F&&I=="all"){var B=document.createElement("input");var E=A.verifyCode.value;var D=document.getElementsByName("vlidationSet",G);if(D.length==0){B.setAttribute("type","hidden");B.name="vlidationSet";B.value=E;A.appendChild(B)}else{D.value=E}A.orignal_url.value=window.location.href;if(document.getElementById(G+"_submit")){document.getElementById(G+"_submit").disabled="disabled"}A.submit()}},selectEmotion:function(C){var D=C.src;var G=D.replace("mesa-","mes-");var F=document.getElementById("emotion");var B=document.getElementById("imageId");if(B.value!=null&&B.value!=""){var E=document.getElementById(B.value);E.src=/publicScripts/components/B.name}C.src=G;var A=C.src;A=A.substring(A.lastIndexOf("/")+1);F.value=A;document.getElementById("imageId").value=C.id;if(B.name.substring(B.name.length-6,B.name.length)!=C.src.substring(C.src.length-6,C.src.length)){document.getElementById("imageId").name=D}document.getElementById("emotion").value=C.name},addIsByMailValue:function(A,B){FrontMessages_emit01.hideInfo(B+"_infomail_black");FrontMessages_emit01.hideInfo(B+"_nomail");FrontMessages_emit01.hideInfo(B+"_errmail");FrontMessages_emit01.displayInfo(B+"_infomail");if(A.checked){$("#isByMail").attr("value","1")}else{$("#isByMail").attr("value","0")}},addIsByNoteValue:function(A,B){FrontMessages_emit01.hideInfo(B+"_infomobile_black");FrontMessages_emit01.hideInfo(B+"_nomobile");FrontMessages_emit01.hideInfo(B+"_errmobile");FrontMessages_emit01.displayInfo(B+"_infomobile");if(A.checked){$("#isByNote").attr("value","1")}else{$("#isByNote").attr("value","0")}},checknumber:function(C){var B="1234567890";var A;var D;for(A=0;A