function Bild(URL, W_Name)
{
var fenster;
var breite;
var hoehe;
var test;
xccord=200;
//test

test= new Image();
test.src=URL;


breite = test.width + 40;
hoehe=test.height + 70;

//alert(hoehe);
//alert(navigator.appName);
fenster = window.open(URL,W_Name, "resizable=yes,scrollbars=0,copyhistory=0,width=breite,height=hoehe",replace=true); 

if (navigator.appName == "Netscape") {
	if (breite > 40 && hoehe > 70)	{
		//alert(hoehe);
		fenster.outerHeight=hoehe;
		fenster.outerWidth=breite;
		}
	else {
		fenster.outerHeight=350;
		fenster.outerWidth=450;
		}
}

else{   //NavApp!=Netscape
	if (breite > 41 && hoehe > 71)	{
		fenster.location = URL;
		fenster.resizeTo(breite,hoehe);
		}
	else {
		fenster.resizeTo(450,350);
		}
}
fenster.focus();
}

function Info(URL, W_Name)
{
var name;
name = window.open(URL,W_Name, "resizable=yes,scrollbars=0,copyhistory=0,width=660,height=520");  
name.location = URL;
}

function ShowMovie(URL)
{
var name;
name = window.open(URL,"gpUntis_Demo", "resizable=yes,scrollbars=1,copyhistory=0,width=1024,height=768");  
name.location = URL;
name.focus();
}


function fenster(image)
{
//Wichtig resizable auf yes setzen
F1=open("http://www.grupet.at/includes/popup.php?image="+image,"","width=400,height=400,resizable=yes");
F1.focus();
}

function popupFile(file)
{
//Wichtig resizable auf yes setzen
breite = screen.width;
hoehe=screen.height;

F1=open(file,"","width="+breite+",height="+hoehe+",resizable=yes");

links = screen.width/2 - F1.outerWidth/2;
oben = screen.height/2 - F1.outerHeight/2;
F1.moveTo(links,oben);


F1.focus();
}
