function toggleLayer( whichLayer )
{
for (i=0; i<document.getElementById("contenttable").childNodes.length; i++){
if (document.getElementById("contenttable").childNodes[i].nodeName=="DIV") {
if (whichLayer == 'all') {
document.getElementById("contenttable").childNodes[i].style.display = 'block';
} else {
document.getElementById("contenttable").childNodes[i].style.display = 'none';
}
}
}
	document.getElementById(whichLayer).style.display = 'block';
}

function ShowDay(dbdate) {
window.open( "./modules/schedules/showday.php?dbdate="+dbdate, "myWindow", 
"status = , height = 400, width = 460, resizable = 1,screenX=10,left=10,screenY=10,top=10,location=0,scrollbars=1,resizable=1" );
myWindow.focus();
}
function ShowMatch(data) {
window.open( "./modules/schedules/showday.php?show=match&data="+data, "myWindow", 
"status = , height = 400, width = 460, resizable = 1,screenX=10,left=10,screenY=10,top=10,location=0,scrollbars=1,resizable=1" );
myWindow.focus();
}
function ShowResult(data) {
window.open( "./modules/schedules/showday.php?show=result&data="+data, "myWindow", 
"status = , height = 400, width = 560, resizable = 1,screenX=10,left=10,screenY=10,top=10,location=0,scrollbars=1,resizable=1" );
myWindow.focus();
}
