
function empfehlen(mySession, projektID)
     {
     if((mySession != "") && (projektID != 0))
        {
        breite = screen.width;
        hoehe = screen.height;
        b = 480;
        h = 400;
        myurl = "templates/" + projektID + "/content/artikel_empfehlen.php?PHPSESSID=" + mySession;
        props = "toolbar=0,location=0,status=0,menubar=0,scrollbars=0 ";
        props += ",resizable=0,width="+b+",height="+h;
        empfehlenFenster = window.open(myurl,"empfehlen",props);
        xx = (breite/2)-(b/2);
        yy = (hoehe/2)-(h/2);
        empfehlenFenster.moveTo(xx,yy);
        empfehlenFenster.focus();
        }
     }

function bewerten(mySession, projektID)
     {
     if((mySession != "") && (projektID != 0))
        {
        breite = screen.width;
        hoehe = screen.height;
        b = 400;
        h = 320;
        myurl = "templates/" + projektID + "/content/artikel_bewerten.php?PHPSESSID=" + mySession;
        props = "toolbar=0,location=0,status=0,menubar=0,scrollbars=0 ";
        props += ",resizable=0,width="+b+",height="+h;
        bewertenFenster = window.open(myurl,"bewerten",props);
        xx = (breite/2)-(b/2);
        yy = (hoehe/2)-(h/2);
        bewertenFenster.moveTo(xx,yy);
        bewertenFenster.focus();
        }
     }

function drucken(mySession, projektID)
     {
     if((mySession != "") && (projektID != 0))
        {
        breite = screen.width;
        hoehe = screen.height;
        b = 600;
        h = 700;
        myurl = "module/druckvorschau/?PHPSESSID=" + mySession;

        props = "toolbar=0,location=0,status=0,menubar=0,scrollbars=1 ";
        props += ",resizable=0,width="+b+",height="+h;
        myFenster = window.open(myurl,"fenster",props);
        xx = (breite/2)-(b/2);
        yy = (hoehe/2)-(h/2);
        myFenster.moveTo(xx,yy);
        myFenster.focus();
        }
     }

function showModul(mySession, projektID, contentID, strModul)
     {
     if((mySession == "") && (sessID != "")) mySession = sessID;
     if((mySession != "") && (projektID != 0))
        {
        breite = screen.width;
        hoehe = screen.height;
        b = 600;
        h = 700;
        myurl = "/content/module/" + strModul + "/?PHPSESSID=" + mySession;
        myurl += "&showID=" + contentID;

        props = "toolbar=0,location=0,status=0,menubar=0,scrollbars=1 ";
        props += ",resizable=0,width="+b+",height="+h;
        myFenster = window.open(myurl,"fenster",props);
        xx = (breite/2)-(b/2);
        yy = (hoehe/2)-(h/2);
        myFenster.moveTo(xx,yy);
        myFenster.focus();
        }
     }


popUpStatus = new Array();
function popUp(what)
    {
    if(popUpStatus[what])
       {
       popUpStatus[what] = false;
       document.getElementById(what).style.visibility = 'hidden';
       document.getElementById(what).style.top = '-250px';
       }
       else
           {
           popUpStatus[what] = true;
           document.getElementById(what).style.visibility = 'visible';
           document.getElementById(what).style.top = '100px';
           for(i in popUpStatus)
              {
              if(i != what)
                 {
                 popUpStatus[i] = false;
                 document.getElementById(i).style.visibility = 'hidden';
                 document.getElementById(i).style.top = '-250px';
                 }
              }
           }
    }