function image_fenster(u,b,h) {
        var breite=b;
        var hoehe=h;
        var url = u;
        var positionX=((screen.availWidth / 2) - breite / 2);
        var positionY=((screen.availHeight / 2) - hoehe / 2);
        //pop=window.open('','','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,fullscreen=0,width='+breite+',height='+hoehe+',top=0,left=0');
        pop=window.open('','','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,fullscreen=0,top=0,left=0');

	with (pop) {
		document.open();
		document.write('<title>'+u+'</title>');
		document.write('<meta http-equiv=\"imagetoolbar\" content=\"no\">');
		document.write('<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" scroll=\"no\" onload=\"opener.shckrez(document.images[0].width,document.images[0].height)\">')
		document.write('<a href=\"javascript:self.close()\">');
		document.write('<img src=\"'+u+'\" border=\"0\">')
		document.close();

	}
}
function shckrez(x,y) {
	y = y + 53;
	if (navigator.appName == 'Microsoft Internet Explorer')
		{pop.resizeTo(x+10,y+29);}
	else {
		if(navigator.appVersion.substring(0,1) < "5")
			{pop.resizeTo(x,y);}
		else
			{pop.resizeTo(x+8,y+28);}
	}
	shckx=(screen.availWidth/2)-(x/2);
	shcky=(screen.availHeight/2)-(y/2);
	pop.moveTo(shckx,shcky);
}

        //pop.resizeTo(breite,hoehe);
        //pop.moveTo(positionX,positionY);
        //pop.location=url;

function check_tb() {
        if (document.getElementById("tb").checked == true) {
                document.getElementById("hochladen").disabled = false;
        } else {
                document.getElementById("hochladen").disabled = true;
        }
}
function decode(MyValue) {
        var encoded = MyValue;
        var value = decodeURIComponent(encoded.replace(/\+/g,  " "));
        return value;
}
function danke_fenster(u,b,h) {
        var breite=b;
        var hoehe=h;
        var url = u;
        var positionX=((screen.availWidth / 2) - breite / 2);
        var positionY=((screen.availHeight / 2) - hoehe / 2);
        pop=window.open(url,'danke','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,fullscreen=0,width='+breite+',height='+hoehe+',top=0,left=0');
	
}

