function bookmark_site(pagename)
// works for IE, FireFox, Netscape
// Although mentioned, Opera does not really like it here...
{

	/*
	Comments:
	NS 7.1 - works only after 2nd click ("Add Tab to Sidebar") - both ikk & mmcsandbox
	IE 6.0 - works as expected ("Add to favorites") - both ikk & mmcsandbox
	MZ 1.6 - works only after 2nd click ("Add Tab to Sidebar") for the first time, then normal  - both ikk & mmcsandbox
	FF 0.8 - works as expected ("Add Bookmark") - both ikk & mmcsandbox
	FF 1.0 - works as expected in mmcsandbox ("Lesezeichen hinzufügen"), does not work in ikk
	OP 7.23 - does not work at all
	OP 8.0 - does not work at all
	*/
	var pagename = "IKK-Direkt - " + pagename;
	var url = location.href;
	if (window.sidebar) { 
		window.sidebar.addPanel(pagename, url,""); 
	} 
	else if( document.all && !window.opera ) { 
		window.external.AddFavorite( url, pagename); 
	} 
	else if( window.opera && window.print ) { 
		return true; 
	} 
} 

function openWin(myWin, breite, hoehe){
	fenster = open(myWin, "displayWindow", "scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,width="+breite+",height="+hoehe);
	fenster.focus();
}

function openChat(myWin, breite, hoehe){
	fenster = open(myWin, "ikkchat", "resizable=yes,menubar=no,locationbar=no,hotkeys=no,status=no,scrollbars=no,width="+breite+",height="+hoehe);
	fenster.focus();
}

function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=800,height=556,left = 176,top = 154');");
}

// provide accessible and valid popups

var externerLinkText = "Externer Link";
var textNeuesFenster = "(neues Fenster)";
function titleAnpassen(linkObjekt) {
  if (linkObjekt.getAttribute) {
    textAlt = linkObjekt.getAttribute("title");
    if(textAlt && textAlt.indexOf(textNeuesFenster) == -1) {
      textZusatz = textAlt.substring((textAlt.indexOf(externerLinkText)) + externerLinkText.length, textAlt.length);
      linkObjekt.setAttribute("title", externerLinkText + " " + textNeuesFenster + textZusatz);
    }
  }
}