// Globale Variable:
 var root = "http:\/\/10.21.0.155\/web/rks\/rasen-komplett-system.de";  // für localhost
 var root = "";   // für online

 function fenster(fenstername, datei, pfad, w, h, scroller) {
	 if (typeof(gross)!="undefined") gross.close();
  if (scroller!=0) scroller = "yes"; else scroller ="no";
  if (pfad!="") {
   if (pfad.substring(0,4) == "http")   pfad+= "\/";
   else   pfad = root+"\/"+pfad+"\/";
   gross = window.open( pfad+datei, fenstername, "dependent=no, width=" +w+ ", height=" +h+ ", menubar=yes, resizable=yes, scrollbars=" +scroller+ ", status=yes, toolbar=no, location=no");
  }
 }

 function mailing(name, domain, klasse) {
	 adresse = name + String.fromCharCode(64) + domain;
  if (typeof(klasse!="undefined")) klasse = "class=\"" + klasse + "\" "; else klasse="";
	 document.write("<a " + klasse + "href=\"mailto:" + adresse + "\">" + adresse + "<\/a>");
	}

	function showDiv(lay,mode) {
		var was;
		if (mode==0)  was = "hidden";
		if (mode==1)  was = "visible";
		document.getElementById(lay).style.visibility = was;
	}
	
	function showDivs(stripped_divs,modus) {
		div = stripped_divs.split(",");
		var was;
		if (modus==0)  was = "hidden";
		if (modus==1)  was = "visible";
		for (i=0;i<div.length;i++) {
			document.getElementById(div[i]).style.visibility = was;
		}
	}

function moveDiv(lay, xpos, ypos) {
 document.getElementById(lay).style.left += xpos;
 document.getElementById(lay).style.top  += ypos;
}

function inlineloadseite(pfad, seite, para) {
// alert (root+"\n"+pfad+"\n"+seite+"\n"+para)
	if (typeof(para)=="undefined" || para =="")
	 inline.location.href=root+"/"+pfad+"/"+seite;
	else
	 inline.location.href=root+"/"+pfad+"/"+seite+"?"+para;
}

function inlineloadbild(pfad,bild) {
 inline.location.href=root+"/"+pfad+"/"+bild;
}
