		if(xrayInfo === undefined) {
			checkUpdate_xray(btn);
		} else {
			doUpdate_xray(btn);
		}
	}

	function checkUpdate_xray(btn) {
		btn.disabled = true;
		btn.value = inProgressText;

		addPageNotice_xray();

		var ckeckDetailElm = document.getElementById(btn.id + '-detail');

		XHR.get('<%=url([[admin]], [[services]], [[bypass]], [[xray_check]])%>', {
			token: tokenStr,
			arch: ''
		}, function(x,json) {
			removePageNotice_xray();

			if(json.code) {
				xrayInfo = undefined;
				onRequestError_xray(