  function openForPrint()
  {
		windowscrollbars = 'auto';
		windowwidth = 600;
		windowheight = 500;
		printWindow = window.open("print.php" + url_params, "_blank", "location=no,menubar=no,resizable=yes,top=50,left=50,status=no,toolbar=no,height="+windowheight+",width="+windowwidth+",scrollbars="+windowscrollbars);
	}

	function selectNav()
	{
		for(i=0;i<document.form1.select.length;++i)
		if(document.form1.select.options[i].selected == true)
			location.href = document.form1.select.options[i].value;
	}

	// fill window..
  function FitToWindow()
  {
    // if window.innerHeight is not supported (ie fi)
    if( ! window.innerHeight )
      // ie
      document.images.spacer.height = ( document.documentElement.clientHeight - 301 );
    else
      // firefox
      document.images.spacer.height = ( window.innerHeight - 297 );
  }

  function zoom( url )
	{
		zoom( url, 960, 580 );
	}

	function zoom( url, w, h )
	{
		var MAINWIN = open( url, 'fenster', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=' + w + ',height=' + h );
		MAINWIN.focus();
	}

  function sendMail()
  {
	  link = window.location;
	  body = '\nIch habe auf www.naturpur-institut.de folgende Seite gefunden und dachte, sie könnte Sie interessieren.\n\nSchauen Sie doch mal vorbei!\n';
	  mailAdr = '[Hier bitte die gewünschte E-Mail-Adresse eingeben!]';
	  subject = 'Ein Link von www.naturpur-institut.de'
	  window.location = 'mailto:' + escape(mailAdr) + '?subject=' + escape(subject) + '&body=' + escape(body + link);
  }
