function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

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];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		images_04_over = newImage("images/images_04-over.gif");
		preloadFlag = true;
	}
}

function popUp(url,w,h) 
{
  var dim=eval
    ("'width='+w+',height='+h+',location=0,directories=0,menubar=0,scrollbars=0,status=0,locationbar=0,resizable=1,top=5,left=5'");
    Npop = window.open(url,"pop",dim);
}

function popUp2(url,titel,w,h,w2,h2,t,l,style,style2,bgcolor,format,format2,text,r,s,m,lo,st,lb,d) 
{
     var dim=eval
       ("'width='+w+',height='+h+',top='+t+',left='+l+',resizable='+r+',scrollbars='+s+',menubar='+m+',location='+lo+',status='+st+',locationbar='+lb+',directories='+d+''");     
     win = window.open(url,"Fenster",dim);
     win.document.open();
     win.document.write('<html><head><title>'+titel+'</title><link rel="stylesheet" href="'+style+'formate/script'+style2+'.css" type="text/css"></head>');
     win.document.write('<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" class="'+bgcolor+'" onBlur=self.close()>');
     win.document.write('<center><img src='+url+' width="'+w2+'" height="'+h2+'">');
     win.document.write('<center><img src="" height="19" width="0">');
     win.document.write('<span class="'+format2+'">'+text+'</span>');
     win.document.write('<a href=javascript:self.close() class="'+format+'">Schliessen</a>');
     win.document.write('</center></body></html>');
     win.document.close();
     if(win.focus != null)win.focus();
}

function popUp3(url,titel,w,h,w2,h2,t,l,style,style2,bgcolor,format,format2,text,r,s,m,lo,st,lb,d) 
{
     var dim=eval
       ("'width='+w+',height='+h+',top='+t+',left='+l+',resizable='+r+',scrollbars='+s+',menubar='+m+',location='+lo+',status='+st+',locationbar='+lb+',directories='+d+''");     
     win = window.open(url,"Fenster",dim);
     win.document.open();
     win.document.write('<html><head><title>'+titel+'</title><link rel="stylesheet" href="'+style+'formate/script'+style2+'.css" type="text/css"></head>');
     win.document.write('<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" class="'+bgcolor+'" onBlur=self.close()>');
     win.document.write('<center><img src='+url+' width="'+w2+'" height="'+h2+'">');
     win.document.write('<center><img src="" height="19" width="0">');
     win.document.write('<span class="'+format2+'">'+text+'</span>');
     win.document.write('<center><img src="" height="19" width="0">');
     win.document.write('<a href=javascript:self.close() class="'+format+'">Schliessen</a>');
     win.document.write('</center></body></html>');
     win.document.close();
     if(win.focus != null)win.focus();
}

function karte(url,w,h,t,l,r,s,m,lo,st,lb,d) 
{
     var dim=eval
       ("'width='+w+',height='+h+',top='+t+',left='+l+',resizable='+r+',scrollbars='+s+',menubar='+m+',location='+lo+',status='+st+',locationbar='+lb+',directories='+d+''");     
     newwindow = window.open(url,"Fenster",dim);
}