/**
 * Sets/unsets the pointer in browse mode
 *
 * @param   object   the table row
 * @param   object   the color to use for this row
 *
 * @return  boolean  whether pointer is set or not
 */
function setPointer(theRow, thePointerColor)
{
    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
    }

    return true;
} // end of the 'setPointer()' function



function openNewWindow(id, x, y)
{
  fenster="width="+x+",height="+y+",resizable=yes,menubar=yes,locationbar=no,scrollbars=yes,status=no";
  title="Print";
  window.open(id, title, fenster);
}

function Startseite()
{
    var Seite="http://www.plasticker.de";
    var Beschreibung="asphelper.de - ASPKurs, Fehlercodes, Tipps und mehr!";
    var browser=navigator.appName;
    var version=navigator.appVersion.substring(0,1);
    var ie = ((browser == "Microsoft Internet Explorer") && (version >= 4));

    var strText = "plasticker.de kann nur im Internet Explorer ";
    strText += "automatisch eingestellt werden, bitte richten ";
    strText += "Sie plasticker.de manuell als Startseite ein.";


    if (ie)
    {
        document.body.style.behavior="url(#default#homepage)";
        document.body.sethomepage(Seite);
    }
    else
    {
        alert(strText);
    }
}

