var loading = {
open: function(opacity) {
if($('#_MP_PAGE_LOADING_').length == 0) {
var html = '
';
html += '';
$('body').append(html);
}
$('#_MP_PAGE_LOADING_').show();
if(!isNaN(opacity)) {
opacity = parseInt(opacity) / 10;
if(opacity > 0 || opacity < 1) {
$('#_MP_PAGE_LOADING_').css('background', 'rgba(0, 0, 0, '+opacity+')');
}
}
},
close: function() {
$('#_MP_PAGE_LOADING_').hide();
}
}
function checkMobile(mobile) {
return /^1\d{10}$/.test(mobile);
}
function checkEmail(email) {
return /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(email);
}