/*---------------------------------*/
/* Funktion zum oeffnen von PopUps */
/*---------------------------------*/

/*Beispiel */

function openWin( windowURL, windowName, windowFeatures ) 
{ 
  newWindow = window.open(windowURL, windowName, windowFeatures ); 
}



/*-----------------------------------*/
/* Funktion zum wechseln von Bildern */
/*-----------------------------------*/

/*Beispiel <a href="seite.htm" onmouseover="wechseln('bildname','images/bild2.gif')" onmouseout="wechseln('bildname','images/bild1.gif')"><"<img src="images/bild1.gif" border="0" name="bildname" alt=""></a> */

function wechseln(ort,bild)
{
  if (document.images)
  {
    document.images[ort].src = bild;
  }
}



/*--------------------------------------*/
/* Funktion zum vorausladen von Bildern */
/*--------------------------------------*/

/*Beispiel <body onLoad="laden('images/bild1.gif','images/bild2.jpg')"> */

function laden()
{
  if (document.images)
  {
    document.neu = new Array();
    var i, j = document.neu.length;
    for(i = 0; i < laden.arguments.length; i++)
    {
      document.neu[j] = new Image;
      document.neu[j++].src = laden.arguments[i];
    }
  }
}





/*-----------------------------------------*/
/* Funktion zum loeschen der Eingabefelder */
/*-----------------------------------------*/

/*Beispiel <input name="newsletter" type="text" value="Email Adresse" onClick="loeschen('newsletter')"> */

function loeschen(ort)
{
  document.getElementById(ort).value = '';
  return false;
}



/*--------------------------------------*/
/* Funktion zum Aufklappen des Menü's */
/*--------------------------------------*/

    var lange = 0, letztes = 0;
    
	function openWin( windowURL, windowName, windowFeatures ) 
        { 
	  return window.open(windowURL, windowName, windowFeatures ) ; 
	}
	
	function aufzu()
      {                   
      if (document.getElementById(aufzu.arguments[0]).style.display == 'none')
        {
		document.getElementById(aufzu.arguments[0]).style.display = 'block';
		} else {
		document.getElementById(aufzu.arguments[0]).style.display = 'none';
        }
      }
