<!--
function openWindow(destinationURL, windowName, windowWidth, windowHeight) {

	windowLeft = (screen.width - windowWidth) / 2;
	windowTop = (screen.height - windowHeight) / 2;
	if (windowLeft < 0) windowLeft = 0;
	if (windowTop < 0) windowTop = 0;

	windowOptions = 'width=' + windowWidth + ',height=' + windowHeight + ',top=' + windowTop + ',left=' + windowLeft + ',location=no,status=no,resizable=no,menubars=no,toolbars=no,scrollbars=yes';
	window.open(destinationURL, windowName, windowOptions);

}


// AJAX functions
function getFAQ(path) {
	var req = null;
	if(window.XMLHttpRequest) {
		req = new XMLHttpRequest();
	} else {
    	if (window.ActiveXObject) {
    		req = new ActiveXObject("Microsoft.XMLHTTP");
    	}
    }

	req.onreadystatechange = function() {
		if(req.readyState == 4) {
			if(req.status == 200) {
				document.getElementById('faq-display').innerHTML = req.responseText;
			} else {
				document.getElementById('faq-display').innerHTML = "Error: " + req.status;
			}
		}
	};

	req.open("GET", "/faq/get-faq.php?path=" + path, true);
	req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	req.send(null);
}

//-->