//Oeffne Popup
function openUrl (url) {
	var width=880;
	var height=440;
	fenster = window.open(url, "fenster1", "status=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height+",left="+(screen.width-width)/2+",top="+(screen.height-height)/2);
	if (fenster!=null)
		fenster.focus();
	return fenster;}

//Tausche bild aus
function SwapImg (img){
	document.images['bild'].src = img;
}

//Entschlluessele string
function decrypt(str){
	var src=new String(str) ;
    var dst=new String('') ;
    var len=src.length ;
    var b ;
    var t=new String('') ;
    if(len > 0)
    {
     for(var ctr=0; ctr<len ; ctr++)
     {
       b=src.charCodeAt(ctr)
      if( ( (b>64) && (b<78) ) || ( (b>96) && (b<110) ) )
      { b=b+13 }
      else
      { if( ( (b>77) && (b<91) ) || ( (b>109) && (b<123) ) )
       { b=b-13 }
      }
      t=String.fromCharCode(b) ;
      dst=dst.concat(t) ;
     }
     return dst;
    }
}
//Ueberprueft ob das Parentfenster eines Popups existiert, wenn nicht erstellt dieses
function checkParent(parenturl){
	if (opener==null){
//		if (openUrl(window.location.href))
		openUrl(window.location.href);
			this.location.href=parenturl;
	}
}

