//pop up window
function popupWindow(theURL, winName, width, height, center) {
  xposition = 0;
  yposition = 0;

  if ((parseInt(navigator.appVersion) >= 4 ) && (center)) {
    xposition = 0;
    yposition = 0;
  }
  features = "width=" + width + "," 
    + "height=" + height + "," 
    + "location=0," 
    + "menubar=0,"
    + "resizable=0,"
    + "scrollbars=0,"
    + "status=1," 
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only

  window.open(theURL, winName, features);
}

//pop up window
function popWindow(theURL, winName, width, height, center) {
  xposition = 0;
  yposition = 0;

  if ((parseInt(navigator.appVersion) >= 4 ) && (center)) {
    xposition = 0;
    yposition = 0;
  }
  features = "width=" + width + "," 
    + "height=" + height + "," 
    + "location=0," 
    + "menubar=0,"
    + "resizable=1,"
    + "scrollbars=1,"
    + "status=1," 
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only

  window.open(theURL, winName, features);
}

function courseWindow(theURL, winName, width, height, center) {
	//if (screen.width) {
	//window.resizeTo(710,420)
	//}
  //xposition = 0;
  //yposition = 0;

  if ((parseInt(navigator.appVersion) >= 4 ) && (center)) {
    xposition = 0;
    yposition = 0;
  }
  features = "width=" + width + "," 
    + "height=" + height + "," 
    + "location=0," 
    + "menubar=0,"
    + "resizable=0,"
    + "scrollbars=0,"
    + "status=0," 
    + "titlebar=1,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only

  window.open(theURL, winName, features);
}