$(document).ready(function(){ }); function LimitAccess(){ $.ajax({ type : "POST", url:"../../hdapp/bas/e.php?ac=getlimit",//, dataType:'json', success: function(data){ if(data.type == 'success'){ location.href = "../../403.htm"; } } }); } var _arr = {}; function loadScript(scriptName, callback) { if (!_arr[scriptName]) { _arr[scriptName] = true; var body = document.getElementsByTagName('body')[0]; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = scriptName; // then bind the event to the callback function // there are several events for cross browser compatibility // script.onreadystatechange = callback; script.onload = callback; // fire the loading body.appendChild(script); } else if (callback) { callback(); } }; function _toastr(_title,_message,_notifyType,_onclick) { if(_message != false) { switch(_notifyType) { case 'success': icontype = 1; break; case 'danger': case 'error': icontype = 2; break; case 'warning': icontype = 7; break; default: icontype = 3; } layer.msg(_message, { title:_title, icon: icontype, end:function(){ if (_onclick) { location.href=_onclick; } } }); } } function _toastrframe(_title,_message,_notifyType,_onclick) { if(_message != false) { switch(_notifyType) { case 'success': icontype = 1; break; case 'danger': case 'error': icontype = 2; break; case 'warning': icontype = 7; break; default: icontype = 3; } parent.layer.msg(_message, { title:_title, icon: icontype, end:function(){ if (_onclick) { location.href=_onclick; } } }); } }