
function openContact(arg1) {
	var load = window.open('/contact-popup.php?ea='+arg1,'a','height=400,width=620,status=0,scrollbars=1');
}

/* ProMoozz.org
	setToC( id )
	Creates Table of Contents based on the H2-elements in the content of the page

	id: IDname of the DIV-element where the ToC has to be shown
	
	credits: original and full script from from quirksmode.org/dom/toc.html
*/
function setToC( id ) {
	var ToCholder = document.getElementById( id );

	// array of all h2-nodes (note: searches full document!)
	var toBeTOCced = document.getElementsByTagName('H2');

	if (toBeTOCced.length>1 && ToCholder) {
		for (var i=0;i<toBeTOCced.length;i++) {
			var tmp = document.createElement('a');

			tmp.innerHTML = toBeTOCced[i].innerText || toBeTOCced[i].textContent; // FF doesn't support innerText
			ToCholder.appendChild(tmp);

			// get ID of the h2 or make one up
			var headerId = toBeTOCced[i].id || 'part' + i;
			tmp.href = document.location.pathname + '#' + headerId;
			tmp.title = toBeTOCced[i].innerText; // document.location.href; //
			toBeTOCced[i].id = headerId;

			// creeer een tothetoplink
			var ttt = document.createElement('a');
			ttt.className = 'naarboven';
			ttt.href = document.location.pathname + '#top';
			toBeTOCced[i].appendChild(ttt);
		}
	}
}





/* ProMoozz.org
	rewriteSideMenu( id, menu )
	Rewrites the menu (or generally the content of the given DIV) based on (a part of) the UL-dropdownmenu.

	id: IDname of the DIV-element where the sidemenu has to be shown
	menu: (part of) the menu to be put in the sidebar
*/
function rewriteSideMenu( id, menu ) {
	/*
	// first attempt, works for IE6, not for FF3.5...
	block = document.getElementById( id ).firstChild; //  = content
	*/
	block = document.getElementById( id ).getElementsByTagName('DIV')[0];

	// titel voor het blok (orig: innerText maar werkt niet in FF3.5)
	title = document.createElement('H4');
	title.innerHTML = document.getElementById( menu ).firstChild.innerText || document.getElementById( menu ).firstChild.textContent;

	sidemenu = document.getElementById( menu ).getElementsByTagName('UL')[0].cloneNode(true);
	
	// remove IDs to avoid double IDs
	var arr = sidemenu.getElementsByTagName('li');
	for (var i=0;i<arr.length;i++) {
		arr[i].removeAttribute('id');
	}

	//block.innerHTML='';
	block.innerHTML='';
	block.appendChild(title);
	block.appendChild(sidemenu);
/*	
	alert( block.innerHTML );
	alert('test end');
	*/
}

