function popup(url, width, height, name) {
   	myCMSFenster = window.open(url,name,'width=' + width + ',height=' + height + ',status=yes,resizable=yes,menubar=no,locationbar=no,scrollbars=yes,dependent=yes' );
}

function popupmenu(url, width, height, name) {
   	myCMSFenster = window.open(url,name,'width=' + width + ',height=' + height + ',status=yes,resizable=yes,menubar=yes,toolbar=yes,locationbar=no,scrollbars=yes,dependent=yes' );
}
	
if(top.frames.length > 0)
   	top.location.href=self.location;
	
function conf() { 
	check = confirm("Wollen Sie das wirklich?");
	return check; 
}
	
function conf_exp2nor() { 
	check = confirm("Beim Wechsel des Modus gehen Änderungen verloren!");
	return check; 
}

function strecke_anreisser(strecke, text, mySID) {
    document.write("<a href=\"javascript:popup('/popup_fs.php?mySID="+mySID+"&amp;myELEMENT=219520&amp;album_id=" + strecke + "&amp;foto_id=1','540','750','KSFOTOSTRECKE')\">" + text + "</a>");
}

function pruefeMaxLaenge(maxLaenge) {

                if(maxLaenge - document.Abgeben.anliegen.value.length < 0) {
                          text = document.Abgeben.anliegen.value.substring(0, maxLaenge);
                          document.Abgeben.anliegen.value = text;
                          document.Abgeben.laenge.value = 0;
                          return;
                }

                document.Abgeben.laenge.value = maxLaenge - document.Abgeben.anliegen.value.length;
}

function  checkFormFuerbitte() {

               if(document.Abgeben.anliegen.value == "") {
                          alert("Bitte geben Sie einen Text für Ihre Fürbitte ein.");
                          return(false);
               }
}

function  checkFormAufruf() {

    if(document.Abgeben.anliegen.value == "") {
                           alert("Bitte geben Sie einen Text für Ihren Aufschrei/Aufruf ein.");
                           return(false);
    }
}

