String.prototype.isEmail = function() { var B = this; var A = /^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/; if (!A.exec(B)) { return false } return true }; String.prototype.isNumber = function() { var B = this; var A = /^[0-9]+$/; if (!A.exec(jQuery.trim(B))) { return false } return true }; String.prototype.isNumberAndNotZero = function() { var A = this; if (jQuery.trim(A) == "0") { return false } else { if (!A.isNumber()) { return false } } return true }; String.prototype.isUrl = function() { var A = this; var C = "^((https|http|ftp|rtsp|mms)?://)?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z].[a-z]{2,6})(:[0-9]{1,4})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$"; var B = new RegExp(C); return B.test(A) }; function openBadLicenseAlertWindows(B) { var A = $("#enjoosite_badLicenseAlertWindows"); if (A.size() <= 0) { var C = '<p>非常抱歉，您的站点尚未获取授权许可。用户可以继续访问本站，但此提示将随机出现。</p><p>请联系<a href="www.enjoosite.com">熙杰科技</a>获取授权许可。</p>'; $('<div id="enjoosite_badLicenseAlertWindows"></div>').appendTo($(document.body)).html(C); A = $("#enjoosite_badLicenseAlertWindows") } if (typeof A.dialog != "undefined") { A.dialog("option", "width", 350); A.dialog("option", "height", "auto"); A.dialog("option", "modal", true) } A.dialog({ title: "快乐建站温馨提示", width: 350, resizable: false, modal: true, bgiframe: true }); if (A.dialog("isOpen") == false) { A.dialog("open") } };