<!--
function viewAllEvents(eventtype)
{
	if (eventtype == '') {
		url = "/events/viewevents.php";
	}
	else {
		url = "/events/viewevents.php?e=" + eventtype;
	}

	window.open(url,"","width=330,height=500,scrollbars=yes,menubar=yes,location=no,status=no");
}

function viewEvent(url)
{
	window.open(url,"","width=500,height=300,scrollbars=yes,menubar=yes,location=no");
}

function changeArea()
{
	type = document.frmTrails.lstAreas.value;
	window.location.href = "trails.php?" + type;
}

function changeTrail(type)
{
	xml = document.frmTrails.lstTrails.value;
	window.location.href = "trail.php?s=" + type + "&file=" + xml;
}

function getid(id) {
    if(document.all)
        return document.all(id);
    else if(document.getElementById)
        return document.getElementById(id);
    return false;
}

// Get the document object inside an iframe in a portable manner
function getIFrameDocument(id) {
    if(document.frames) {
        return document.frames[id].document;
  }
    var ifrm = getid(id);

    if(ifrm.contentDocument)
        return ifrm.contentDocument;
    else if(ifrm.contentWindow)
        return ifrm.contentWindow.document;
    else if(ifrm.document)
        return ifrm.document;
}

-->

