// JavaScript Document
function checkArea(area) {
	
	
	if (theForm.cat[area-1].checked) {
	 	isOn = false;
	} else {
		isOn = true;
	}
	document.theForm.cat[area-1].checked = isOn;
}

function checkAreas(from,to) {
	if (document.theForm.cat[from].checked) {
	 	isOn = true;
	} else {
		isOn = false;
	}
	for (i=from; i<to+1; i++) {
		if (document.theForm.cat[i]) {
			document.theForm.cat[i].checked = isOn;
		}
	}

}


var Item = {
	click: function(parent, srchNode) {
		var txtNode = parent.getElementsByTagName(srchNode.toUpperCase());
		txtNode = txtNode[0];
		var cbNode = parent.getElementsByTagName("INPUT");
		cbNode = cbNode[0];
		var txtStyle = txtNode.style;
		var changeColor = function(color) { txtStyle.color = color; };
		(cbNode.checked) ? changeColor("#F54c05") : changeColor("#C5C5C5");
	}
}