/* 
	print html-item 
	by Benedikt Beun - Plenso bvba
*/


function doPrint(oEl){
	setParents(oEl);
	window.print(); 
	/*
	var strHTML = oEl.innerHTML; 
	oEl.style.backgroundColor = "red";
	oEl.innerHTML += "<iframe src='about:blank' id='ifrmprint' name='ifrmprint' style='border: 3px solid green; '></iframe>";
//	oFr = document.getElementById("ifrmprint").document;
	oFr=window.open("","ifrmprint");
	oFr.open();
	oFr.write(strHTML);
	oFr.close();
	*/
}

function setParents(oEl){
	var oPa = oEl.parentNode;
	var arBroers = oPa.childNodes;
	//alert(oEl.nodeName + ": " + oEl.className + " : " + oEl.id);
	for (var i=0; i<arBroers.length; i++){
		if (arBroers[i] == oEl){
//			if (arBroers[i].style) arBroers[i].style.backgroundColor = "red";
		} else {
	//		if (arBroers[i].style) arBroers[i].style.backgroundColor = "yellow";
	//		if (arBroers[i].style) arBroers[i].style.display = "none";
			if (arBroers[i].style) arBroers[i].className += ' noprint';
			//if (arBroers[i].style) arBroers[i].style.display = "none";
		}
	}
	if ((oPa.parentNode)&&(oPa.parentNode.className != "stop")) setParents(oPa);
}