function popup(html){
fenster2 = window.open(html,"textpopup","resizable=1, scrollbars=1, status=0, menubar=0,location=0, toolbar=0, height=600px, width=920")
fenster2.focus()
fenster2.resizeTo(920,600)
fenster2.moveTo(0,0)
}




function bildpopup(bild,titel,alttext)
{ var undefined;

  if (alttext==undefined)
  {alttext='Neue Wege - Caritas Bochum';}

  if (titel==undefined)
  {titel='Neue Wege - Caritas Bochum';}

  fenster1 = window.open('', 'xyz','resizable=0');

  with (fenster1)
  {
    	focus ();
    	document.open();
	document.write('<title>'+titel+'</title>');
	document.write('<meta http-equiv=\"imagetoolbar\" content=\"no\">');
	document.write('<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" scroll=\"no\" onload=\"opener.fensterresize(document.images[0].width,document.images[0].height)\">')
	document.write('<a href=\"javascript:self.close()\">');
	document.write('<img src=\"'+bild+'\" border=\"0\" alt=\"'+alttext+'\">')
	document.close();
  }
}

function fensterresize(x,y)
{
if (navigator.appName == 'Microsoft Internet Explorer')
{fenster1.resizeTo(x+10,y+29);}

else
{
	if(navigator.appVersion.substring(0,1) < "5")
		{fenster1.resizeTo(x,y);}
	else
		{fenster1.resizeTo(x+8,y+28);}
}

fenster_x=0 //(screen.availWidth/2)-(x/2);
fenster_y=0//(screen.availHeight/2)-(y/2);
fenster1.moveTo(fenster_x,fenster_y);
}



function framecheck(){
frameinhalt=location.href
if (top.frames.length==0) location.replace("../index.html?"+frameinhalt)
}

function frameandern(){
slicer=location.href.lastIndexOf("?")
fenster=location.href.slice(slicer+1, location.href.length)
checker=location.href.slice(0, slicer)

if(slicer > 0){
inhalt.location.href=fenster
}
}





