<!-- // hide 4 non js-browsers
// iManter JavaScript  v3.0
var actImg_;
var theatreAct_;
var theatreImgs_;
var theatreNum_;
var theatreObj_;
var openWnd_;
var isNav,isIE;

// Convert object name string or object reference
// into a valid object reference
function getObject(obj) {
	var the_obj;
	if (typeof obj == "string") {
		the_obj = eval("document." + range + obj + styleObj );
	} else {
		the_obj = obj;
	}
	return the_obj;
}

// Positioning an object at a specific pixel coordinate
function shiftTo(obj, x, y) {
	var the_obj = getObject(obj);
	if (isNav) {
		the_obj.moveTo(x,y);
	} else {
		the_obj.pixelLeft = x;
		the_obj.pixelTop = y;
	}
}

// Moving an object by x and/or y pixels
function shiftBy(obj, deltaX, deltaY) {
	var the_obj = getObject(obj)
	if (isNav) {
		the_obj.moveBy(deltaX, deltaY);
	} else {
		the_obj.pixelLeft += deltaX;
		the_obj.pixelTop += deltaY;
	}
}

// Setting the z-order of an object
function setZIndex(obj, zOrder) {
	var the_obj = getObject(obj);
	the_obj.zIndex = zOrder;
}

// Setting the background color of an object
function setBGColor(obj, color) {
	var the_obj = getObject(obj);
	if (isNav) {
		the_obj.bgColor = color;
	} else {
		the_obj.backgroundColor = color;
	}
}

// Setting the visibility of an object to visible
function show(obj) {
	var the_obj = getObject(obj);
	the_obj.visibility = "visible";
}

// Setting the visibility of an object to hidden
function hide(obj) {
	var the_obj = getObject(obj);
	the_obj.visibility = "hidden";
}

// Retrieving the x coordinate of a positionable object
function getObjectLeft(obj)  {
	var the_obj = getObject(obj)
	if (isNav4) {
		return the_obj.left;
	} else {
		return the_obj.pixelLeft;
	}
}

// Retrieving the y coordinate of a positionable object
function getObjectTop(obj)  {
	var the_obj = getObject(obj);
	if (isNav) {
		return the_obj.top;
	} else {
		return the_obj.pixelTop;
	}
}

function showProps(o, objName) {
	var result = "";
	count = 0;
	for (var i in o) {
		result += o + "." + i + "=" + o[i] + "\n";
		count++;
		if (count == 25) {
			alert(result);
			result = "";
			count = 0;
		}
	}
	alert(result);
}

function init() {
	if (navigator.appName == "Netscape") {
 		isNav = true;
 		insideWindowWidth = window.innerWidth;
    range="";
    styleObj = "";
 	} else {
 		isIE = true;
 		range = "all.";
 		styleObj = ".style";
  }
  // try to get the actual screen resolution
  size_prefix = "_s";
  if ( screen.width > 800 )
    size_prefix = "_m";
  if ( screen.width > 1024 )
    size_prefix = "_l";
}

function doNothing() { //v3.0
  return;
}

function findObj(n, d) { //v3.0
  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=findObj(n,d.layers[i].document); 
  return x;
}

function openBrGWindow(theURL,winName,features,img,width) { //v3.0
  actImg_ = img;
  openWnd_ = window.open(theURL,winName,features);
  var someText = "<body bgcolor=\"#000000\">" +
                 "<table bgcolor=\"#000000\" width=\"95%\" cellspacing=\"0\" cellpadding=\"0\">"+
                 "<tr><td bgcolor=\"#000000\" align=\"center\">" +
                 "<img width=\""+ width +"\" src=\"" + actImg_ + "\" border=\"0\"></td></tr>"+
                 "<tr><td bgcolor=\"#000000\" align=\"center\"><a href=\"#\" onClick=\"window.close()\"><img src=\"images/close.jpg\" "+
                 " border=\"0\"></a></td></tr></table></body>";
  openWnd_.document.write( someText );
  openWnd_.document.close();
}

function openPasswdWindow(theURL,winName,features) { //v3.0
  openWnd_ = window.open(theURL,winName,features);
}

function preloadImages() { //v3.0
  var d=document; 
  if(d.images){ 
    if(!d.p) 
      d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; 
    for(i=0; i<a.length; i++)
      if (a[i].indexOf("#")!=0){ 
        d.p[j]=new Image; 
        d.p[j++].src=a[i];
      }
  }
}

function showHideLayers() { //v3.0
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
    if ((obj=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 swapImage() { //v3.0
  var i,j=0,x,a=swapImage.arguments; 
  document.sr=new Array; 
  for(i=0;i<(a.length-2);i+=3)
    if ((x=findObj(a[i]))!=null){
      document.sr[j++]=x; 
      if(!x.oSrc) 
        x.oSrc=x.src; 
      x.src=a[i+2];
    }
}

function swapImgRestore() { //v3.0
  var i,x,a=document.sr; 
  for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) 
    x.src=x.oSrc;
}

function showStatus( text ) { //v3.0
	if ( text )
	  window.status = text;
  return true;
}

function createStart( otherwnd ) { //????????????????
  openWnd_ = otherwnd;
  var someText = "<table width=\"100%\"><tr><td align=\"center\">" +
                 "<img src=\"" + actImg_ + "\" border=\"0\"></td></tr></table>";
  openWnd_.document.write( someText );
  openWnd_.document.close();
}

function theatreSetup() {
  var d = document;
  d.theatreAct_ = 0;
  d.theatreImgs_ = new Array();
  var a=theatreSetup.arguments; 
  
  for( d.theatreNum_=0; d.theatreNum_<a.length-2; d.theatreNum_++) {
    d.theatreImgs_[d.theatreNum_]= a[d.theatreNum_+1];
  }
  d.theatreObj_ = a[0];
  d.actImg_ = d.theatreImgs_[ d.theatreAct_ ];
}

function theatreNext() {
  var d = document;
  if( d.theatreAct_ < d.theatreNum_-1 )
    d.theatreAct_++;
}

function theatrePrev() {
  var d = document;
  if( d.theatreAct_ > 0 )
    d.theatreAct_--;
}

function theatreHasNext() {
  var d = document;
  if( d.theatreAct_ < d.theatreNum_ )
    return true;
  return false;
}

function theatreHasPrev() {
  var d = document;
  if( d.theatreAct_ > 0 )
    return true;
  return false;
}

function theatrePaint() {
  var d = document;
  d.actImg_ = d.theatreImgs_[ d.theatreAct_ ];
  var o = findObj( 'small_image' );
  var i = new Image();
  i.src = d.actImg_;
  o.src = i.src;
  //d.images[6].src = d.actImg_;  
//  swapImage( d.theatreObj_,'',d.actImg_,1)
//  d.theatreObj_.src = d.theatreImgs_[ d.theatreAct_ ].src;
}

function MM_preloadImages() { //v2.0
  if (document.images) {
    var imgFiles = MM_preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
  } }
}

function MM_swapImgRestore() { //v2.0
  if (document.MM_swapImgData != null)
    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
      document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}

function MM_swapImage() { //v2.0
  var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
  for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
    objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
      objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
    obj = eval(objStr);
    if (obj != null) {
      swapArray[j++] = obj;
      swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
      obj.src = MM_swapImage.arguments[i+2];
  } }
  document.MM_swapImgData = swapArray; //used for restore
}

function openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function  swapImgRestore() { //v3.0
  var i,x,a=document. sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function  preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d. p) d. p=new Array();
    var i,j=d. p.length,a= preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d. p[j]=new Image; d. p[j++].src=a[i];}}
}

function  findObj(n, d) { //v3.0
  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= findObj(n,d.layers[i].document); return x;
}

function  swapImage() { //v3.0
  var i,j=0,x,a= swapImage.arguments; document. sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x= findObj(a[i]))!=null){document. sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function  showHideLayers() { //v3.0
  var i,p,v,obj,args= showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj= 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 browsercheck () {
var br = document.all?true:false
return br;
}

function  timelineGoto(tmLnName, fNew, numGotos) { //v2.0
  //Copyright 1997 Macromedia, Inc. All rights reserved.
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
  if (document. Time == null)  initTimelines(); //if *very* 1st time
  tmLn = document. Time[tmLnName];
  if (numGotos != null)
    if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
    else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
  jmpFwd = (fNew > tmLn.curFrame);
  for (i = 0; i < tmLn.length; i++) {
    sprite = (jmpFwd)? tmLn[i] : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back
    if (sprite.charAt(0) == "s") {
      numKeyFr = sprite.keyFrames.length;
      firstKeyFr = sprite.keyFrames[0];
      lastKeyFr = sprite.keyFrames[numKeyFr - 1];
      if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd
      for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
      for (j=0; j<sprite.values.length; j++) {
        props = sprite.values[j];
        if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only
        else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range
        if (sprite.obj != null) {
          if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
          else        sprite.obj[props.prop2][props.prop] = props[propNum];
      } }
    } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  }
  tmLn.curFrame = fNew;
  if (tmLn.ID == 0) eval(' timelinePlay(tmLnName)');
}

function  timelinePlay(tmLnName, myID) { //v1.2
  //Copyright 1997 Macromedia, Inc. All rights reserved.
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
  if (document. Time == null)  initTimelines(); //if *very* 1st time
  tmLn = document. Time[tmLnName];
  if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
  if (myID == tmLn.ID) { //if Im newest
    setTimeout(' timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
    fNew = ++tmLn.curFrame;
    for (i=0; i<tmLn.length; i++) {
      sprite = tmLn[i];
      if (sprite.charAt(0) == 's') {
        if (sprite.obj) {
          numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
          if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
            keyFrm=1;
            for (j=0; j<sprite.values.length; j++) {
              props = sprite.values[j]; 
              if (numKeyFr != props.length) {
                if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
                else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
              } else {
                while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
                if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
                  if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
                  else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
        } } } } }
      } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
      if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  } }
}

function jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function goToURL() { //v3.0
  var i, args=goToURL.arguments; document.returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function check_mm() {
	var mm;
	mm=document.auswahl.mm.value;
	
	if (mm!=""){
		if (mm>12) { alert('Bitte geben Sie eine Zahl zwischen 1 und 12 ein');
			document.auswahl.mm.value="";
		     	document.auswahl.mm.focus();	
		   	}
	} else {
	document.auswahl.mm.focus();	
	}
}

function check_dd() {
	var dd,mm;
	dd=document.auswahl.dd.value;
	mm=document.auswahl.mm.value;
	
	if (dd!=""){
		if (dd>31) { alert('Der eingegebene Tag ist ungültig'); 
               		document.auswahl.dd.value="";
		     	document.auswahl.dd.focus();
		     	return false;
		} else { 
			if (dd==31) { if (mm==2 || mm==4 || mm==6 || mm==9 || mm==11) {
				alert('Der eingegebene Tag ist ungültig'); 
               	     		document.auswahl.dd.value="";
		     		document.auswahl.dd.focus();
			     	return false;
			    }
			}	  
		}
	} else {
	document.auswahl.dd.focus();
	return false;
	}
	
}

function check_email (){
	if (window.document.anzeige.email.value.indexOf("@")==-1) {
		alert('Bitte geben Sie eine gültige Emailadresse ein');
		window.document.anzeige.email.value="";
		window.document.anzeige.email.focus();
	}
 
}

function replace(destination,url) {
parent.frames[destination].location.href=url;
}

function deletecheck () {

var pass = confirm('Wollen Sie wirklich löschen?');

if (!pass) {return false;}

}

function sendcheck () {

var nl_send = confirm('Newsletter wirklich senden?');

if (!nl_send) {return false;}

}

function events () {

var a = edit.document.edit.headline.value;
var b = edit.document.edit.txt.value;
var c = edit.document.edit.strasse.value;
var d = edit.document.edit.land.value;
var e = edit.document.edit.plz.value;
var f = edit.document.edit.stadt.value;
var g = edit.document.edit.bundesland.value;

var link='./edit_events.php?a='+a+'&b='+b+'&c='+c+'&d='+d+'&e='+e+'&f='+f+'&g='+g+'&l_id=de';

edit.document.location=link;

}

function uhr ()

{
	
	//variablen initialisieren
		
		var jahr, monat, tag, stunden, minuten, sekunden, zeit, secformat;
	
	
	//uhr-fkt
	
		var AktuellesDatum=new Date ();
	
		stunden=AktuellesDatum.getUTCHours()+2;
		
		minuten=new String(AktuellesDatum.getUTCMinutes ());
	
		sekunden=AktuellesDatum.getUTCSeconds ();
	
	
	//0 voranstellen
	
		if (stunden<10) {stunden="0"+stunden;}
	
		if (minuten<10) {minuten="0"+minuten;}
	
		if (sekunden<10) {sekunden="0"+sekunden;}
	
	
	//ausgabestring zusammensetzen
	
		zeit="<Font class=\"sta10\" color=\"#595959\">"+stunden+":"+minuten+":"+sekunden+"</Font>";
	
	//in form ausgeben

		//window.document.edit.tm.value=zeit;
	
	
	//in ebene ausgeben
	
		if (document.all) {
		
			document.all.d_uhr.innerHTML = zeit;

		} else {
	
			document.layers["l_uhr"].document.open();
			document.layers["l_uhr"].document.write(zeit);
			document.layers["l_uhr"].document.close();

		}
	
	
	//funktion neu aufrufen nach 1 sec
	
		window.setTimeout('uhr()',1000);
		
}
// -->
