var selectedDay = null;

function openWindow(obj, w, h)
{
	window.open('' + obj.href, '', 'width=' + w + ',height=' + h + ',left=100,top=200,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes')
}

function cellHover(obj, newBg)
{
	obj.bgColor = newBg;
}

function relocate(url, y, m)
{
	location.href = url + '?y=' + y + '&m=' + m;
}

function aboutBox()
{
	var text =	"DHTML Date/Time Selector\n" +
			"(c) dynarch.com 2002-2003\n" + // don't translate this this ;-)
			"For latest version visit: http://dynarch.com/mishoo/calendar.epl\n" +
			"Distributed under GNU LGPL.  See http://gnu.org/licenses/lgpl.html for details." +
			"\n\n" +
			"Date selection:\n" +
			"- Use the \xab, \xbb buttons to select year\n" +
			"- Use the " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " buttons to select month.";
	/*
	text +=	"\n\n" +
			"Time selection:\n" +
			"- Click on any of the time parts to increase it\n" +
			"- or Shift-click to decrease it\n" +
			"- or click and drag for faster selection.";
	*/
	alert(text);
}