	var cd = null;
	var pdf = null;
	
/* ********************************************************************************************
 * Allgemeine Funktionen
 ******************************************************************************************* */
  // 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.01
		var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
			d=parent.frames[n.substring(p+1)].document; 
			if(!d){d=window.frames[n.substring(p+1)].document;}
			n=n.substring(0,p);
		}

		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;
	}
	
	
	function dnFindForm(n) {
		var p,i,x;  if(!d) d=document; 
		if((p=n.indexOf("?"))>0 && (window.parent.frames.length || window.frames.length)) {
			//d=window.parent.frames[n.substring(p+1)].document; 
			//if(!d){d=window.frames[n.substring(p+1)].document;}
			//typeof(
			d=window.frames[n.substring(p+1)].document;
			n=n.substring(0,p);
		}
		x=d.forms[n];
		return x;
	}
	
	
	function dnReloadTreeview(frame) {
		d=parent.frames['frmContentLeft'].document;
		d.location.reload(true);
	}

	/*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=window.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);
		
		//x = window.frames['frameRelatetoGroupView'].document.forms['formRelatetoGroupView'];
		return x;
	}*/
	
	
	// ***********************************************************************************************
	// DbNet Funktionen
	
	// Suche
	function dnExecuteSearch(side, field) {
		var param="",f="";d=document;
		side = (side) ? side : window.location.pathname;
		
		// Frame
		if((p=side.indexOf("?"))>0&&(parent.frames.length||document.frames.length)) {
			d=parent.frames[side.substring(p+1)]; 
			if(!d){ d=self.frames[side.substring(p+1)]; }
			side = side.substring(0,p); d.document;
		}
		
		f = field.split(',');
		for(i=0;i<f.length;i++) {
			var o=MM_findObj(f[i]);
			if (o.type=="checkbox") {x = (o.checked) ? "1" : "0";} else {x = o.value;}
			if (o.type=="select-multiple") {  }
			z = (i<f.length-1) ? "&" : "";
			param += f[i]+"="+x+z;
		}
	
		if (side) {
			d.location.replace(side+"?"+param);
		} else {
			alert('Sie haben keine Auswahl getroffen.');
		}
	}
	
	function dnHelp(side) {
		var param="",f="";  d=document;
		
		if (side) { side=side+'?frmHelp'; }
		
		// Frame
		if((p=side.indexOf("?"))>0&&(parent.frames.length||document.frames.length)) {
			d=parent.frames[side.substring(p+1)]; 
			if(!d){d=document.frames[side.substring(p+1)];}
			side=side.substring(0,p);//d.document;
		}
		
		if (side) {
			d.location.replace('help/'+side);
		} else {
			d.location.replace('help/help_empty.php');
		}
	}
	
	function dnOpenDialog(name, side, width, height) {
		cd=window.open(side,name,"width="+width+",height="+height+",top=100,left=100,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=no,location=no");
		if (cd != null) {
			if (cd.opener == null) {
				cd.opener = self;
			}
		}
	}


	function gotoURL(url, target) {
		if (target=='blank') {
			newWindow = window.open(url, "previewFile", "");
			//width=320,height=250
		} else if (target) {
			parent.frames[target].document.location.href = url;
		} else {
			document.location.href = url;
		}
	}

	 
 