

/*function write()
{
document.writeln("<html><head><title></title><link rel="stylesheet" href="../css/print.css" type="text/css"><style type="text/css"></head>");
document.writeln("<body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000"><img src="images/p_top.GIF" width="435" height="65" border="0" alt=""><br>");
document.writeln("<table width="435" border="0" cellspacing="0" cellpadding="0" background="" bgcolor="#FFFFFF">");<tr valign=top><td align=left width=10><img src="images/clpix.gif" width="10" height="10" border="0" alt=""><br></td><td align=left width=415><span class="r10b">www.informatik.uni-bremen.de/agra</span><br>document.writeln("");
document.writeln("<span class="r10b">Homepage - <strong>Herzlich Willkommen</strong></span><br></td><td align=left width=10><img src="images/clpix.gif" width="10" height="10" border="0" alt=""><br></td></tr></table>");
document.writeln("<? include "c.index.inc.php"; ?>");
document.writeln("<img src="images/clpix.gif" width="100" height="30" border="0" alt=""><br><a href="javascript:window.print();" target="_top" title="Seiteninhalt drucken" onFocus=""><img src="images/clpix.gif" width="10" height="10" border="0" alt=""><img src="images/print_bu.gif" width="100" height="20" border="0" alt=""></a>");
document.writeln("</body></html>");
}
*/


/*var x;

function aufruf()
 {
   F = window.open(self.location.href,"Fenster1");
   F.blur();
 }

function uebergabe()
 {
   if (window.name == "Fenster1")
    {if (opener)
     {
      opener.x = self.document.forms.Name1.elements.Name2.value;
      opener.auswert();
      setTimeout("self.close()",200);
     }
     else
     {
     window.name = "yes";
     self.location.href = self.location.href;
     }
    }
 }

function auswert()
 {
   y = "<html><head><title>";
   y = y + document.title + "</title></head><body>";
   y = y + x;
   y = y + "</body></html>";
   document.write(y); document.close();
 }

function drucken()
{
  if (document.all)
   {
    y = "<html><head><title>";
    y = y + document.title+"</title></head><body>";
    y = y + document.all.druck.outerHTML;
    y = y + "</body></html>";
    return(y);
   }
  else  if (document.layers) aufruf();
}

*/

/*



function printElement (elementId) {
   var element;
   if (document.all)
     element = document.all[elementId];
   else if (document.getElementById)
     element = document.getElementById(elementId);
   if (element && element.outerHTML) {
     var printWin = window.open('', 'printWin','width=451,height=360,toolbar=no,status=no,directories=no,scrollbars=yes,location=center,resize=no,menubar=no');
     var html = '';
     html = '<html><head>';
     html += '<title>AG Rechnerarchitektur der Universität Bremen ' + elementId + '<\/title>';
     html += '<link rel="stylesheet" href="../css/agra.css" type="text/css">'
     html += '<\/head>';
     html += '<body>';
     html += element.outerHTML;
     printWin.document.open();
     printWin.document.write(html);
     printWin.document.close();
     printWin.focus();
     printWin.print();
   }
   else if (element && element.cloneNode) {
     var printWin = window.open('', 'printWin','width=451,height=360,scrollbars,resizable,menubar,toolbar');
     printWin.document.body.appendChild(element.cloneNode(true));
   }
}
*/
function which_browser()
{
    // welcher Browser wird benutzt ?
    var browser_0 = (document.layers) ? true : false;
    var browser_1 = (document.all)    ? true : false;
    var browser_2 = (document.getElementById) ? true : false;

    var my_agent = navigator.userAgent.toLowerCase();
    var my_client = 9; var my_chk_client = false;
    var my_bname = navigator.appName.toLowerCase();
    if ((my_agent.indexOf("opera")!=-1)&&(!my_chk_client))     { my_client = 2; my_chk_client = true; }
    if ((my_bname.indexOf("microsoft")!=-1)&&(!my_chk_client)) { my_client = 0; my_chk_client = true; }
    if ((my_bname.indexOf("netscape")!=-1)&&(!my_chk_client))  { my_client = 1; my_chk_client = true; }
    if ((my_agent.indexOf("hotjava")!=-1)&&(!my_chk_client))   { my_client = 3; my_chk_client = true; }
    if ((my_agent.indexOf("webtv")!=-1)&&(!my_chk_client))     { my_client = 4; my_chk_client = true; }
    if ((my_agent.indexOf("gecko")!=-1)&&(!my_chk_client))     { my_client = 5; my_chk_client = true; }
    if ((my_agent.indexOf("spoofer")!=-1)&&(!my_chk_client))   { my_client = 6; my_chk_client = true; }
    return (my_client);
}

function bookmark()
{
	my_client = which_browser();
	switch(my_client)
	{
	case 0:
		var thisSite = document.URL;
		var thisTitle = document.title;
		window.external.AddFavorite(thisSite,thisTitle);
		break;
	case 1:
		alert("Bitte drücken Sie auf Ihrer Tastatur STRG + D");
		break;
	default:
		alert("Leider unterstuetzt Ihr Browser diese Funktion nicht...");
		break;
	}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

