﻿			var xmlHttp;
			
			function createxmlHttpRequest() {
				if (window.ActiveXObject) {
					xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
				} else if (window.XMLHttpRequest) {
					xmlHttp = new XMLHttpRequest();
				}
			}
			
			function handleStateChange() {
				if (xmlHttp.readyState == 4) {
					if (xmlHttp.status == 200) {
						document.getElementById("maincontent").innerHTML = xmlHttp.responseText;
					}
				}
			}
			
			function startRequest(sourceHTML) {
				createxmlHttpRequest();
				xmlHttp.onreadystatechange = handleStateChange;
				xmlHttp.open("get",sourceHTML);
				xmlHttp.send(null);
			}