
	//
	// Copyright (C) by Lukas Lochner, 2006
	//


	function show_map()
	{
	  // FUER SOMMERFEST 08
	  document.getElementById('mapframe').style.display = 'inline';
	}


	function show_details(id)
	{
	  document.getElementById(id).style.visibility = 'visible';
	}

	function hide_details(id)
	{
	  document.getElementById(id).style.visibility = 'hidden';
	}

	function AddSmilieGB(art)
    {
         var Message = document.formular.gb_comment.value;
         Message = Message + art;
         document.formular.gb_comment.value = Message;
         document.formular.gb_comment.focus();
    }

	function sortc(docForm,ud)
	{		
	  top.location.href='?pageid=00021&mod=editcat&' + "sort=" + ud + '&id=' + docForm.ccatid.value;
	}


	function check()
	{
	 voll=true;
	 anzahlFelder=1;
	 for(n=0; n < anzahlFelder; n++)
	 {
	  if(window.document.form.elements[n].value== "")
	  voll=false;
	 }
	 if(!voll)
	 {
	  alert("Bitte gebe Name, Vorname an!");
	 }
	 else
	 {
	  document.form.submit();
	 }
	 return voll;
	}


	function check2()
	{
	 voll=true;
	 anzahlFelder=2;
	 for(n=0; n < anzahlFelder; n++)
	 {
	  if(window.document.form.elements[n].value== "")
	  voll=false;
	 }
	 if(!voll)
	 {
	  alert("Bitte überprüfe deine Angaben!");
	 }
	 else
	 {
	  document.form.submit();
	 }
	 return voll;
	}

	function check3()
	{
	 voll=true;
	 anzahlFelder=1;
	 for(n=0; n < anzahlFelder; n++)
	 {
	  if(window.document.form.elements[n].value== "")
	  voll=false;
	 }
	 if(!voll)
	 {
	  alert("Bitte überprüfe deine Angaben!");
	 }
	 else
	 {
	  document.form.submit();
	 }
	 return voll;
	}

	function myrefresh(URI1,F1)
	{
	 Frame1=eval("parent."+F1);
	 Frame1.location.href = URI1;
	}
	

	var formfeld=" ";
	var maxlang=500;
	function z()
	{
	 if (window.document.zeige.Text.value.length>500)
	 {
	  window.document.zeige.Text.value=formfeld;
	  return;
	 }
 	 else
 	 { 
  	  formfeld=window.document.zeige.Text.value;
	  window.document.zeige.anzeigen.value=maxlang-window.document.zeige.Text.value.length;
	 }
	}


	function NeueFarbe(Nr,tf)
        {
         var TDID, COLtrue="#D7E5ED", COLfalse="#FFFFFF";
         TDID="box"+Nr;
	 	 if (document.all && !document.getElementById) // IE 4
         {
          if (tf=="true")
          {
           document.all[TDID].style.backgroundColor=COLtrue;
          }
          else
          {
           document.all[TDID].style.backgroundColor=COLfalse;
          }
         }

         if (document.getElementById) // IE 5.x und NN 6 (Opera, theoretisch ;-)
         {
          if (tf=="true")
          {
           document.getElementById(TDID).style.backgroundColor=COLtrue;
          }
          else
          {
          document.getElementById(TDID).style.backgroundColor=COLfalse;
          }
         }

         if (document.layers) // NN 4.x
         {
          if (tf=="true")
         {
          document.layers[TDID].bgColor=COLtrue;
         }
         else
         {
           document.layers[TDID].bgColor=COLfalse;
          }
         }
        }

		function create_popup(sb,mypage,myname,w,h,pos,infocus)
		{
	     myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;
		 settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
		 win.focus();
		}
		
		
		function create_popup_osb(sb,mypage,myname,w,h,pos,infocus)
		{
	     myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;
		 settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
		 win.focus();
		}		

