<!--
var TBE_EDITOR_isChanged = 1;
function jumpToUrl(URL,formEl)	{	//
	if (!TBE_EDITOR_isFormChanged())	{
		document.location = URL;
	} else if (formEl && formEl.type=="checkbox") {
		formEl.checked = formEl.checked ? 0 : 1;
	}
}

function changeLocation(URL, param)	{
	if(param) {
		if(param.substring(0,1) != "?") param = "?" + param;
	}
	document.parentWindow.location.href = URL + param;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
   if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
     document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
   else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
 }
MM_reloadPage(true);

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		if (!preloadFlag) {
			b_1_over = newImage("images/b_1-over.gif");
			b_1_click = newImage("images/b_1-click.gif");
			b_2_over = newImage("images/b_2-over.gif");
			b_2_click = newImage("images/b_2-click.gif");
			b_3_over = newImage("images/b_3-over.gif");
			b_3_b_2_click = newImage("images/b_3-b_2_click.gif");
			b_3_click = newImage("images/b_3-click.gif");
			b_4_over = newImage("images/b_4-over.gif");
			b_4_b_2_click = newImage("images/b_4-b_2_click.gif");
			b_4_click = newImage("images/b_4-click.gif");
			b_5_over = newImage("images/b_5-over.gif");
			b_5_click = newImage("images/b_5-click.gif");
			b_6_over = newImage("images/b_6-over.gif");
			b_6_b_2_click = newImage("images/b_6-b_2_click.gif");
			b_6_click = newImage("images/b_6-click.gif");
			b_7_over = newImage("images/b_7-over.gif");
			b_7_b_2_click = newImage("images/b_7-b_2_click.gif");
			b_7_click = newImage("images/b_7-click.gif");
			b_8_over = newImage("images/b_8-over.gif");
			b_8_click = newImage("images/b_8-click.gif");
			preloadFlag = true;
		}
	}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.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 && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

var windowOpenCloseReference;
function OpenCloseExtWin(targetwin, width, height, resizable, toolbar, menubar, tarlocation, status, scrollbars) 
{ 
		if(!targetwin) targetwin='SiteExtWin';
		if(!width) width=800;
		if(!height) height=600;
		if(!resizable) resizable='yes';
		if(!toolbar) toolbar='yes';
		if(!menubar) menubar='yes';
		if(!tarlocation) tarlocation='yes';
		if(!status) status='yes';
		if(!scrollbars) scrollbars='yes';
		
		
		if(windowOpenCloseReference) windowOpenCloseReference.close();
		windowOpenCloseReference = window.open("", targetwin ,"width=" + width + ",height=" + height + ",resizable=" + resizable + ",toolbar=" + toolbar + ",menubar=" + menubar + ",location=" + tarlocation + ",status=" + status + ",scrollbars=" + scrollbars);
		windowOpenCloseReference.focus();
}

//* window.location.href setzen auf php-datei, parametrisiert, OPTIONS-Feld-Auswertung
//*  Aufruf: optionNav(scriptpath [,paramString[,optParamName,optList[,optTargetNew]]])
//*          (bei Auslassen eines Parameters '' oder null übergeben!
//*  scriptpath: Pfad php-datei (path/datei.php)
//*  paramString: ?param='value'[&param='value'] 
//*  optParamName: parametername
//*  optList: SELECT.name (SELECT-name eines FORM mit OPTIONS zur Auswahl), SELECTED wird bei optParamName als wert eingesetzt
//*  optTargetNew: Neues Fenster (name)
function optionNav(scriptpath) {
	var args = optionNav.arguments;
	if(args.length > 1) var paramString = args[1];
	if(args.length > 2) var optParamName = args[2];
	if(args.length > 3) var optList = args[3];
	if(args.length > 4) var optTargetNew = args[4];
	if(optList) var opt = (optList.options[optList.selectedIndex].value);
	var pars = "";
	if(paramString) {
		if(paramString.substring(0,1) != "?") pars = "?";
	} else if(optParamName) {
		if(optParamName.substring(0,1) != "?") pars = "?";
	}
	if (paramString) pars = pars + paramString;
	if (optParamName && optList) pars = pars + "&" + optParamName + "='" + opt + "'";
	var url = scriptpath + pars;
	if (optTargetNew) win = window.open(url,optTargetNew);
	else if (scriptpath) document.parentWindow.location.href = url;
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
   if (selObj.options[selObj.selectedIndex].value!='no') {
      eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
      if (restore) selObj.selectedIndex=0;
   }
}

function WriteLastUpdate() {
	// last modified script by Bernhard Friedrich; should work in all browsers
	var a;
	a = new Date(document.lastModified);
	lm_year=a.getYear();
	if (lm_year<1000){ 				//just in case date is delivered with 4 digits
		if (lm_year<70){
		lm_year=2000+lm_year;
		}
		else lm_year=1900+lm_year;
	}								//end workaround
	lm_month=a.getMonth()+1;
	if (lm_month<10){
		lm_month='0'+lm_month;
	}
	lm_day=a.getDate();
	if (lm_day<10){
		lm_day='0'+lm_day;
	}
	document.write("Update: " + lm_day+'.'+lm_month+'.'+lm_year);
}

function showPicture(picPath, picName){
	if(picPath.substring(picPath.length-1) != "/") picPath = picPath + "/";
	globPicPath = picPath+picName;
	if(picName) {
		NewWindow=window.open(globPicPath,"ZOOM","width=200,height=200,resizable=yes,scrollbars=no");
	}
}

function showFile(fileURI, fileName){
	if(fileURI.substring(fileURI.length-1,1) != "/") fileURI = fileURI + "/";
	filePath = fileURI+fileName;
	if(fileName) {
		NewWindow=window.open(filePath,"ZOOM","resizable=yes,scrollbars=no");
	}
}

function showURL(fileName){
	if(fileName) {
		if(fileName.substring(0,4) != "http") fileName = "http://" + fileName;
		NewWindow=window.open(fileName,"ZOOM","resizable=yes,scrollbars=auto,toolbar=yes,menubar=yes");
	}
}

function SetCookie(Bezeichner, Wert, Verfall) {
 var jetzt = new Date();
 var Auszeit = new Date(jetzt.getTime() + Verfall);
 document.cookie = Bezeichner+"="+Wert+"; expires="+Auszeit.toGMTString()+";";
}

function noSpamMail(titel,pre,post,domain,subject,cssclass,cssfile) {
	var wwidth = 300;
	var twidth = (titel.length * 8); // auf printwidth des textes ändern (pixelbreite)!
	if (twidth > wwidth) wwidth = twidth;
	var wheight = 140;
	var wleft = (screen.width / 2) - (wwidth / 2);
	var wtop = (screen.height / 2) - (wheight / 2);
	NewWindow=window.open('NoSpam','NoSpamMail','width=' + wwidth + ', height=' + wheight + ', menubar=no, toolbar=no, location=no, status=no, resizable=no, dependent=yes, left=' + wleft + ', top=' + wtop);
	NewWindow.document.write('<html>\n<head>\n');
	if (cssfile) NewWindow.document.write('<link rel="stylesheet" type="text/css" href="' + cssfile + '">\n');
	NewWindow.document.write('</head>\n<body bgcolor="#FFCC33" text="#333333">\n');
	NewWindow.document.write('<br><br>\n');
	if (titel) NewWindow.document.write('&nbsp;&nbsp;' + titel + '<br><br>\n');
	if (subject) subject = '?subject=' + subject; else subject = '';
	NewWindow.document.write('&nbsp;&nbsp;<a ');
	if (cssclass) NewWindow.document.write('class="' + cssclass + '" ');
	NewWindow.document.write('href="mailto:' + pre + '&#64;' + post + '.' + domain + subject + '">');
	NewWindow.document.write(pre + '&#64;' + post + '.' + domain);
	NewWindow.document.write('</a>\n');
	NewWindow.document.write('</body>\n</html>\n');
	NewWindow.document.close();
	NewWindow.focus();
}

//->



