var lastQuestionObject = -1
var pw = new PopupWindow();
pw.setSize(screen.width/2,screen.height/2);
pw.offsetX=0;
pw.setWindowProperties("toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable,alwaysRaised,dependent,titlebar=no");
function doPopup(questionNumber)
{
  if (lastQuestionObject != -1)
  {
    lastQuestionObject.className = ""
  }

  questionObject = document.getElementById("aQ"+questionNumber)
  answerObject   = document.getElementById("divA"+questionNumber)

  question = questionObject.innerHTML
  answer   = answerObject.innerHTML

  style = "<style>*{font-family:arial;font-size:16px;}td{padding-left:5px;padding-right:5px;vertical-align:top;}#tblAnswer td{padding-bottom:25px}p{margin-bottom:0}li{margin-bottom:10px}ul{margin-top:0}</style>"
  pw.populate(style+"<strong>"+questionNumber+". "+question+"</strong><br />"+answer)
  pw.showPopup("aQ"+questionNumber)

  questionObject.className = "aFaqQuestionCurrent"
  lastQuestionObject = questionObject
}


