// popup Fenster
var popped=false;
function go()
{
parent.head.location.href="../08_nav/head.htm";
document.smselection.submit();
}

// beginn des JavaScripts fuer PopupWindow
bversion =parseInt(navigator.appVersion);

if ((navigator.appName == "Netscape") && (bversion >= 3)) Okay="Yes";

        else if ((navigator.appName == "Microsoft Internet Explorer") && (bversion >= 4))  Okay="Yes";

                   else Okay="No";

function popup(source,breite,hoehe,scroll,name)
{

 if (scroll=="")
    var  scrollbars="yes";
	else
	var scrollbars="no";
 if (!popped)
    {
	     var params="toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width="+breite+",height="+hoehe;
		   fenster= eval("window.open('"+source+"','"+name+"','"+params+"')");

			popped=true;
	}
 else
  {
   if (!fenster.closed)
   fenster.focus();
  }
   if (fenster.closed)
   var params="toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width="+breite+",height="+hoehe;
		   fenster= eval("window.open('"+source+"','"+name+"','"+params+"')");
}

function isgoodEmail(email_string)
{
	// Email prüfen
	var goodEmail = email_string.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.biz)|(\.fam)|(\.info)|(\.name)|(\..{2,2}))$)\b/gi);

	if (goodEmail)
		return true;
	else
		return false;

	 //
}

var markedRow = new Array();
/**
 * Sets/unsets the pointer in browse mode
 *
 * @param   object   the table row
 * @param   object   the color to use for this row
 * @param   object   the background color
 *
 * @return  boolean  whether pointer is set or not
 */
function setPointer(theRow, thePointerColor, theNormalBgColor)
{
    var theCells = null;

    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    var currentColor = null;
    var newColor     = null;
    // Opera does not return valid values with "getAttribute"
    /*
    if (typeof(window.opera) == 'undefined'
        && typeof(theCells[0].getAttribute) != 'undefined' && typeof(theCells[0].getAttribute) != 'undefined') {
        currentColor = theCells[0].getAttribute('bgcolor');
        newColor     = (currentColor.toLowerCase() == thePointerColor.toLowerCase())
                     ? theNormalBgColor
                     : thePointerColor;
        for (var c = 0; c < rowCellsCnt; c++) {
            theCells[c].setAttribute('bgcolor', newColor, 0);
        } // end for
    }
    else {
    */
        currentColor = theCells[0].style.backgroundColor;
        newColor     = (currentColor.toLowerCase() == thePointerColor.toLowerCase())
                     ? theNormalBgColor
                     : thePointerColor;
        for (var c = 0; c < rowCellsCnt; c++) {
            theCells[c].style.backgroundColor = newColor;
        }
    //}

    return true;
} // end of the 'setPointer()' function

//Info für Infobutten

function showInfo( name ){

	document.getElementById(name).style.display = "block";

}

function hideInfo( name ) {
	
	document.getElementById(name).style.display = "none";
	
}
