gth-target.length;
	var arr = str.substr(start,target.length);
	if(arr == target){
		return true;
	}
	return false;
}

/**
 * 升级broker
 */
function upgrade(id) {
	upgradeId = id;
	if($('#'+id+'Key').html() == "继续"){
		setTimeout(method+'()', 500);
	} else {
		upgradeBackup();
	}
	disableBtn("upgradeBtn");
}

/**
 * 升级broker,第一步: 备份数据
 */
function upgradeBackup(){
	active_smartwizard("updateBroker", 0);
	$.post('${request.contextPath}/admin/deploy/backup',
			$("#"+upgradeId).serial