// JavaScript Document

window.onload = initAll;

function initAll() {
	
	
}

function showValue(id) {

	xmlHttp=GetXmlHttpObject();
	
	var url="core/categories.core.php";
	url =+"?category_id="+id;

	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("GET", url, true);
	xmlHttp.send(null);	
	
}

function statedChanged() {

	if (xmlHttp.readyState==4 || xml.Http.readyState=="complete") {

		document.getElementById("ajax").innerHTML=xmlHttp.responseText;

	}	
}

function GetXmlHttpObject() {

	var xmlHttp=null;

	try {
		//firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	} catch (e) {
		//internet explorer
		try {
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}

	return xmlHttp;
}
