function showpage(pSectionID, pIDs, pLayout) {
	var sParms = "SectionID=" + pSectionID + "&ParentIDs=" + pIDs;
	
	if (parseInt(pLayout) == 0) 
		window.location.href = "index.php3?" + sParms;
	else if (parseInt(pLayout) == 1) 
		window.location.href = "archive.php3?" + sParms;
		
	window.location.href = "index.php3?" + sParms;
}


function showpageDropdown(pSectionID, pIDs, pLayout) {
	var obj, sParms = "SectionID=" + pSectionID + "&ParentIDs=" + pIDs;
	eval ("obj = document.MenuForm.ContentID" + pSectionID + ";");
	sParms += "&ContentID=" + obj[obj.selectedIndex].value;
	window.location.href = "view.php3?" + sParms;
}
	
	
function showpageURL(pSectionID, pIDs, pURL, pTarget, pLayout) {
	if (pTarget == "") {
		var sParms = "SectionID=" + pSectionID + "&ParentIDs=" + pIDs;
		window.location.href = "index.php3?" + sParms;
	}
	else {
		if (pTarget == "Main") pTarget = "_self";
		var sParms = "SectionID=" + pSectionID + "&ParentIDs=" + pIDs;
		window.open("" + pURL, ""+pTarget);
	}
}

function goBand(pSectionID) {
	var iIndex = parseInt(document.MenuForm.BandID.selectedIndex);
	var iBandID = parseInt(document.MenuForm.BandID[iIndex].value);
	
	if (iBandID > 0) {
		location.href = "band.php3?ID=" + pSectionID + "&Show=Bands&BandID=" + iBandID;
	}

}

function goReview(pSectionID) {
	var iIndex = parseInt(document.MenuForm.BandID.selectedIndex);
	var iBandID = parseInt(document.MenuForm.BandID[iIndex].value);
	
	if (iBandID > 0) {
		location.href = "review.php3?ID=" + pSectionID + "&Show=Bands&BandID=" + iBandID;
	}
}

