function createXmlHttp() {
	if(window.XMLHttpRequest) { return new XMLHttpRequest();
	} else if(window.ActiveXObject) {
		try { return new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) { return new ActiveXObject("Microsoft.XMLHTTP"); }
	}
	return null;
}

var xmlHttp = createXmlHttp();

if ( xmlHttp != null ) {
	xmlHttp.open("GET","/my-cgi/analize.cgi",true);
	var data="";

	xmlHttp.onreadystatechange = function() {
		if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
			aaa = xmlHttp.responseText.split('{}');
			data = "Today's Entry    "+aaa[0]+"    /    "+"Total Stock    "+aaa[1];
			document.getElementById('carstock').innerHTML = data;
		}
	}
	xmlHttp.send(null);
}
