function Sendate(theDate)
{
	document.Thefrm.datefld.value=theDate
	document.Thefrm.method="post"
	document.Thefrm.submit();

}
function SenMonth(themonth)
{
	document.Thefrm.datefld.value=themonth
	document.Thefrm.monthfld.value=themonth
	document.Thefrm.action="events.asp"
	document.Thefrm.method="post"
	document.Thefrm.submit();

}
function Showdetails(TheId)
{

	//document.Thefrm.id.value=TheId
	//document.Thefrm.date.value=""
	//document.Thefrm.method="post"
	//document.Thefrm.action="html/events.asp"
	//document.Thefrm.submit();

	document.location.href="events.asp?id="+TheId;
	document.target="_top"
}

function HideContent(d) {
if(d.length < 1) { return; }
	document.getElementById("Layer"+d).style.display = "none";
}
function ShowContent(d ,theRefid)
 {	
	if(d.length < 1) { return; }	
	TheWidth=theRefid.offsetWidth
	if(theRefid.offsetParent)
	{
    	for( var posX = -1, posY = -10; theRefid.offsetParent; theRefid = theRefid.offsetParent )
		{
			posX += theRefid.offsetLeft;
			posY += theRefid.offsetTop;
	    }
	}
	
	document.getElementById("Layer"+d).style.left=posX+"px"
	document.getElementById("Layer"+d).style.top=posY+30+"px"
	document.getElementById("Layer"+d).style.display = "";
}
