function fixElement(pObject) {
	if (pObject.nextSibling.fixed == null) {
		if (pObject.nextSibling.tagName == "P") {
			pObject.nextSibling.className = "first";
		} else if (pObject.nextSibling.tagName == "H2") {
			pObject.nextSibling.style.marginTop = "1em";
		}
		pObject.nextSibling.fixed = true;
	}
}

function doAjax(pSend) {
	var json = null;
	var req = createRequest();
	req.open("POST", "/formhandler.php", false);
	req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	req.send(pSend);
	if ((req.readyState == 4) && (req.status == 200)) {
		try {
			json = eval("(" + req.responseText + ")");
		} catch (e) {
			alert("Parse fout bij het valideren van de gegevens.\n\nDe response text is:\n" + req.responseText);
		}
	} else {
		alert("AJAX aanroep mislukt! state='" + req.readyState + "', status='" + req.status + "'");
	}
	return json;
}

