	function createXMLHttpRequest() {
		var XMLRequest = false;
		
		// create object for IE7, Mozilla, Safari, etc. (native object)
		if (window.XMLHttpRequest) {
			XMLRequest = new XMLHttpRequest();
		}
		// create object for IE6, IE5, etc. (ActiveX object)
		else if (window.ActiveXObject) {
			var success = false;
			var progIDs = new Array(
				"Msxml2.XMLHTTP.6.0",
				"Msxml2.XMLHTTP.3.0",
				"Msxml2.XMLHTTP",
				"Microsoft.XMLHTTP"
			);
			
			for (i=0; i<progIDs.length && !success; i++) {
				try {
					XMLRequest = new ActiveXObject(progIDs[i]);
					success = true;
				}
				catch (failure) {
					
				}
			}
		}
		
		return XMLRequest;
	}
	
	function imageWindow(imageFile, imageURL) {
		var windowWidth = "625";
		var windowHeight = "500";
		
		var leftPosition = Math.ceil((screen.width - windowWidth) / 2);
		var topPosition = Math.ceil((screen.height - windowHeight) / 2);
		
		var tmpWindow = window.open("../../popup/image.php?file=" + imageFile + "&url=" + imageURL, "image_window", "width=" + windowWidth + ", height=" + windowHeight + ", left=" + leftPosition + ", top=" + topPosition + ", channelmode=0, directories=0, fullscreen=0, location=0, menubar=0, resizable=1, scrollbars=1, status=0, toolbar=0");
		tmpWindow.focus();
	}
	
	function jumpSelect(postField) {
		eval("document.location='" + postField.options[postField.selectedIndex].value + "'");
	}
	
	function popupWindow(popupURL, popupWidth, popupHeight) {
		var windowWidth = popupWidth;
		var windowHeight = popupHeight;
		
		var leftPosition = Math.ceil((screen.width - windowWidth) / 2);
		var topPosition = Math.ceil((screen.height - windowHeight) / 2);
		
		var tmpWindow = window.open(popupURL, "popup_window", "width=" + windowWidth + ", height=" + windowHeight + ", left=" + leftPosition + ", top=" + topPosition + ", channelmode=0, directories=0, fullscreen=0, location=0, menubar=0, resizable=1, scrollbars=1, status=0, toolbar=0");
		tmpWindow.focus();
	}
	
	function reportWindow(reportURL) {
		var windowWidth = "575";
		var windowHeight = "295";
		
		var leftPosition = Math.ceil((screen.width - windowWidth) / 2);
		var topPosition = Math.ceil((screen.height - windowHeight) / 2);
		
		var tmpWindow = window.open(reportURL, "report_window", "width=" + windowWidth + ", height=" + windowHeight + ", left=" + leftPosition + ", top=" + topPosition + ", channelmode=0, directories=0, fullscreen=0, location=0, menubar=0, resizable=1, scrollbars=1, status=0, toolbar=0");
		tmpWindow.focus();
	}
	
	function showForm(formId, formLength) {
		for (i=1; i<=formLength; i++) {
			document.getElementById("form_" + i).style.display = "none";
		}
		
		document.getElementById("form_" + formId).style.display = "block";
	}