function OTPIMGVerificationCodeChange(a){var b=Math.random();a.src="/validateCode.axd?rnd="+b+"&width="+a.getAttribute("imgwidth")+"&height="+a.getAttribute("imghigth")+"&fontSize="+a.getAttribute("imgfontsize")}function SubmitSuggest(){var c=$("#inputPhone").val();var b=$("#inputEmail").val();var e=$("#txtType").attr("name");var d=$("#inputSuggest").val();var g=$("#vcode").val();var f=/^1[3|4|5|8][0-9]\d{4,8}$/;var a=/^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;if(e==""||e==null||e==undefined){alert("请选择建议分类");return}if(d==""){alert("请输入内容");return}if(c==""&&b==""){alert("联系电话和邮箱至少填写一项");return}if(c!=null&&c.length>0&&!f.test(c)){alert("请输入正确的手机号码");return}if(b!=null&&b.length>0&&!a.test(b)){alert("邮箱格式不正确");return}if(g==""){alert("请输入验证码");return}$.ajax({url:"/JqAjax/ValidateCodeHandler.ashx?code="+g+"&otpCode="+$("#otpCode").val(),type:"get",contentType:"application/json",dataType:"json",success:function(h){if(!h.ValidateResult){alert("验证码错误")}else{$.ajax({url:"/JqAjax/SubmitSuggestHandler.ashx?phone="+c+"&email="+b+"&suggestClass="+e+"&suggest="+d,type:"get",contentType:"application/json",dataType:"json",success:function(i){alert("提交成功！");var j=[];j.push('<div class="bd clearfix formbg">');j.push('<div class="recommend-ok">');j.push('<p class="f16 red bold">您的建议已经成功提交，谢谢</p>');j.push('<p class="mt10">我们将会有专人对您的建议进行审核，并分发给相关负责部门处理并尽快与您联系，感谢您对中国国旅(江苏)的信任与支持。</p>');j.push("</div>");j.push("</div>");$("#divContent").html(j.join(""));$("#divSugHead").hide()}})}}})}var question=new QuestionClass_Class();var questionClass=question.QuestionClass();$(function(){questionList()});function questionList(){var a="";for(x in questionClass){if(questionClass[x].Parent=="null"){a+='<option value="'+questionClass[x].ID+'">'+questionClass[x].Title+"</option>"}}removeChilde("#selectClass");$("#selectClass").append($(a));$("#selectClass").trigger("onchange")}function questionClassSelext(){var a=$("#selectClass").val();var b="";for(x in questionClass){if(questionClass[x].Parent==a){b+='<option value="'+questionClass[x].ID+'">'+questionClass[x].Title+"</option>"}}}function removeChilde(a){$(a).children().each(function(){$(this).remove()})}function showShareBox(c){var a=$("#divShare"+c);a.css("top",parseInt($(window).scrollTop())+200);a.show();var b=$("#mengban");b.show()}function CheckType(a,b){$("#txtType").val(b);$("#txtType").attr("name",a);$("#closeBtn").click()}$(".cover_layer_close").click(function(){$(".mengban").hide()});$(".box-content dl:last > dd").css("border-bottom","0");