
	var xhr;

	function createXHR() {
		var xhr;
		
		try {
			xhr = new ActiveXObject("Msxm12.XMLHTTP");
		} catch (e) {
			try {
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (E) {
				xhr = false;
			}
		}

		if ( !xhr && typeof XMLHttpRequest != 'undefined' ) {
			xhr = new XMLHttpRequest();
		}
		return xhr;
	}

	function topInfo() {
		xhr6 = createXHR();
		xhr6.onreadystatechange = processTopInfo;
		xhr6.open( "GET", "topinfo.php", true );
		xhr6.send("");
	}

	function topInfoTest() {
		xhr6 = createXHR();
		xhr6.onreadystatechange = processTopInfo;
		xhr6.open( "GET", "topinfotest.php", true );
		xhr6.send("");
	}

	function processTopInfo() {
		if ( xhr6.readyState == 4 ) {
			if ( xhr6.responseText == "" ) {
				document.f.submit();
				document.getElementById("topinfo").style.display = "none";
				document.getElementById("mess1").style.display = "block";
				document.getElementById("btnSubmit").style.display = "block";
			} else {
				document.getElementById("topinfo").innerHTML = xhr6.responseText;
				document.getElementById("mess1").style.display = "none";
				document.getElementById("btnSubmit").style.display = "none";
				setTimeout("next()", 5000);
			}
		}
	}

	function next() {
			document.f.submit();
	}
