function ShowDiv(DivId, VisibleOrNot)
{
	if (document.getElementById(DivId))
	{
		if (VisibleOrNot == 1)
		{
			document.getElementById(DivId).style.display = 'block';
		}
		else
		{
			document.getElementById(DivId).style.display = 'none';
		}
	}
}

function CloseAllDivs(GivenId)
{
	var IdPrefix = GivenId.substr(0, GivenId.length - 2); //nimmt an, dass die letzten beiden Zeichen Zahlen sind
	var arrDivs = document.getElementsByTagName("div");
	for (var i=0; i < arrDivs.length; i++)
	{

		if (arrDivs[i].id) 
		{
			arrDivId = document.getElementById(arrDivs[i].id);
			if (arrDivId)
			{
				if (arrDivId.id.substr(0, arrDivId.id.length - 2) == IdPrefix)
				{
					var arrDivIdContainer = document.getElementById(arrDivId.id + "container");
					var arrDivIdTitle = document.getElementById(arrDivId.id + "title");
					arrDivIdContainer.style.backgroundImage = "";
					arrDivIdTitle.style.paddingLeft = "0px";
					ShowDiv(arrDivs[i].id, 0);
				}
			}
		}
	}
}

function OpenDiv(DivId)
{
	var DivIdContainer = document.getElementById(DivId + "container");
	var DivIdTitle = document.getElementById(DivId + "title");
	if (document.getElementById(DivId))
	{
		CloseAllDivs(DivId);
		DivIdContainer.style.backgroundImage = "url(pic/backdiv1.jpg)";
		DivIdTitle.style.paddingLeft = "70px";
		ShowDiv(DivId, 1);
	}
}

function SetListByParam(selectObject)
{
if (window.location.search != "")
 {
  targetIndex = window.location.search.substr(1);
  
  //alert(select);
  //alert(targetIndex);
  selectObject.options.selectedIndex = targetIndex;
 }
}
