function sourceEdit()  // false - disallow right mouse click to edit source
  {  return false; }

var linkWindow = null;
function gotoURL(goHere)
  { 
    Name = new Array;        URL = new Array;  // Link name and URL pair
    Name [0] = "BbLogin";    URL [0] = "http://pgcconline.blackboard.com";
    Name [1] = "Assess";     URL [1] = "http://www.pgcconline.com";
    Name [2] = "BookStore";  URL [2] = "http://www.pgccbookstore.com";
    Name [3] = "Library";    URL [3] = "http://www.pgcc.edu/library/index.htm";
    Name [4] = "PGCC";       URL [4] = "http://www.pgcc.edu";
    
    for (i = 0; i < Name.length; ++i)
    { if (goHere == Name [i])
      {  
         newURL = URL [i];  // set up the URL
         linkWindow = window.open(newURL,goHere);
         linkWindow.focus();
         break;
      }
    }
  }

function gotoCourse(content, courseID)
  { var courseWindow = null;
    courseWindow = window.open(content,courseID,
                   "scrollbars=1,resizable=1,width="+(screen.width - 12)+",height="+(screen.height - 60)+",left=0,top=0");
    courseWindow.focus();
  }

function gotoFullWindow(content, courseID)
  { var fullWindow = null;
    fullWindow = window.open(content,courseID,               "menubar=0,toolbar=1,location=0,scrollbars=1,resizable=1,width="+(screen.width - 12)+",height="+(screen.height - 60)+",left=0,top=0");
    fullWindow.focus();
  }


function gotoPPWindow(content, courseID)
  { var PowerPointWindow = null;
    PowerPointWindow = window.open(content,courseID,"menubar=0,toolbar=1,location=0,scrollbars=1,resizable=1,width="+(screen.width - 12)+",height="+(screen.height - 100)+",left=0,top=0");
    PowerPointWindow.focus();
  }

function toggleMenu(currDisplay, loadHref)  //* toggle the .Display to display=none/block
  {  if (document.getElementById)  //* browser understands w3c dom
       {  thisDisplay = document.getElementById(currDisplay).style
          if (thisDisplay.display == "block")  
            {  thisDisplay.display = "none"  }  // toggle .Display between block/none
          else
            {  thisDisplay.display = "block"  }
          return loadHref   // return false to trick the browser not to load the href=page
       }
     else {  return true  }
  }

function showAnswer(currAnswer, currCourse)  //* toggle the .Display to display=none/block
  {  if (document.getElementById)  //* browser understands w3c dom
       {  thisDisplay = document.getElementById(currAnswer).style
          if (currCourse == "CIS-231") 
             { thisDisplay.display = "block";
               return true;
             }
          thisDisplay.display = "none";
          return false;
       }
  }

function orderCD(cdName)
  {  if (cdName == null) return false;
     leftPos = 0 // upper left position
     if (screen)
     {	leftPos = screen.width - 300;	
     }
     alert(cdName);
     cdPrice = "$20.00";
     alert(cdPrice);
     if (cdName == "HTML") 
        { cdPrice = "$20.00"; alert("1") }
     else
        if (cdName == "JavaScript") 
           { cdPrice = "$20.00"; alert("2") } 
     else
        if (cdName == "HTMLJava") 
           { cdPrice = "$30.00"; alert("3") };
     alert("here2" + cdPrice);
     closeCD(); 
     alert("after close");
     open("", "CDWindow", "toolbar,resizable=yes,scrollbars=yes,width=280,height=200,left="+leftPos+",top=0");
     cdWindow.document.write("<font color='red'><b>Your CD SN will be your SSN</b></font><br><br>");
/*     cdWindow.document.write("Send a check for " + cdPrice + " with your mailing address,<br>");
     cdWindow.document.write("phone number and send it attention to:<br>");  */
     cdWindow.document.write("Trang D. Nguyen, Marlboro 2011<br>");
     cdWindow.document.write("Prince George's Community College<br>");
     cdWindow.document.write("301 Largo Road<br>");
     cdWindow.document.write("Largo, Maryland 20774-2199<br><br>");
     cdWindow.document.write("<a href='JavaScript:self.close()'><b>Click here to close this window.</b></a>");
     cdWindow.document.bgColor = "#CCFFFF";
     alert("where is the window");
  }       
function closeCD()
  {  if (cdWindow && !cdWindow.closed) {cdWindow.close()} 
  }