function InitToolTip() {
	SetupToolTip("ToolTipContent","ToolTipBG",-100,20);
}

function TTMouseOver(iYear,iMonth,iDay) {
	var sURL = "./AjaxPages/ToolTipCalendar.php?year="+iYear+"&month="+iMonth+"&day="+iDay;
	ToolTipStart(sURL,0,0,true);
}

function TTMouseOut() {
	ToolTipEnd();
}

function ExpandContract(sDiv, sCheckObject, sCheckFor, sChangeObject, sChange1, sChange2)
{
	if ((document.getElementById(sCheckObject).value - 1) == (sCheckFor - 1)) {
		document.getElementById(sDiv).style.display = "block";
		document.getElementById(sChangeObject).innerHTML = sChange1;
		document.getElementById(sCheckObject).value = "";
	}
	else {
		document.getElementById(sDiv).style.display = "none";
		document.getElementById(sChangeObject).innerHTML = sChange2;
		document.getElementById(sCheckObject).value = sCheckFor;
	}
}
