// JavaScript Document

var xmlhttp =zXmlHttp.createRequest();

function processauth() {
	postlogin();
	
}

function postlogin() {
	if (!xmlhttp) {alert("Your browser doesn't support XMLHTTP.\nYou need IE5+ or NN 6.1+");return}
	var filename = "authenticate.php";
		xmlhttp.open("POST",filename,true);
		xmlhttp.onreadystatechange = function () {
		if (xmlhttp.readyState==4) {
			var html =  xmlhttp.responseText;
			if (xmlhttp.status==404) {alert("The page doesn't exist on the server !!!");return}
			document.getElementById("content").innerHTML = html;
				}
		}
	xmlhttp.send();
	
}

function loadlast10() {
	var loading = "<h3 align=center>Loading Data</h3><p align=center> <img src=connect_active.gif></p>";
	document.getElementById("content").innerHTML = loading;		


	if (!xmlhttp) {alert("Your browser doesn't support XMLHTTP.\nYou need IE5+ or NN 6.1+");return}
	// var filename = "tx505.php";
		var filename = "tx500.php?txid=505";

		xmlhttp.open("POST",filename,true);


	xmlhttp.onreadystatechange = function () {
		if (xmlhttp.readyState==4) {
			var html =  xmlhttp.responseText;
			if (xmlhttp.status==404) {alert("The page doesn't exist on the server !!!");return}
			document.getElementById("content").innerHTML = html;
			 // document.getElementById("pageName").innerHTML = "Home Page";
			
		}
	}
	xmlhttp.send(null);
}

function loadlast30() {
	var loading = "<h3 align=center>Loading Data</h3><p align=center> <img src=connect_active.gif></p>";
	document.getElementById("content").innerHTML = loading;		


	if (!xmlhttp) {alert("Your browser doesn't support XMLHTTP.\nYou need IE5+ or NN 6.1+");return}
	var filename = "tx500.php?txid=51430";

		xmlhttp.open("POST",filename,true);


	xmlhttp.onreadystatechange = function () {
		if (xmlhttp.readyState==4) {
			var html =  xmlhttp.responseText;
			if (xmlhttp.status==404) {alert("The page doesn't exist on the server !!!");return}
			document.getElementById("content").innerHTML = html;
			 // document.getElementById("pageName").innerHTML = "Home Page";
			
		}
	}
	xmlhttp.send(null);
}

function loadlast60() {
	var loading = "<h3 align=center>Loading Data</h3><p align=center> <img src=connect_active.gif></p>";
	document.getElementById("content").innerHTML = loading;		


	if (!xmlhttp) {alert("Your browser doesn't support XMLHTTP.\nYou need IE5+ or NN 6.1+");return}
	var filename = "tx514.php";

		xmlhttp.open("POST",filename,true);


	xmlhttp.onreadystatechange = function () {
		if (xmlhttp.readyState==4) {
			var html =  xmlhttp.responseText;
			if (xmlhttp.status==404) {alert("The page doesn't exist on the server !!!");return}
			document.getElementById("content").innerHTML = html;
			 // document.getElementById("pageName").innerHTML = "Home Page";
			
		}
	}
	xmlhttp.send(null);
}
