//alert('test');
var communicator;
var verrer;
var ruckgabeglobchecker;


            try {
                verrer=verzeichnis;
            } catch (e) {verrer='';}

function gehehoch()
{self.scrollTo(0, 0);}


var globalmarkedpic;
var globalmarkerdiv;
globalmarkedpic="nothing";


function showmarkedpics(bildname,numid,piconly,galonly)
{
var divid=document.getElementById("bigone"+numid);
var dividcheck;
globalmarkerdiv="bigone"+numid;

var i=0;
while (i<500)
{
dividcheck=document.getElementById("bigone"+i);
if (dividcheck!=divid)
{
if (dividcheck)
{
versteckelinks11();
dividcheck.style.visibility="hidden";
dividcheck.innerHTML='';
}
}
i=i+1;
}

if (divid)
{
if (divid.style.visibility=="hidden")
{
/*
document.getElementById("bigonepic"+numid).src='../user/pictureshow.php?picture='+bildname;
//document.getElementById("bigonepic"+numid).innerHTML='<img src="../user/pictureshow.php?picture='+bildname+'">';
*/

divid.style.visibility="visible";
ajaxmarkedpicture('../user/getmarkedpic.php?path='+bildname+'&gal='+ galonly +'&pic='+ piconly + '&glob=' + numid);
//divid.style.visibility="visible";

}
else
{divid.style.visibility="hidden";}
}
}



function zeigelinks11() {
if (document.getElementById('marks[0]'))
{
for (var i = 0; i <50; i++) {
 if (document.getElementById('marks['+ i +']'))
 {document.getElementById('marks['+ i +']').style.visibility="visible";}
}
}
}
function versteckelinks11() {
if (document.getElementById('marks[0]'))
{
for (var i = 0; i <50; i++) {
 if (document.getElementById('marks['+ i +']'))
 {document.getElementById('marks['+ i +']').style.visibility="hidden";}
}
}
}


    function ajaxmarkedpicture(url) {
if (url!=globalmarkedpic)
{
globalmarkedpic=url;
var dividmark=document.getElementById(globalmarkerdiv);
if (dividmark)
{
        http_requestpicmarked = false;
        if (window.XMLHttpRequest) { // Mozilla, Safari,...
            http_requestpicmarked = new XMLHttpRequest();
            if (http_requestpicmarked.overrideMimeType) {
                http_requestpicmarked.overrideMimeType('text/xml');
                // zu dieser Zeile siehe weiter unten
            }
        } else if (window.ActiveXObject) { // IE
            try {
                http_requestpicmarked = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    http_requestpicmarked = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {}
            }
        }

        if (!http_requestpicmarked) {
           //alert('Ende :( Kann keine XMLHTTP-Instanz erzeugen');
            return false;
        }
        http_requestpicmarked.onreadystatechange = alertInhaltpicmarked;
        http_requestpicmarked.open('GET', url, true);
        http_requestpicmarked.send(null);
    }
}
}

function alertInhaltpicmarked() {

        if (http_requestpicmarked.readyState == 4) {
            if (http_requestpicmarked.status == 200) {
                document.getElementById(globalmarkerdiv).innerHTML = http_requestpicmarked.responseText;

fadeIn11(globalmarkerdiv,0);
            }
        }
    }
////////////////////////////////////////////////////////////Pictures ansehen ENDE



////////////////////////////////////////////////////////////////////////////////////////////Fadings ANFANG
var speed=16; // Geschwindigkeit der Überblendung (1 = schoen weich und langsam - 30 = sehr schnell)
function setOpacity11(obj, opacity) {
 opacity = (opacity == 100)?99.999:opacity; // IE/Win
 obj.style.filter = "alpha(opacity:"+opacity+")"; // Safari<1.2, Konqueror
 obj.style.KHTMLOpacity = opacity/100;  // Older Mozilla and Firefox
 obj.style.MozOpacity = opacity/100; // Safari 1.2, newer Firefox and Mozilla, CSS3
 obj.style.opacity = opacity/100;
}
function fadeIn11(objId,opacity) 
{
    if (document.getElementById(objId)) 
    {
          obj = document.getElementById(objId);
          if (opacity < 100) 
        {
               opacity += speed*3;
            if (opacity>100) opacity=100;
               setOpacity11(obj, opacity);
               window.setTimeout("fadeIn11('"+objId+"',"+opacity+")", 70);
          }
     }
}
function fadeOut11(objId,opacity) 
{
 if (document.getElementById(objId)) 
 {
      obj = document.getElementById(objId);
      if (opacity > 0) 
    {
           opacity -= speed*3;
        if (opacity<0) opacity=0;
           setOpacity11(obj, opacity);
           window.setTimeout("fadeOut11('"+objId+"',"+opacity+")", 70);
      }
 }
}

function quickfade11(objId,opacity) 
{
    if (document.getElementById(objId)) 
    {
          obj = document.getElementById(objId);
          if (opacity < 100) 
        {
               opacity=100;
               setOpacity11(obj, opacity);
               //window.setTimeout("fadeIn11('"+objId+"',"+opacity+")", 70);
          }
     }
}

////////////////////////////////////////////////////////////////////////////////////////////Fadings ENDE

function newprofilbildreplace(s,r,w)
{
 return s.split(r).join(w);
}



function showbigusers(bildname,numid)
{
var divid=document.getElementById("bigone"+numid);
var dividcheck;

var i=0;
while (i<500)
{
dividcheck=document.getElementById("bigone"+i);
if (dividcheck!=divid)
{
if (dividcheck)
{dividcheck.style.visibility="hidden";}
}
i=i+1;
}

if (divid)
{
if (divid.style.visibility=="hidden")
{

document.getElementById("bigonepic"+numid).src='../user/pictureshow.php?picture='+bildname;
//document.getElementById("bigonepic"+numid).innerHTML='<img src="../user/pictureshow.php?picture='+bildname+'">';
divid.style.visibility="visible";}
else
{divid.style.visibility="hidden";}
}



}




function avatarinitstartusergalupload(ruckgabe,mwidth)
{
var  zexistform11 = document.getElementById('fileUploadStatus');
var  zexistform12 = document.getElementById('uploadfeld');
var  zexistform14 = document.getElementById('uploadfeld2');
var texter;
texter='';

if (ruckgabe==80)
{texter='<font color=red>Du bist kein Realuser und kannst keine Votingbilder hochladen!</font>';}
if (ruckgabe==96)
{texter='<font color=red>Deine Bilddatei muss mindestens '+ mwidth +' Pixel breit sein!</font>';}
if (ruckgabe==95)
{texter='<font color=red>Bitte wähle eine Bilddatei aus!</font>';}
if (ruckgabe==90)
{texter='<font color=red>Du musst den Bestimmungen zustimmen!</font>';}
if (ruckgabe==97)
{texter='<font color=red>Das Bild würde mehr Speicher belegen, als dir noch zur Verfügung steht.<br>Abbruch!</font>';}
if (ruckgabe==100)
{texter='<font color=green>Dein Bild wurde erfolgreich in deine Galerie hochgeladen!<br></font><font color=red><b>Dieses wird noch von Administratoren bzw. Moderatoren geprüft und freigegeben.</font>';}
if (ruckgabe==101)
{texter='<font color=red>Bitte nur Bilder im JPG Format hochladen!</font>';}
if (ruckgabe==150)
{texter='<font color=red>Upload fehlgeschlagen, Datei konnte nicht gelesen werden!</font>';}


if (zexistform11) 
{ 
zexistform11.innerHTML=texter;
document.uploadform.formUploadButton.disabled = false; 

if (ruckgabe==100 || ruckgabe==150)
{
if (zexistform14) 
{zexistform14.innerHTML='<input type="file" CLASS="eingabefeld" name="uploadSource" id="uploadSource">';}

}

}
}


function avatarinitstartwfreigabe()
{
var  zexistform11 = document.getElementById('fileUploadStatus');
var  zexistform12 = document.getElementById('uploadfeld');
if (zexistform11) 
{ zexistform11.innerHTML='<font color="green"><b>Es wartet schon ein Profilbild von dir auf Freigabe!</b></font>';
document.uploadform.formUploadButton.disabled = false; 
if (zexistform12) 
{zexistform12.innerHTML='';}
}
}

function avatarinitstart()
{
var  zexistform11 = document.getElementById('fileUploadStatus');
var  zexistform12 = document.getElementById('uploadfeld');
if (zexistform11) 
{ zexistform11.innerHTML='<font color="green"><b>Upload erfolgreich!<br>Bild wird nun durch Administratoren geprüft!</b></font>';
document.uploadform.formUploadButton.disabled = false; 
if (zexistform12) 
{zexistform12.innerHTML='';}

}
}


function avatarinitstartwrongfileformat()
{
var  zexistform11 = document.getElementById('fileUploadStatus');
if (zexistform11) 
{ zexistform11.innerHTML='<font color="red"><b>kein gültiges Bild!</b></font>';
document.uploadform.formUploadButton.disabled = false; 
}
}


function checkUpload(zusatz,zahler) {
var  zexistform11 = document.getElementById('fileUploadStatus');
if (document.uploadform.formUploadButton.disabled == true)
{
              if (zexistform11) 
               { zexistform11.innerHTML='<b>Upload_läuft'+zusatz+'</b>';}
zusatz=zusatz+'.';
zahler=zahler+1;
if (zahler>15)
{zahler=1;
zusatz='.';}
setTimeout("checkUpload('"+ zusatz +"',"+ zahler +")",500);

}
}

function avataruploadevent()
{
if (overUploadButton)
{ if (document.getElementById('uploadSource').value) 
	{ 
		document.uploadform.formUploadButton.disabled = true; 
		this.target = 'uploadTarget'; 
		checkUpload('.',1); 
		return true; 
	}
	{ return false; }
}
{
	this.target = ''; 
	return true; 
}
}



////////////////////////////////////////////////////////////////////////////////////////////Fadings ANFANG
var speed=7; // Geschwindigkeit der Überblendung (1 = schoen weich und langsam - 30 = sehr schnell)
function setOpacitynew(obj, opacity) {
 opacity = (opacity == 100)?99.999:opacity; // IE/Win
 obj.style.filter = "alpha(opacity:"+opacity+")"; // Safari<1.2, Konqueror
 obj.style.KHTMLOpacity = opacity/100;  // Older Mozilla and Firefox
 obj.style.MozOpacity = opacity/100; // Safari 1.2, newer Firefox and Mozilla, CSS3
 obj.style.opacity = opacity/100;
}
function fadeInnew(objId,opacity) 
{
    if (document.getElementById(objId)) 
    {
          obj = document.getElementById(objId);
          if (opacity < 100) 
        {
               opacity += speed*3;
            if (opacity>100) opacity=100;
               setOpacitynew(obj, opacity);
               window.setTimeout("fadeInnew('"+objId+"',"+opacity+")", 70);
          }
     }
}
function fadeOutnew(objId,opacity) 
{
 if (document.getElementById(objId)) 
 {
      obj = document.getElementById(objId);
      if (opacity > 0) 
    {
           opacity -= speed*3;
        if (opacity<0) opacity=0;
           setOpacitynew(obj, opacity);
           window.setTimeout("fadeOutnew('"+objId+"',"+opacity+")", 70);
      }
 }
}

function quickfadenew(objId,opacity) 
{
    if (document.getElementById(objId)) 
    {
          obj = document.getElementById(objId);
          if (opacity < 100) 
        {
               opacity=100;
               setOpacitynew(obj, opacity);
               //window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 70);
          }
     }
}

////////////////////////////////////////////////////////////////////////////////////////////Fadings ENDE





function laengestr(x,maxll)
{
if (document.getElementById(x))
{
var z='lenausgabe'+x;
var y=document.getElementById(x).value.length;
var freell=maxll-y;

if (freell<200)
{
if (freell>=0 )
{document.getElementById(z).innerHTML='Freie Zeichen: <b>' + freell + '</b>';}
else
{document.getElementById(z).innerHTML='Freie Zeichen: <b>' + 0 + '</b>';}
}
else
{
document.getElementById(z).innerHTML='';
}
if (y>maxll)
{document.getElementById('alertausgabe'+x).innerHTML='<b>es sind maximal '+ maxll +' Zeichen erlaubt!</b><br>';
var texter=document.getElementById(x).value;
document.getElementById(x).value=texter.substr(0, maxll);
}
else
{document.getElementById('alertausgabe'+x).innerHTML='';
}
}
}


var publicx;
var publicy;

var publicycom;
var aktupage2;

function setCordse2(e)  
{ 
    publicx = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX; 
    publicy = (document.all) ? window.event.y + document.body.scrollTop : e.pageY; 

    publicycom = (document.all) ? window.event.y + document.body.scrollTop : e.pageY; 
    publicycom=publicycom-216;
} 
document.onmousemove = setCordse2; 





//////////////////////////////////////////Quickprofil
function showquickprofil(userid,profilbildname)
{
var publicx2;
var publicy2;
publicx2=publicx+20;
publicy2=publicy;
if (communicator==1)
{ var completename='divquickprofil';
var completenamebild='profilbildplatzhalter';}
else
{ var completename='divquickprofil'+userid;
var completenamebild='profilbildplatzhalter'+userid;}

if (document.getElementById(completename))
{
if (document.getElementById(completenamebild))
{
if (communicator==1)
{ document.getElementById(completenamebild).innerHTML='<img src="'+ profilbildname +'" width="70">';}
else
{ document.getElementById(completenamebild).innerHTML='<img src="'+ profilbildname +'" width="80">';}


}

if (communicator!=1)
{
document.getElementById(completename).style.left=publicx2;
document.getElementById(completename).style.top=publicy2;
}
document.getElementById(completename).style.visibility="visible";
fadeInnew(completename,0);
}
}

function hidequickprofil(userid)
{
var publicx2;
var publicy2;
publicx2=publicx;
publicy2=publicy;
if (communicator==1)
{ var completename='divquickprofil';}
else
{ var completename='divquickprofil'+userid;}
if (document.getElementById(completename))
{
fadeOutnew(completename,0);
if (communicator!=1)
{
document.getElementById(completename).style.left=publicx2;
document.getElementById(completename).style.top=publicy2;
}
document.getElementById(completename).style.visibility="hidden";
}
}
//////////////////////////////////////////Quickprofilende





/////////////////////////////////////////// Hier kommt AJAX Aufruf Profil
var http_requestprofil = false;
function macheRequestprofil(url) {

if (aktupage2!=url)
{
aktupage2=url;
var publicx2;
var publicy2;
publicx2=publicx-32;
publicy2=publicy-32;
if (document.getElementById('sanduhr'))
{
document.getElementById('sanduhr').style.left=publicx2;
document.getElementById('sanduhr').style.top=publicy2;
document.getElementById('sanduhr').style.visibility="visible";
}
document.body.style.cursor = 'wait';
        http_requestprofil = false;
        if (window.XMLHttpRequest) { // Mozilla, Safari,...
            http_requestprofil = new XMLHttpRequest();
            if (http_requestprofil.overrideMimeType) {
                http_requestprofil.overrideMimeType('text/xml');
                // zu dieser Zeile siehe weiter unten
            }
        } else if (window.ActiveXObject) { // IE
            try {
                http_requestprofil = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    http_requestprofil = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {}
            }
        }
        if (!http_requestprofil) {
           //alert('Ende :( Kann keine XMLHTTP-Instanz erzeugen');
            return false;
        }
        http_requestprofil.onreadystatechange = alertInhaltprofil;
        http_requestprofil.open('POST', url, true);
        http_requestprofil.send(null);
}
    }

function alertInhaltprofil() {
        if (http_requestprofil.readyState == 4) {
            if (http_requestprofil.status == 200) {
                document.getElementById('ushowdiv').innerHTML = http_requestprofil.responseText;
if (document.getElementById('sanduhr'))
{document.getElementById('sanduhr').style.visibility="hidden";}
document.body.style.cursor = 'default';
            } else {
                //alert('Bei dem Request ist ein Problem aufgetreten.');
            }
        }

    }
/////////////////////////////////////////// Hier kommt AJAX Aufruf Profil ENDE
function closesearch()
{
if (document.getElementById('divsearchanzeige'))
{
document.getElementById('divsearchanzeige').innerHTML='';
}
}

function strstrcheck( haystack, needle, bool ) {
    var pos = 0;
    pos = haystack.indexOf( needle );
    if( pos == -1 ){
        return false;
    } else{
        if( bool ){
            return haystack.substr( 0, pos );
        } else{
            return haystack.slice( pos );
        }
    }
}
function insertTag(aTag) {
      var input = document.uanz.geschwaetz;
  var eTag ='';
  input.focus();
  /* für Internet Explorer */
  if(typeof document.selection != 'undefined') {
    /* Einfügen des Formatierungscodes */
    var range = document.selection.createRange();
    var insText = range.text;
    range.text = aTag + insText + eTag;
    /* Anpassen der Cursorposition */
    range = document.selection.createRange();
    if (insText.length == 0) {
      range.move('character', -eTag.length);
    } else {
      range.moveStart('character', aTag.length + insText.length + eTag.length);      
    }
    range.select();
  }
  /* für neuere auf Gecko basierende Browser */
  else if(typeof input.selectionStart != 'undefined')
  {
    /* Einfügen des Formatierungscodes */
    var start = input.selectionStart;
    var end = input.selectionEnd;
    var insText = input.value.substring(start, end);
    input.value = input.value.substr(0, start) + aTag + insText + eTag + input.value.substr(end);
    /* Anpassen der Cursorposition */
    var pos;
    if (insText.length == 0) {
      pos = start + aTag.length;
    } else {
      pos = start + aTag.length + insText.length + eTag.length;
    }
    input.selectionStart = pos;
    input.selectionEnd = pos;
  }
  /* für die übrigen Browser */
  else

  {
    /* Abfrage der Einfügeposition */
    var pos;
    var re = new RegExp('^[0-9]{0,3}$');
    while(!re.test(pos)) {
      pos = prompt("Einfügen an Position (0.." + input.value.length + "):", "0");
    }
    if(pos > input.value.length) {
      pos = input.value.length;
    }
    /* Einfügen des Formatierungscodes */
    var insText = prompt("Bitte geben Sie den zu formatierenden Text ein:");
    input.value = input.value.substr(0, pos) + aTag + insText + eTag + input.value.substr(pos);
  }
}


///////////////////////////////////////////////AJAX FOR ONLINEAKTIVITÄT
    var http_requestonline = false;
    var i=0;
    function macheRequestonline(url) {
if (document.getElementById('isonlineornot'))
{
        http_requestonline = false;

        if (window.XMLHttpRequest) { // Mozilla, Safari,...
            http_requestonline = new XMLHttpRequest();
            if (http_requestonline.overrideMimeType) {
                http_requestonline.overrideMimeType('text/xml');
                // zu dieser Zeile siehe weiter unten
            }
        } else if (window.ActiveXObject) { // IE
            try {
                http_requestonline = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    http_requestonline = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {}
            }
        }

        if (!http_requestonline) {
           //alert('Ende :( Kann keine XMLHTTP-Instanz erzeugen');
            return false;
        }
        http_requestonline.onreadystatechange = alertInhaltonline;
        http_requestonline.open('GET', url, true);
        http_requestonline.send(null);
    }
}
function alertInhaltonline() {

        if (http_requestonline.readyState == 4) {
            if (http_requestonline.status == 200) {
                document.getElementById('isonlineornot').innerHTML = http_requestonline.responseText;
            } else {
            }
        }

    }
///////////////////////////////////////////////AJAX FOR ONLINEAKTIVITÄT ENDE

function showbig(bildname)
{
var divid=document.getElementById("bigone");
if (divid)
{
if (divid.style.visibility=="hidden")
{
document.getElementById("bigonepic").src='../user/pictureshow.php?picture='+bildname;
divid.style.visibility="visible";}
else
{divid.style.visibility="hidden";}
}
}


var logopen;
logopen=0;
function showlogdetails()
{

if (document.getElementById("detaillogins2").style.height=="2px")
 {
document.getElementById("detaillogins2").style.postion="relative";
document.getElementById("detaillogins2").style.height= 50;
document.getElementById("detaillogins2").style.visibility= "visible";
logopen=1;}
 else
 {
document.getElementById("detaillogins2").style.postion="absolute";
document.getElementById("detaillogins2").style.height=2;
document.getElementById("detaillogins2").style.visibility= "hidden";
logopen=0;}
}


var logopen2;
logopen2=0;
function showlogdetailsvisitors()
{

if (document.getElementById("detailvisiters2").style.height=="2px")
 {
document.getElementById("detailvisiters2").style.postion="relative";
document.getElementById("detailvisiters2").style.height= 50;
document.getElementById("detailvisiters2").style.visibility= "visible";
logopen2=1;}
 else
 {
document.getElementById("detailvisiters2").style.postion="absolute";
document.getElementById("detailvisiters2").style.height=2;
document.getElementById("detailvisiters2").style.visibility= "hidden";
logopen2=0;}
}



function altereinschr(dest) {
if(document.ono.altereinsch.checked==false)
{
document.ono.jahr1.disabled=true;
document.ono.jahr2.disabled=true;
}
else
{
document.ono.jahr1.disabled=false;
document.ono.jahr2.disabled=false;
}
}
function zusatzfunction(dest) {
if(document.uanz.nutzungs.checked==false)
{
document.uanz.saveit.disabled=true;
document.uanz.zusatzausschalten.disabled=true;
document.uanz.ebtagbegin.disabled=true;
document.uanz.ebmonatbegin.disabled=true;
document.uanz.ebjahrbegin.disabled=true;
document.uanz.entrystunde.disabled=true;
document.uanz.entryminute.disabled=true;
}
else
{
document.uanz.saveit.disabled=false;
document.uanz.zusatzausschalten.disabled=false;
document.uanz.ebtagbegin.disabled=false;
document.uanz.ebmonatbegin.disabled=false;
document.uanz.ebjahrbegin.disabled=false;
document.uanz.entrystunde.disabled=false;
document.uanz.entryminute.disabled=false;
}
}
function votebuttenausblenden(f){
if (document.form.votebutton)
{document.form.votebutton.style.visibility="hidden";}
if (document.getElementById("hinweisfirefox"))
{document.getElementById("hinweisfirefox").innerHTML="";}
}
function suche(destination) {
  fensterss = window.open(destination, "fensterss", "width=740,height=550,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=200,Top=100,status=no,directories=no,menuebar=no");
fensterss.focus();
  if (fensterss) return false;
  else return true;
}
function secretentry(destination) {
  fensterss11 = window.open(destination, "fensterss11", "width=700,height=660,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=220,Top=200,status=no,directories=no,menuebar=no");
fensterss11.focus();
  if (fensterss11) return false;
  else return true;
}

function bewertungspop(destination) {
  fensterss11x = window.open(destination, "fensterss11x", "width=600,height=200,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=220,Top=200,status=no,directories=no,menuebar=no");
fensterss11x.focus();
  if (fensterss11x) return false;
  else return true;
}

function showpost(destination) {
  fenstersh = window.open(destination, "fenstersh", "width=700,height=500,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=200,Top=250,status=no,directories=no,menuebar=no");
fenstersh.focus();
  if (fenstersh) return false;
  else return true;
}



function communicator(destination) {
  fenstcomm = window.open(destination, "fenstcomm", "width=220,height=650,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=200,Top=40,status=no,directories=no,menuebar=no");
fenstcomm.focus();
  if (fenstcomm) return false;
  else return true;
}
function gb(destination) {
  fenster1 = window.open(destination, "fenster1", "width=640,height=480,resizable=no,scrollbars=yes,dependent=yes,toolbar=no,Left=200,Top=150,status=no,directories=no,menuebar=no");
fenster1.focus();
  if (fenster1) return false;
  else return true;
}
function ipinf(destination) {
  fenster1ipi = window.open(destination, "fenster1ipi", "width=900,height=400,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=450,Top=300,status=no,directories=no,menuebar=no");
fenster1ipi.focus();
  if (fenster1ipi) return false;
  else return true;
}
function ipinf2(destination) {
  fenster1ipi2 = window.open(destination, "fenster1ipi2", "width=700,height=500,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=150,Top=100,status=no,directories=no,menuebar=no");
fenster1ipi2.focus();
  if (fenster1ipi2) return false;
  else return true;
}
function kalinf(destination) {
  fensterkalinf = window.open(destination, "fensterkalinf", "width=800,height=300,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=200,Top=200,status=no,directories=no,menuebar=no");
fensterkalinf.focus();
  if (fensterkalinf) return false;
  else return true;
}
function fenstervote(destination) {
  fensterv = window.open(destination, "fensterv", "width=850,height=450,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=200,Top=100,status=no,directories=no,menuebar=no");
fensterv.focus();
  if (fensterv) return false;
  else return true;
}
function comment(destination) {
  fenster4 = window.open(destination, "fenster4", "width=850,height=675,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=50,Top=20,status=no,directories=no,menuebar=no");
fenster4.focus();
  if (fenster4) return false;
  else return true;
}
function chat(destination) {
  fenster111 = window.open(destination, "fenster111", "width=900,height=650,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=30,Top=20,status=no,directories=no,menuebar=no");
fenster111.focus();
  if (fenster111) return false;
  else return true;
}
function usgal(destination) {
  fenster7 = window.open(destination, "fenster7", "width=920,height=650,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=75,Top=30,status=no,directories=no,menuebar=no");
fenster7.focus();
  if (fenster7) return false;
  else return true;
}
function mess(destination) {
  fenster432 = window.open(destination, "fenster432", "resizable=yes,scrollbars=yes, Left=50,Top=20");
fenster432.focus();
  if (fenster432) return false;
  else return true;
}
function pics (destination) 
{
 fenster2=window.open(destination, "fenster2", "width=800,height=730,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=200,Top=150,status=no,directories=no,menuebar=no");
 fenster2.focus();
}
function bilder(destination) {
  fenster322 = window.open(destination, "fenster322", "width=900,height=730,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=50,Top=20,status=no,directories=no,menuebar=no");
fenster322.focus();
  if (fenster322) return false;
  else return true;
}
function newsletter(destination) {
  fenster99 = window.open(destination, "fenster99", "width=600,height=400,resizable=no,scrollbars=yes,dependent=yes,toolbar=no,Left=190,Top=80,status=no,directories=no,menuebar=no");
fenster99.focus();
  if (fenster99) return false;
  else return true;
}
function admin(destination) {
  fenster5 = window.open(destination, "fenster5", "width=850,height=450,resizable=no,scrollbars=yes,dependent=yes,toolbar=no,Left=50,Top=20,status=no,directories=no,menuebar=no");
fenster5.focus();
  if (fenster5) return false;
  else return true;
}
function uanz(destination) {
  fenster7 = window.open(destination, "fenster7", "width=980,height=710,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=75,Top=30,status=no,directories=no,menuebar=no");
fenster7.focus();
  if (fenster7) return false;
  else return true;
}
function mitfahr(destination) {
  fenster7mf = window.open(destination, "fenster7mf", "width=650,height=800,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=170,Top=100,status=no,directories=no,menuebar=no");
fenster7mf.focus();
  if (fenster7mf) return false;
  else return true;
}
function gewinns(destination) {
  fenster7gw = window.open(destination, "fenster7gw", "width=400,height=400,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=200,Top=200,status=no,directories=no,menuebar=no");
fenster7gw.focus();
  if (fenster7gw) return false;
  else return true;
}
function helpbox(destination) {
  fenster8 = window.open(destination, "fenster8", "width=300,height=200,resizable=no,scrollbars=yes,dependent=yes,toolbar=no,Left=320,Top=100,status=no,directories=no,menuebar=no");
fenster8.focus();
  if (fenster8) return false;
  else return true;
}
function helpbox2(destination) {
  fenster8 = window.open(destination, "fenster82", "width=500,height=400,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=320,Top=100,status=no,directories=no,menuebar=no");
fenster82.focus();
  if (fenster82) return false;
  else return true;
}
function helpbox3(destination) {
  fenster833 = window.open(destination, "fenster833", "width=500,height=500,resizable=yes,scrollbars=yes,dependent=yes,toolbar=no,Left=320,Top=100,status=no,directories=no,menuebar=no");
fenster833.focus();
  if (fenster833) return false;
  else return true;
}
function helpboxtext(destination) {
  fenster811 = window.open(destination, "fenster811", "width=300,height=200,resizable=no,scrollbars=yes,dependent=yes,toolbar=no,Left=200,Top=100,status=no,directories=no,menuebar=no");
fenster811.focus();
  if (fenster811) return false;
  else return true;
}
function vip(destination) {
  fenster9 = window.open(destination, "fenster9", "width=180,height=210,resizable=no,scrollbars=yes,dependent=yes,toolbar=no,Left=350,Top=150,status=no,directories=no,menuebar=no");
fenster9.focus();
  if (fenster9) return false;
  else return true;
}
function umfrage1(f){
var fehlervalid=0;
var fehlercode='';
if(document.form221.umfrage_design.value=='')
{fehlercode='Bitte fülle das Formular vollständig aus.'; 
fehlervalid=1;}
if(document.form221.umfrage_zeit.value=='')
{fehlercode='Bitte fülle das Formular vollständig aus.';  
fehlervalid=1;}
if(document.form221.umfrage_navigation.value=='')
{fehlercode='Bitte fülle das Formular vollständig aus.'; 
fehlervalid=1;}
if(document.form221.umfrage_comments.value=='')
{fehlercode='Bitte fülle das Formular vollständig aus.'; 
fehlervalid=1;}
if(document.form221.umfrage_logo.value=='')
{fehlercode='Bitte fülle das Formular vollständig aus.';  
fehlervalid=1;}
if(document.form221.umfrage_pfvotings.value=='')
{fehlercode='Bitte fülle das Formular vollständig aus.';  
fehlervalid=1;}
if(document.form221.umfrage_communicator.value=='')
{fehlercode='Bitte fülle das Formular vollständig aus.';  
fehlervalid=1;}
if(document.form221.umfrage_forum.value=='')
{fehlercode='Bitte fülle das Formular vollständig aus.';  
fehlervalid=1;}
if(document.form221.umfrage_chat.value=='')
{fehlercode='Bitte fülle das Formular vollständig aus.';  
fehlervalid=1;}
if(document.form221.umfrage_zeit.value=='')
{fehlercode='Bitte fülle das Formular vollständig aus.';  
fehlervalid=1;}
if (fehlervalid==0)
{
document.form221.umfragesubmitbutton.disabled=true;
document.form221.umfragesubmitbutton.value='Bitte warten'+"...";
document.form221.submit();
}
else
{alert(fehlercode);}
}
	function insertimage()
	{
    	document.ono.posttext.value = 
document.ono.posttext.value + '[img]Bildadresse[/img]';
    	document.ono.posttext.focus();
	}
	function insertfett()
	{
    	document.ono.posttext.value = 
document.ono.posttext.value + '[fett]fett dargestellter Text[/fett]';
    	document.ono.posttext.focus();
	}
	function insertkursiv()
	{
    	document.ono.posttext.value = 
document.ono.posttext.value + '[kursiv]kursiver Text[/kursiv]';
    	document.ono.posttext.focus();
	}
	function inserturl()
	{
    	document.ono.urlziel.focus();
if (document.ono.urltext.value=='')
{document.ono.urltext.value=document.ono.urlziel.value;}
    	document.ono.posttext.value = document.ono.posttext.value + '[url=]';
if (document.ono.urlziel.value.toLowerCase().substr(0,7)!='http://')
{document.ono.posttext.value=document.ono.posttext.value+'http://';}
document.ono.posttext.value=document.ono.posttext.value + document.ono.urlziel.value+'[/ad]'+ document.ono.urltext.value+'[/url]';
    	document.ono.posttext.focus();
	}
	function insertTag(zeichen)
	{
    	document.uanz.geschwaetz.focus();
    	document.uanz.geschwaetz.value =
    	document.uanz.geschwaetz.value + zeichen;
    	document.uanz.geschwaetz.focus();
	}
	function markSelection(txtObj)
	{
		if(txtObj.createTextRange) {
			txtObj.caretPos = document.selection.createRange().duplicate();
			isSelected = true;
		}
	}
	function insertTag3(zeichen)
	{
    	document.ono.message.focus();
    	document.ono.message.value =
    	document.ono.message.value + zeichen;
    	document.ono.message.focus();
	}
	function markSelection(txtObj)
	{
		if(txtObj.createTextRange) {
			txtObj.caretPos = document.selection.createRange().duplicate();
			isSelected = true;
		}
	}
function SetEm_o(emo){document.uanz.geschwaetz.value+=''+emo;document.uanz.geschwaetz.focus();}
	function insertimageforum()
	{
    	document.ono.posttext.value = 
document.ono.posttext.value + '[img]Bildadresse[/img]';
    	document.ono.posttext.focus();
	}
	function insertfett()
	{
    	document.ono.posttext.value = 
document.ono.posttext.value + '[fett]fett dargestellter Text[/fett]';
    	document.ono.posttext.focus();
	}
	function insertkursiv()
	{
    	document.ono.posttext.value = 
document.ono.posttext.value + '[kursiv]kursiver Text[/kursiv]';
    	document.ono.posttext.focus();
	}
	function inserturlforum()
	{
    	document.ono.urlziel.focus();
if (document.ono.urltext.value=='')
{document.ono.urltext.value=document.ono.urlziel.value;}
    	document.ono.posttext.value = document.ono.posttext.value + '[url=]';
if (document.ono.urlziel.value.toLowerCase().substr(0,7)!='http://')
{document.ono.posttext.value=document.ono.posttext.value+'http://';}
document.ono.posttext.value=document.ono.posttext.value + document.ono.urlziel.value+'[/ad]'+ document.ono.urltext.value+'[/url]';
    	document.ono.posttext.focus();
	}
	function insertTagforum(zeichen)
	{
    	document.ono.posttext.focus();
    	document.ono.posttext.value =
    	document.ono.posttext.value + zeichen;
    	document.ono.posttext.focus();
	}
	function markSelection(txtObj)
	{
		if(txtObj.createTextRange) {
			txtObj.caretPos = document.selection.createRange().duplicate();
			isSelected = true;
		}
	}



 function htmlentities(str,typ) {
/*

*/
    return str;
    }