
  

 
function tunichts(vv) {
     var obj = getObject(vv);
	 hide(obj);
  }

 
/* Emailverschlüsselungs-Funktionen */
function hang(alchemy,year,shrub,projekt,modus,lang) {
  var alchemy = '198 384 344 203 298 198 203 410 72 309 147 309 487 262 344 487 115 198 298 147 309 344 180 309 171 278 302 384 390';  
  
  alchemy += ' ';  
  var atmosphere = alchemy.length;
  var forest = 0;
  var scientist = '';
  for(var club = 0; club < atmosphere; club++) {
     forest = 0;
     while(alchemy.charCodeAt(club) != 32) {
       forest = forest * 10;
       forest = forest + alchemy.charCodeAt(club)-48;
       club++;
     }
     scientist += String.fromCharCode(shoe(forest,year,shrub));
   }
   //scientist += '?subject=        von touristeninformation-berlin.de';
   parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+scientist;
}


function have(foodold,component,glass) {
 var food = '198 384 344 203 298 198 203 410 72 309 147 309 487 262 344 487 115 198 298 147 309 344 180 309 171 278 302 384 390  ';  
 var cost = food.length;
 var culture = 0;
 for(var discovery = 0; discovery < cost; discovery++) {
   culture = 0;
   while(food.charCodeAt(discovery) != 32) {
     culture = culture * 10;
     culture = culture + food.charCodeAt(discovery)-48;
     discovery++;
   }
   //document.write('&');
   //document.write('#');
   //document.write(shoe(culture,component,glass));
   document.write(String.fromCharCode(shoe(culture,component,glass)));
  }
}

function shoe(speech,extraterrestrial,flore) {
  if (flore % 2 == 0) {
    icon = 1;
    for(var pencil = 1; pencil <= flore/2; pencil++) {
    lip = (speech*speech) % extraterrestrial;
    icon = (lip*icon) % extraterrestrial;
  }
  } else {
     icon = speech;
     for(var meter = 1; meter <= flore/2; meter++) {
     lip = (speech*speech) % extraterrestrial;
     icon = (lip*icon) % extraterrestrial;
  }
}
return icon;
}   
   

// Funktionen, die neues Fenster öffnen 
function NeuesFenster(url, width, height) {
	var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=no,status=no' );
    Win.moveTo(0,0);
}

function NeuFenster2(url, width, height) {
	var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=no,status=no' );
}

function NeuFenster(url, width, height) {
	var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=auto,menubar=no,status=no' );
}


// Weiterleitungsfunktionen
function schickvermieterupdate() {
   setTimeout("schickupdate();", 1500);
}

function schickupdate() {
   document.afterformula.submit();
}

function zeit() {
    setTimeout("change2();", 2000);
}

function change(url) {
     parent.frames['main'].location.href = url;     
}

function zeit2(url) {
    xxx = url;
    setTimeout("change(xxx);", 600);
}

function zeit3(url) {
    xxx = url;
    setTimeout("change(xxx);", 2000);
}

/* Statusleistenausgabe */
function Info(Ausgabe) {
    window.status = Ausgabe;
}
	
	
function Pruef(feld,max) {
      var anz = feld.value.length;
      var frei;
      if (anz > max) {
        feld.value = feld.value.substring(0,max);
        frei = 0;
      } else {
        frei = max-anz;
      }
      if (document.all) document.all["i_"+feld.name].value=frei;
	  else feld.form["i_"+feld.name].value=frei;
}


function Pruefadmin(feld,max) {
      var anz = feld.value.length;
      var frei;
      if (anz > max) {
        feld.value = feld.value.substring(0,max);
        frei = 0;
      } 
	  else {
        frei = max-anz;
      }
}


function bild(bildname) {
      var bild = bildname;     
		 if(window.document.images[bild].width < window.document.images[bild].height) {
            window.document.images[bild].width=210;
         }
         else {
            window.document.images[bild].width=320;
         }
 }


