function flashwin(fenster, b, h) 
	 {
               //var win;
	 //win=window.open(fenster,"ueberschrift","height=" + b + ",width=" + h +","menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0,left=0,top=0");

	var NWindow=open(fenster, "HelpWindow","width=" + b + ",height=" + h + ",resizable,screenX=50,screenY=30,scrollbars=auto");
  	if (NWindow.focus!=null)
  	NWindow.focus();
              }

	function ShowPicture(bild)
 	{
  	var NWindow=open("showpicture.asp?bild=" + bild,"HelpWindow","width=700,height=540,resizable,screenX=50,screenY=30,scrollbars=no");
  	if (NWindow.focus!=null)
  	NWindow.focus();
 	}

	function check_search()
	{ 
	weiter=true;
	if(document.f1.suchstr.value=="")    
		{alert("Bitte geben Sie den Suchtext an!");     
		document.f1.suchstr.focus();
		weiter=false;}
	return weiter;
	}


function PreLoadImages()
{
	var objects=PreLoadImages.arguments;
	var Img=new Array(objects);

	for(var i=0; i<objects.length; i++)
	{
		Img[i]=new Image();
		Img[i].src=objects[i];
	}
}

function ChangeURL(actURL, paramName, paramValue)
{
	start=actURL.indexOf(paramName);
	temp=actURL.substring(start);
	start=start+temp.indexOf("=")+1;
	temp=actURL.substring(start);
	end=temp.indexOf("&");
	newURL=actURL.substring(0,start)+paramValue+actURL.substring(start+end);
	return newURL;
}


function changeBGcolor(id,color)
{	//

	if (document.getElementById && document.getElementById(id))
	{
		document.getElementById(id).style.background = color;
		return true;
	}
	else if (document.layers && document.layers[id])
	{

		document.layers[id].bgColor = color;
		return true;
	}
	
}

function ShowPicture(bild)
{
  	var NWindow=open("showpicture.asp?bild=" + bild,"HelpWindow","width=700,height=540,resizable,screenX=50,screenY=30,scrollbars=no");
  	if (NWindow.focus!=null)
  	NWindow.focus();
}


// make image rollovers simple like:
// <img src="/images/ss_img.gif" oversrc="/images/ss_img_over.gif">

function SimpleSwap(el,which){
  el.src=el.getAttribute(which || "origsrc");
}

function SimpleSwapSetup(){
  var x = document.getElementsByTagName("img");
  for (var i=0;i<x.length;i++){
    var oversrc = x[i].getAttribute("oversrc");
    if (!oversrc) continue;
      
    // preload image
    // comment the next two lines to disable image pre-loading
    x[i].oversrc_img = new Image();
    x[i].oversrc_img.src=oversrc;
    // set event handlers
    x[i].onmouseover = new Function("SimpleSwap(this,'oversrc');");
    x[i].onmouseout = new Function("SimpleSwap(this);");
    // save original src
    x[i].setAttribute("origsrc",x[i].src);
  }
}

var PreSimpleSwapOnload =(window.onload)? window.onload : function(){};
window.onload = function(){PreSimpleSwapOnload(); SimpleSwapSetup();}