
	setStatus("HoLLaND SyMFoNia. Het Nederlands Ballet- en Symfonieorkest")

	function setStatus(strStatus)
	{
		window.status = strStatus
		
	}



	function openWindow(strUrl,strName,strSettings)
	{
		var strName = strName || 'hsWindow';
		var strSettings = strSettings|| 'width=650,height=800,status=no,resizeable=yes,toolbar=no,menubar=no';
		var hsWin = window.open(strUrl,strName,strSettings,true)
		hsWin.focus();
		return false;
	}
	
	
	function openVideoWindow(strUrl,strName,strSettings)
	{
		var strName = strName || 'hsWindow';
		var strSettings = strSettings|| 'width=350,height=450,status=no,resizeable=yes,toolbar=no,menubar=no';
		var hsWin = window.open(strUrl,strName,strSettings,true)
		hsWin.focus();
		return false;
	}

	function openFotoWindow(imgname)
	{
		
	}

	function openPopupWindow(strUrl)
	{
		var strName = strName || 'hsWindow';
		var strSettings = strSettings|| 'width=450,height=550,status=no,toolbar=no,menubar=no,scrollbars=yes';
		var hsWin = window.open(strUrl,strName,strSettings,true)
		hsWin.focus();
		return false;
	}
	
	function openDigiMagWindow(strUrl)
	{
		var strName = strName || 'digimag';
		var strSettings = strSettings|| 'width=794,height=595,status=no,resizable=yes,toolbar=no,menubar=no,scrollbars=no';
		var hsWin = window.open(strUrl,strName,strSettings,true)
		hsWin.focus();
		return false;
	}


	function getCookie(c_name)
	{

		if (document.cookie.length>0)
		{
			c_start=document.cookie.indexOf(c_name + "=")
			if (c_start!=-1)
			{ 
				c_start=c_start + c_name.length+1 
				c_end=document.cookie.indexOf(";",c_start)
				if (c_end==-1) c_end=document.cookie.length
				return unescape(document.cookie.substring(c_start,c_end))
			} 
		}
		return ""
	}

	function CheckShopItemConfig(objForm,MinItems,MaxItens)
	{		
		var counter = 0
		var ItemCount = objForm.ShopItemsConfigID.length
		var IsDimentional = objForm.ShopItemsConfigID[0].length
		var formQuantity = objForm.Quantity

		if(IsDimentional) /*miltiple lists */ 
		{
			for(var i = 0; i < ItemCount; i++)
			{
				if(objForm.ShopItemsConfigID[i].selectedIndex == 0)
				{
					alert("Maak een keuze uit alle bechikbare selectievelden")
					return false;
				}
				else
				{			
					for(var j = 0; j < ItemCount; j++)
					{
						if(objForm.ShopItemsConfigID[i].selectedIndex == objForm.ShopItemsConfigID[j].selectedIndex)
							counter++;
					}
				}
			}

			if(ItemCount != counter)
			{
				alert("U heeft nog duplicaten in uw selectie\npas uw keuze aan")
				return false
			}
			else
				return true
		}
		else /* single list */ 
		{
			if(objForm.ShopItemsConfigID.selectedIndex == 0)
			{
				alert("Maak een keuze")
				return false;
			}
			else
				return true
		}
	}

	function toggleElement(elemID)
	{
		elem = document.getElementById(elemID);
		elem.style.visibility = (elem.style.visibility == 'hidden') ? "visible" : "hidden";
	}
	

	/* window.open('?run=fotowindow&img=koninglodewijk2.jpg','foto','width=600,height=450,left=5,top=5');return false; */

	function checkPoll(f)
	{
		var c = null;
		for (var i = 0; i < f.questionID.length; i++) 
			if (f.questionID[i].checked) 
				c = i;

		if (c == null)
		{
			alert("Maak eerst uw keuze uit een van de antwoorden.");
			return false;
		}
		else
			return true;
	}


	function checkWensPoll(f)
	{

		var intCount = 0
		for (var i = 0; i < f.questionID.length ; i++)
		{
			if(f.questionID[i].checked)
					intCount++
		}
		
		if(intCount == 0)
		{
			alert("Maak eerst uw keuze");
			return false;
		}

		if(intCount > 3)
		{
			alert("U mag maximaal 3 voorkeuren opgeven");
			return false;
		}
		else
			return true;
	}


 /* positioning extended */
	function getWindowHeight() 
	{
		var windowHeight = 0;
		if (typeof(window.innerHeight) == 'number') {
			windowHeight = window.innerHeight;
		}
		else {
			if (document.documentElement && document.documentElement.clientHeight) {
				windowHeight = document.documentElement.clientHeight;
			}
			else {
				if (document.body && document.body.clientHeight) {
					windowHeight = document.body.clientHeight;
				}
			}
		}
		return windowHeight;
	}

	function test()
	{
		alert(getWindowHeight())
	}
	

	function scaleColumn()
	{
		var headerElement = document.getElementById('pageHeader');
		var headerHeight = headerElement.offsetHeight;

		var columnsElement = document.getElementById('columns');
	  //columnsElement.style.border = "1px solid gray"
		columnsElement.style.height = (getWindowHeight() - headerHeight - 19 - 15) +"px"

	}


	window.onresize = function() 
	{
		//scaleColumn()//setContent();
	}




	
/*	
	function setTarget()
	{
		var strDomain = document.domain;
		var arrLinks = document.links

		for (var i=0; i < arrLinks.length; i++) 
		{		
			if(arrLinks[i].href.match("javascript")== null)
			{
				if (arrLinks[i].href.match(strDomain)== null)
				{
					arrLinks[i].target = "_blank";
				}
			}
		}
	}
	
	window.onload = function()
	{
		setTarget();
	}	
*/
