
var lPic = new Array(21);
var oPic = new Array(21);
var picname = new Array(21);

	for (i = 0; i <= 22; i++)

	{

		lPic[i]=new Image();

		oPic[i]=new Image();

	}
var fertig="nein";
var ofertig="ja";
var lfertig="ja";

function picLoad()

{

		var tmp ="";
		var x = 1;
		var picount = 0;
		var ld;
		tmp=document.images[x].name;
		while (tmp !="picende")
		{
			if (tmp != "")
			{
			lPic[picount].src=document.images[x].src;
			picname[picount]=tmp;
			ld=tmp.substring(0,2)+"_"+tmp.substring(2,4)
			ld="images/lbi_"+ld+"_02.gif";
			oPic[picount].src=ld;
			picount++;
			}
			x++;
			tmp=document.images[x].name;
			
		}

		fertig="Ja"
}

function overPic(pic1)

{

		if (fertig=="Ja")
		{
		if (ofertig == "ja")
		{
		ofertig="nein";
		var x = 0;
		var tmp;
		while(picname[x]!=pic1)
		{
			x++;
		}
		
		document.images[pic1].src = oPic[x].src;
		ofertig="ja";
		}
		}
}

function lowPic(pic1)

{
		if (fertig == "Ja")
		{
		if (lfertig == "ja")
		{
		lfertig="nein";
		var x = 0;
		while(picname[x]!=pic1)
		{
			x++;
		}
		
		document.images[pic1].src = lPic[x].src;
		lfertig="ja";
		}
		}
}

function senddata(machdas)
{
	document.forms["sendform"].machdas.value = machdas;
	document.forms["sendform"].action = machdas;
	document.forms["sendform"].submit();
}

function sendeform(was,machdas)
{
	document.sendform.machdas.value = was;
	document.sendform.action = machdas;
	document.sendform.submit();
}

function hlink(machdas)
{
window.location.href = machdas;	
}

function sendmnr()
{
	document.sendform.action = 'lbi_versand.php3';
	document.sendform.submit();
}