function vmNF(){if(this.blur)this.blur();} // marc-a.prowe (www.virtuelle-maschine.de) 2001
function vmInitNF(){for(var i=0;i<document.links.length;i++){document.links[i].onfocus=vmNF;}}
// gibt, sofern vorhanden, die Session-ID in der Form 'yPHPSESSID=x' zurück, wobei
// 		x:	die Session-Id
// 		y:	ein durch den ersten Parameter übergebener String sein kann
//			(üblicherweise ein '&')
// 
function bwGetPHPSESSID(qPre, sUrl) {
	var sPos;
	if (!sUrl)
		sUrl = self.location.search;
	if ((sPos=sUrl.indexOf('PHPSESSID='))>=0) {
		return qPre+sUrl.substr(sPos,42);
	} else {
		return '';
	}
}

function spacerHeight (rHArr, spacing, width) {
	var iH = 0;
	var spacerH = 0;
	if (window.innerHeight) {
		iH = window.innerHeight;
	} else if (document.body.offsetHeight) {
		iH = document.body.offsetHeight;
	}
	for (i = 0; i < rHArr.length; i++) {
		spacerH += (rHArr[i] + spacing);
	}
	spacerH += spacing;
	spacerH = iH - spacerH - (4 * spacing);
	if (spacerH < 0) {
		spacerH = 100;
	}
	document.write('<img src="../../../img/pixel.gif" width="' + width + '" height="' + spacerH + '" alt="" border="0">');
}

function spacerWidth (cWArr, spacing, height) {
	var iW = 0;
	var spacerW = 0;
	if (window.innerWidth) {
		iW = window.innerWidth;
	} else if (document.body.offsetWidth) {
		iW = document.body.offsetWidth;
	}
	for (i = 0; i < cWArr.length; i++) {
		spacerW += (cWArr[i] + spacing);
	}
	spacerW += spacing;
	spacerW = iW - spacerW - (4 * spacing);
	if (spacerW < 0) {
		spacerW = 100;
	}
	document.write('<img src="../../../img/pixel.gif" width="' + spacerW + '" height="' + height + '" alt="" border="0">');
}

function nwindow (adress) {
  nwindowname = window.open(adress, "www.raad.de", "left=10,top=10,width=950,height=700,location=no,resizable=yes,status=no,toolbar=no,menubar=no,scrollbars=yes");
  nwindowname.focus();
}