<!--
var label_string = "";
var label_chacked = "";
function c(obj) {
	if (document.getElementById) {
		var label = document.getElementById("l"+obj.id);
		if (obj.checked) {
			if (label_string.indexOf(label.id+",") == -1) {
				label_string += label.id+",";
			}

			var v = obj.value.split(".");
			if (v[1] == "pending")
			{
				label.style.backgroundColor = '#6484A3';
			}
			else
			{
				label.style.backgroundColor = '#E39122';
			}

			
		} else {
			if (label_string.indexOf(label.id+",") != -1) {
				label_string = label_string.substring(0, label_string.indexOf(label.id+",")) + label_string.substr((label_string.indexOf(label.id+",")+(label.id+",").length));
			}
			label.style.backgroundColor = '';
		}
	}
}
function labelclear() {
	if (document.getElementById) {
		var carray = label_string.split(",");
		label_string = '';
		carray.pop();
		for (var i = 0; carray[i]; i++) {
			document.getElementById(carray[i]).style.backgroundColor = '';
		}
		var carray = label_chacked.split(",");
		carray.pop();
		for (var i = 0; carray[i]; i++) {
			document.getElementById(carray[i]).style.backgroundColor = '#E39122';
		}
	}
}

function openCalendar(obj, id, width, height) {
	window.open(obj.href, id, 'width=' + width + ',height=' + height + ',scrollbars=yes,toolbar=no,location=no,status=no,resizable=no,left=' + ((screen.width-width)/2) + ',top=' + ((screen.height-height)/2));
	return false;
}

function openPopup(obj, id, width, height) {
	window.open(obj.href, id, 'width=' + width + ',height=' + height + ',scrollbars=yes,toolbar=no,location=no,status=no,resizable=no,left=' + ((screen.width-width)/2) + ',top=' + ((screen.height-height)/2));
	return false;
} 
//-->