<!--
function new_window(theURL,winName,features,myWidth,myHeight,isCenter) {
  if(window.screen)if(isCenter)if(isCenter == 'true') {
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  popup = window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
  popup.resizeTo(myWidth, myHeight);
}

var regExpPict = /\.(gif|jpeg|jpg|png)$/i
function new_imagepopup(theURL,winName,altName,features,myWidth,myHeight,isCenter) {
	if (regExpPict.test(theURL)) {
		// Bildformate
		if(window.screen)if(isCenter)if(isCenter=="true") {
         	var myLeft = (screen.width-myWidth)/2;
			var myTop = (screen.height-myHeight)/2;
			features+=(features!='')?',':'';
			features+=',left='+myLeft+',top='+myTop;
        }
		imagepopup = window.open('','',features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
		with (imagepopup.document) {
		       	open();
			write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');
			write('<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">');
			write('<head><title>'+ winName + '</title>');
			write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />');
			write('<meta http-equiv="ImageToolbar" content="no" />');
			write('<style type="text/css"><!--')
			write('body,div{margin:0;padding:0;overflow:hidden;}img{border:0 none;margin:0;padding:0;}')
			write('--></style></head>')
			write('<body><div>')
			write('<a href="javascript:self.close()"><img src="'+theURL+'" border="0" alt="'+altName+'" title="'+altName+'"></a>')
			write('</div></body></html>');
			close();
	    }
	} else {
		// andere Dateiformate
		new_window(theURL,name,features,myWidth,myHeight,false);
	}
}

function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

var preloadFlag = false;
function preloadImages() {
  if (document.images) {
    for (var i=0; i<preloadImages.arguments.length; i++) {
      rslt = newImage(preloadImages.arguments[i]);
    }
    preloadFlag = true;
  }
}

function changeImages() {
  if (document.images && (preloadFlag == true)) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}
//-->