function ajaxWaitCustom(a_iCondition) {
	if (a_iCondition < 0 || a_iCondition > 3) return procesError("ajaxWaitCustom", 1, "parameter had waarde '" + a_iCondition + "', enig toegstane waarden zijn 0, 1, 2 en 3");
	if (a_iCondition == 0) {
		setWait(false);
	}
	if (a_iCondition == 2) {
		setWait(true);
	}
}

function setWait(a_bOn) {
	oWait = document.getElementById("fogWait");
	if (a_bOn) {
		if (!oWait) {
			oDiv = document.createElement("div");
			oDiv.id = "fogWait";
			document.body.appendChild(oDiv);
		}
	} else {
		if (oWait) document.body.removeChild(oWait);
	}
}

function setWait2(a_bOn) {
	oWait = document.getElementById("fogWait2");
	if (a_bOn) {
		if (!oWait) {
			oDiv = document.createElement("div");
			oDiv.id = "fogWait2";
			document.body.appendChild(oDiv);
		}
	} else {
		if (oWait) document.body.removeChild(oWait);
	}
}
