

function Deblur(ml){if(document.all)ml.blur();}

function BldTr()
{
	for (z=ws; z<=we; z++)
		{
		i=w1+z;
		x=parent.frames[i].a;
		if (x==3)
			{
			parent.frames[i].document.images[0].src=parent.frames[i].A.src;
			parent.frames[i].a=1;
			}
		}
}

function BldT(Bld,x)
{
	w=w1+w2
	if (a==1)
		{
		window.document.images[x].src=Bld.src;
		}
	if (a==2)
		{
		BldTr()
		window.document.images[x].src=Bld.src;
		a=3;
		}
	
}
function BldTp(Bld,x)
{
alert(Bld);
	w=w+1;
	if (w==3)
		{
		w=0
		}
	window.document.images[x].src=Bld.src;
}

function quer(i,B){quer2(i,B,'')}
function quer2(i,B,i2)
{
//alert("hallo i= "+i+"\n cookie="+window.document.cookie+"\nherkunft= "+document.referrer+"\n g="+"\n i2="+i2+"\n i2 test= "+(i2==""))
 if (i=='1')
 {
  if(window.document.cookie.indexOf ("#h#")>=0)
  {
	i=window.document.cookie.substring(0,window.document.cookie.indexOf ("#h#"))+".htm";
	i2=window.document.cookie.substring(window.document.cookie.indexOf ("#h#")+3,window.document.cookie.indexOf ("#2#"));
	if (i2!=""){i2=i2+"#h##2#"}
//alert('i2= '+i2+'\n cookie löschen '+window.document.cookie)
	window.document.cookie=i2;
	self.location.href=i
  }
 }
 else
 {
  window.document.cookie=i+"#h#"+i2+"#2#";
//alert("set "+window.document.cookie)
  l="d";
//alert("hier "+i)
  i=B;
  if (i!=''){B="Bitte betätigen Sie den\n Buton '"+i+"' \num diesen Inhalt angezeigt zu bekommen"}
  if(window.document.cookie.indexOf ("#h#") == -1)
  {if (l=="d")
    alert("Diese Seite ist aus Ihrem Ramen gefallen!\n\nDie Seite ist Teil eines Frameset.\nSie wird jetzt dort eingebunden.'"+B);
  else
    alert("This side is a part of a Frameset!\n\n\nThe frame are nau installt. Please press\n Buton '"+B+"' \nto see this side");
    };
 }
}


