// JavaScript Document

//for summary function...

function createObjectFun()
{
	var request_type;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer")
	{
		request_type = new ActiveXObject("Microsoft.XMLHTTP");
	} else {
		request_type = new XMLHttpRequest();
	}
	return request_type;
};

var httpFun = createObjectFun();

function showInfoSumm(cd, div)
{
	nocache = Math.random();
	httpFun.open('get', 'include/show-info-summ.php?cd='+cd+'&nocache = '+nocache);
	httpFun.onreadystatechange = infoSummState(div);
	httpFun.send(null);
}

function infoSummState(div)
{
	if(httpFun.readyState == 4)
	{
		var response = httpFun.responseText;
		var ssFun = document.getElementById(div);
		ssFUn.innerHTML = response;
		ssFun.style.visibility = "inherit";
	}
}

function hideInfoSumm(div) 
{
	var ssFun = document.getElementById(div);
	ssFun.style.visibility = "hidden";
}