var monthsStartAt = 0;

function eventFlip(which)
{
	if (document.getElementById && document.getElementById(which))
	{
		if (navigator.appName.indexOf('Internet Explorer') != -1) var displayValue = 'block';
		else var displayValue = 'table-row';

		var state = document.getElementById(which).checked;
		var o = document.getElementById(which + '1');

		if (state == false)
		{
			if (typeof(o)!='undefined' && typeof(o.style) != 'undefined' && typeof(o.style.display) != 'undefined')
			{
				document.getElementById(which + '1').style.display = 'none';
				document.getElementById(which + '2').style.display = 'none';
			}
		}
		else
		{
			if (o && o.style && o.style.display)
			{
				document.getElementById(which + '1').style.display = displayValue;
				document.getElementById(which + '2').style.display = displayValue;
			}
		}
	}
}

function bingoSwapper(which)
{
	for (i=0;i<=6;i++)
	{
		document.getElementById('dayInfo' + i).style.display = 'none';
	}

	document.getElementById('dayInfo' + which).style.display = 'block';
}


// © 2001 jovino
// all rights reserved
var masterArray=new Array('06','07','08','09','10','11');
var theChosenOne=masterArray[Math.floor(Math.random()*masterArray.length)]
// end

function popupResize()
{
	window.resizeTo(400,530);
}

function getUTCDate(current_Month, current_Day, current_Year) {
	var dateTime = new Date(Date.UTC(current_Year, (nozeros(current_Month) - monthsStartAt), (nozeros(current_Day))));
	return dateTime.getTime();
}

function nozeros(input) {
	return input;
	if ((input.length > 1) && (input.substr(0, 1) == "0")) {
		return input.substr(1);
	} else {
		return input;
	}
}