// JavaScript Document
	
// Angepasst von Böhler Jürgen, DBNET Böhler und Groß OEG
// Original Version //4.01
// iFrame Unterstützung integriert
function MM_findObj(n, d) { //v4.02
	var p,i,x;  if(!d) d=document; 
	if((p=n.indexOf("?"))>0&&(parent.frames.length||document.frames.length)) {
		d=parent.frames[n.substring(p+1)]; 
		if(!d){d=document.frames[n.substring(p+1)];}
		n=n.substring(0,p);d.document;
	}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n);
	return x;
}
				 
// dn_randomImage('_images',['0.gif','1.gif','2.gif'],322,150); 
function dn_randomImage(imagePath,arrImages,imageWidth,imageHeight) {
	var r = Math.floor(Math.random()*arrImages.length);
  document.write('<img src="'+imagePath+''+arrImages[r]+'" width="'+imageWidth+'" height="'+imageHeight+'">');
}

function gotoURL(url) {
	document.location.href = url;
}

function goBack() {
	history.back();
}

function imgSwap(oImg) {
   var strOver  = "_on";    // image to be used with mouse over
   var strOff = "_off";     // normal image
   var strImg = oImg.src;
   if (strImg.indexOf(strOver) != -1) {
      oImg.src = strImg.replace(strOver,strOff);
	 } else {
      oImg.src = strImg.replace(strOff,strOver);
	 }
}