


















	


	
	  
	    
	  
	


	


	

	
	
			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_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; 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 MM_showHideLayers() { //v6.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_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


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 MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function MM_CheckFlashVersion(reqVerStr,msg){
	with(navigator){
		var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
		var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
		if (!isIE || !isWin){  
			var flashVer = -1;
		if (plugins && plugins.length > 0){
			var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
			desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
			if (desc == "") flashVer = -1;
			else{
				var descArr = desc.split(" ");
				var tempArrMajor = descArr[2].split(".");
				var verMajor = tempArrMajor[0];
				var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
				var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
				flashVer =  parseFloat(verMajor + "." + verMinor);
			}
		}
		// WebTV has Flash Player 4 or lower -- too low for video
		else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

		var verArr = reqVerStr.split(",");
		var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
		if (flashVer < reqVer){
			if (confirm(msg))
				window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
			}
		}
	} 
}


function AVM_showProduktlayer(m) { //v1.0 :)
	i=1;
	while ( i <= 10 ) {
		eval ("MM_showHideLayers('produkt"+i+"','','hide');");
		i++;
	}
	if (m > 0) {
		eval ("MM_showHideLayers('produkt"+m+"','','show');");
	}
}




function radioWertAuslesen(rObj)
 {
   // für select-felder
   for (var i=0; i<rObj.length; i++) if (rObj[i].selected) return rObj[i].value;
   // für radio-buttons
   for (var i=0; i<rObj.length; i++) if (rObj[i].checked) return rObj[i].value;
   return false;
 }


function einblenden(id, show) {
	if(!document.getElementById) return;
	var obj = document.getElementById(id);
	if(!obj || !obj.style) return;
	if (show == 1) {
		obj.style.display = 'block';
	}
	if (show == 0) {
		obj.style.display = 'none';
	}
}

function parent_einblenden(id, show) {
	if(!parent.document.getElementById) return;
	var obj = parent.document.getElementById(id);
	if(!obj || !obj.style) return;
	if (show == 1) {
		obj.style.display = 'block';
	}
	if (show == 0) {
		obj.style.display = 'none';
	}
}

function aktive_divs_einblenden(id, variable, wert)
 {
   // alert(id+variable+wert);
   eval ("var aktiverWert = radioWertAuslesen(document.kodo_form."+variable+");");
   // alert(aktiverWert);
   if(!document.getElementById) return;
   var obj = document.getElementById(id);
   if(!obj || !obj.style) return;
   if (aktiverWert == wert) {
    obj.style.display = 'block';
   }
 }

function aktive_divs_einblenden_checkbox(id, checkbox)
{
// alert(id+variable+wert);
eval ("var aktiverWert = document.kodo_form."+checkbox+".checked");
// alert(aktiverWert);
if(!document.getElementById) return;
var obj = document.getElementById(id);
if(!obj || !obj.style) return;
// alert(obj.style.display);
if (aktiverWert == true) {
obj.style.display = 'block';
} else {
obj.style.display = 'none';
}
}

function einblenden_alternate(id)
{
if(!document.getElementById) return;
var obj = document.getElementById(id);
if(!obj || !obj.style) return;
if (obj.style.display == 'none') {
obj.style.display = 'block';
return;
}
if (obj.style.display == 'block') {
obj.style.display = 'none';
return;
}
}

function einblenden_select(id, selectname, wert, show)
 {
   eval ("var selwert = document.kodo_form."+selectname+".value;");
   if(!document.getElementById) return;
   var obj = document.getElementById(id);
   if(!obj || !obj.style) return;
   if (selwert == wert) {
    obj.style.display = 'block';
   }
   if (selwert != wert) {
    obj.style.display = 'none';
   }
 }

function selectWert(rObj)
 {
   // alert(rObj);
   // eval("alert(document.kodo_form."+rObj+".length);");
   eval("for (var i=0; i<document.kodo_form."+rObj+".length; i++) {document.kodo_form."+rObj+"[i].selected = false;}");
 }


function radioWert(rObj)
 {
   // alert(rObj);
   // eval("alert(document.kodo_form."+rObj+".length);");
   eval("for (var i=0; i<document.kodo_form."+rObj+".length; i++) document.kodo_form."+rObj+"[i].checked = false;");
 }

function unset()
 {
    a = unset.arguments;
    for (var i = 0; i<a.length; i++) {
     var aktuellerWert = unset.arguments[i];
	  eval("if (document.kodo_form."+aktuellerWert+".type == undefined) { var elementtyp = document.kodo_form."+aktuellerWert+"[1].type; } else { var elementtyp = document.kodo_form."+aktuellerWert+".type; }");
	  // alert(elementtyp);
	  if (elementtyp == 'text') {
        eval ("document.kodo_form."+unset.arguments[i]+".value = '';")
      }
	  if (elementtyp == 'radio') {
        // alert(unset.arguments[i]);
		radioWert(unset.arguments[i]);
      }
	  if (elementtyp == 'checkbox') {
        // alert(unset.arguments[i]);
    	radioWert(unset.arguments[i]);
      }
	  if (elementtyp == 'select-one') {
        // alert(unset.arguments[i]);
      selectWert(unset.arguments[i]);
      }
    }
 }


function neuesFenster(w,h) {
	if (w == undefined) {
		var w = "820";
	}
	if (h == undefined) {
		var h = "720";
	}
	eval ("neu=window.open('','newWindow','location=yes,status=yes,menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,width="+w+",height="+h+"');");
	neu.focus();
}

function neuesFensterOhne(w,h) {
	if (w == undefined) {
		var w = "820";
	}
	if (h == undefined) {
		var h = "650";
	}
	eval ("neu=window.open('','newWindow','location=no,status=no,menubar=no,toolbar=no,scrollbars=no,resizable=no,width="+w+",height="+h+"');");
	neu.focus();
}

function popupURL(destination,w,h) {
	eval ("neu=window.open(destination,'newWindow','location=no,status=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h+"');");
	neu.focus();
}


function popup(a){ if(navigator.appName.substring(0,8)=="Netscape"){ mini=window.open(a,'Pop','toolbar=0,location=0,directories=0,status=0,menubar=0,menubar=no, scrollbars=no,scrollbars=0,resizable=no,width=600,height=477,top=20,left=20'); mini.focus(); } else{ mini=window.open(a,'Pop','toolbar=0,location=0,directories=0,status=0,menubar=0,menubar=no, scrollbars=no,scrollbars=0,resizable=no,width=600,height=477,top=20,left=20'); mini.focus(); } }


function AVM_showMenu(m) { //v1.0 :)
  i=1;
  while ( i <= 30 ) {
   eval ("MM_showHideLayers('lm_hover_"+i+"','','hide');");
   eval ("MM_showHideLayers('lm_menu_"+i+"','','hide');");
   i++;
  }
  if (m > 0) {
   eval ("MM_showHideLayers('lm_hover_"+m+"','','show');");
   eval ("MM_showHideLayers('lm_menu_"+m+"','','show');");
  }
}

function restCounter( fieldid, maxlimit ) {
	field = MM_findObj(fieldid);
	restfield = MM_findObj(fieldid+'_rest');
	warningfield = MM_findObj(fieldid+'_warning');
	if ( field.value.length > maxlimit ) {
		field.value = field.value.substring( 0, maxlimit+1);
		warningfield.style.display= "block";
		restfield.value = "0";
	} else {
		restfield.value = maxlimit-field.value.length;
		warningfield.style.display  = "none";
	}
}


function embedSwf(url,sizex,sizey) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+sizex+'" height="'+sizey+'">');
	document.write('<param name="movie" value="'+url+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed s'+'rc="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+sizex+'" height="'+sizey+'"></embed>');
	document.write('</object>');
}

	


	




