function externalURL() {
	var anchors = document.getElementsByTagName('a');
	for (var i = 0; i < anchors.length; i++ ) {
		var anchor = anchors[i];
		if ((anchor.className == 'externalURL')) {
			anchor.onclick = function() { window.open(this.href, '_blank'); return false; }
		}
	}
}

onloadEvents.push(function() { new externalURL(); })


function externalURLextra() {
	var anchors = document.getElementsByTagName('a');
	for (var i = 0; i < anchors.length; i++ ) {
		var anchor = anchors[i];
		if ((anchor.className == 'externalURLextra')) {
			anchor.onclick = function() { window.open(this.href, '_blank'); return false; }
		}
	}
}

onloadEvents.push(function() { new externalURLextra(); })


function externalURLextraColumnHomepage() {
	var anchors = document.getElementsByTagName('a');
	for (var i = 0; i < anchors.length; i++ ) {
		var anchor = anchors[i];
		if (anchor.parentNode.className == 'columnHomepage') {
			anchor.onclick = function() { window.open(this.href, '_blank'); return false; }
		}
	}
}

onloadEvents.push(function() { new externalURLextraColumnHomepage(); })


function externalURLextraProfil() {
	var anchors = document.getElementsByTagName('a');
	for (var i = 0; i < anchors.length; i++ ) {
		var anchor = anchors[i];
		if (anchor.parentNode.parentNode.className == 'twoRows') {
			anchor.onclick = function() { window.open(this.href, '_blank'); return false; }
		}
	}
}

onloadEvents.push(function() { new externalURLextraProfil(); })


function Funktionen() {
Fenster1()
Fenster2()
}

function OpenNewWindow(cPicture,nWidth,nHeight,nBorder) {
NewWindow=window.open("","NeuEins","HEIGHT="+nHeight+",WIDTH="+nWidth+",scrollbars=yes,resizable=yes,top=80,left=80");
NewWindow.document.write ("<HTML><HEAD><TITLE>");
NewWindow.document.write ("</TITLE></HEAD>");
NewWindow.document.write ("<BODY BGCOLOR='424242'>");
NewWindow.document.write ("<P ALIGN=CENTER>");
NewWindow.document.write ("<FONT FACE='Arial' SIZE='+2' COLOR='White'><B>");
NewWindow.document.write ("</B></FONT>");
NewWindow.document.write ("<IMG SRC=");
NewWindow.document.write (cPicture);
NewWindow.document.write (">");
NewWindow.document.write ("</P>");
NewWindow.document.write ("<center><FORM><INPUT TYPE='button' VALUE='Fenster zu' onClick='self.close()'>");
NewWindow.document.write ("</FORM></CENTER></BODY></HTML>");
NewWindow.document.write ("</BODY></HTML>");
NewWindow.document.close();
return false;
}

function na_change_img_src(name, nsdoc, rpath, preload) {
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  }
}

function na_preload_img() {
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null)
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length-1; i++) {
    document.preloadlist[top+i] = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  }
}

function na_restore_img_src(name, nsdoc) {
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  }
}

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable) {
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  cookie_str = document.cookie;
  cookie_str.toString();
  pos_start  = cookie_str.indexOf(name);
  pos_end    = cookie_str.indexOf('=', pos_start);
  cookie_name = cookie_str.substring(pos_start, pos_end);
  pos_start  = cookie_str.indexOf(name);
  pos_start  = cookie_str.indexOf('=', pos_start);
  pos_end    = cookie_str.indexOf(';', pos_start);
  if (pos_end <= 0) pos_end = cookie_str.length;
  cookie_val = cookie_str.substring(pos_start + 1, pos_end);
  if (cookie_name == name && cookie_val  == "done")
    return;
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
