// Function to read URL variables
function GetURLVars()
{
	// Get all of the name-value pairs from the URL string
	var args = new Object();
	a_pairs = document.location.search.split(/[?&]/);
	for (i = 0; i < a_pairs.length; i ++) {
		// Get name and value
		a_bits = a_pairs[i].split('=');
		if ((a_bits.length == 2) && (a_bits[0].length)) {
			if (args[a_bits[0]] == undefined) {
				// Set name and value
				args[a_bits[0]] = unescape(a_bits[1]);
			} else {
				// Build a comma separated list
				args[a_bits[0]] = args[a_bits[0]] + ',' + unescape(a_bits[1]);
			}
		}
	}
	
	return args;
}

// Function read URL anchor
function GetAnchor()
{
	a_bits = document.location.href.split('#');
	if (a_bits.length > 1) {
		return a_bits[1];
	} else {
		return '';
	}
}

// Function to display calendar for a given month
function showMonth(month_name, old_month)
{
	document.getElementById('calendar_' + month_name).style.display = 'inline';
	
	if (old_month != '' && old_month != undefined) {
		document.getElementById('calendar_' + old_month).style.display = 'none';
	}
}
