HttpRequest.instClAction = HttpRequest.getTransport();
HttpRequest.procClAction = false;

// HANDLE
HttpRequest.hndlClAction = 
	function() {
		if(HttpRequest.instClAction.readyState == HttpRequest.RS_FINISHED) {
			getObject('clMonth').innerHTML = HttpRequest.instClAction.responseText;
			getObject('clLoading').style.display = 'none';
			HttpRequest.procClAction = false;
		}
	};

// COMMAND 
HttpRequest.cmdClAction = 
	function() {
		if(!HttpRequest.instClAction.processing) {
			getObject('clLoading').style.display = 'block';
			HttpRequest.procClAction = true;
			hturl = 'ht58.php?htcmd=calendar_get';
			hturl = hturl + '&param='+calPARAM;
			hturl = hturl + '&m='+idMonth;
			hturl = hturl + '&y='+idYear;
			hturl = hturl + '&doClAction=get_month';
			hturl = hturl + '&randid='+Math.random();
			HttpRequest.instClAction.open('get', hturl);
			HttpRequest.instClAction.onreadystatechange = HttpRequest.hndlClAction; 
			HttpRequest.instClAction.send(null);
		}
	};
// ----------------------------------------------------------------------------

var calPARAM='';
var idMonth;
var idYear;

function fClGoto(m,a){
	idMonth=m;
	idYear=a;
	HttpRequest.cmdClAction();
	return false;
}
