////////////////////////////////////////////////////// question click counter
numQuestions=4;
var qStat =new Array();
var iStat = new Array();
for (i=1; i<=numQuestions; i++)
{
  qStat[i]="";
  iStat[i]="";
}
  
  function xGetElementById(e) {
    if(typeof(e)!='string') return e;
    if(document.getElementById) e=document.getElementById(e);
    else if(document.all) e=document.all[e];
    else e=null;
    return e;
  }
  
function SelectQuestion( img ) 
{
  if ( img.src.indexOf("numbers") >= 0 ) 
  {
    img.src = "images/box.gif";
    qStat[ img.getAttribute("alt") ] = "";
    iStat[ img.getAttribute("alt") ] = "";
    img.setAttribute("alt", "");
  }
  else 
  {
  for ( q = 1 ; q <= numQuestions; q++ )
  {
    if ( qStat[q] == "" ) 
    {
        img.src = "images/numbers/"+q+".gif";
        img.setAttribute("alt", q);
        qStat[q] = q;
        iStat[q] = img.id;
        break;
    }
  }
  
  var total="";
  for ( q = 1 ; q <= numQuestions; q++ )
  {
    if ( qStat[q] != "" ) 
        total = total + "<br />" + iStat[q];
      
  }
  xGetElementById("TopFourIssues").value = total;
  
  }
}