function menuClicked(iM)
{
	var fForm = document.fNav;

	fForm.BannerPos.value = oBanner.BannerPosition();
	if (iM == 1)
		fForm.action = "about.html";
	else if (iM == 2)
		fForm.action = "services.html";
	else if (iM == 3)
		fForm.action = "work.html";
	else if (iM == 4)
		fForm.action = "clients.html";
	else if (iM == 5)
		fForm.action = "contactus.html";
	else if (iM == 6)
		fForm.action = "links.html";
	else if (iM == 7)
		fForm.action = "guestbook.html";
	else
		fForm.action = "index.html";

	fForm.submit();
}

function GetParm(sName)
{
	var iStart;
	var iEnd;
	var sParm;
	var sParms = location.search;

	iStart = sParms.indexOf(sName);
	if (iStart > 0)
	{
		iStart = sParms.indexOf("=",iStart) + 1;
		iEnd = sParms.indexOf("&",iStart);
		if (iEnd < iStart)
			iEnd = sParms.length;
		sParm = sParms.substring(iStart, iEnd);
		return sParm;
	}
	else
		return "n/a";
}

function GetMenuParm(theParm)
{
	return GetParm(theParm);
	//alert(1);
}