// JavaScript Document
function swapImg2(id, file, width, height, margintop, marginleft)
{
image = document.getElementById(id);
if(image != null) {
image.src = file;
image.width = width;
image.height = height;
image.style.marginTop = margintop + 'px';
image.style.marginLeft = marginleft + 'px';
}
}


function popup(datei, groesse_x, groesse_y) {
	if ( window.Fenster ) { Fenster.close(); }
	Fenster = window.open('', null, 'top=200,left=300,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no, width=' + groesse_x + ', height=' + groesse_y);
	Fenster.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>vergr&ouml;&szlig;ertes Bild</title></head><body style="margin:0;"><img style="cursor:pointer;" src="'+datei+'" width='+groesse_x+' height='+groesse_y+' alt="Fenster schlie&szlig;en" title="Fenster schlie&szlig;en" onclick="window.close();" /></body></html>');
Fenster.focus();
}

