function processQuestionsAndAnswers()
{  
   var newQuestionAnswerDiv = document.getElementById("questionAnswerDiv");
   
   if(newQuestionAnswerDiv != null &&
      newQuestionAnswerDiv.childNodes.length > 0)
   {
      arrayOfQuestionTableRows = newQuestionAnswerDiv.childNodes.length;
            
      //The first child should be the table containing the rows of questions
      //
      numOfRowsInTable = newQuestionAnswerDiv.childNodes[0].rows.length;
      //arrayOfTableRows = document.all.questionAnswerDiv.children[1];
      
      //Loop through all of the rows in the table.
      //
      for(i=0;i<numOfRowsInTable;i++)
      {
        numOfCellsInRow = newQuestionAnswerDiv.childNodes[0].rows[i].cells.length;
        
        for(j=0;j<numOfCellsInRow;j++)
        {
          numOfCellChildren = newQuestionAnswerDiv.childNodes[0].rows[i].cells[j].childNodes.length;
          for(h=0;h<numOfCellChildren;h++)
          {
            if(newQuestionAnswerDiv.childNodes[0].rows[i].cells[j].childNodes[h].tagName != null &&
               newQuestionAnswerDiv.childNodes[0].rows[i].cells[j].childNodes[h].tagName == "LABEL")
            {
              questionText = newQuestionAnswerDiv.childNodes[0].rows[i].cells[j].childNodes[h].innerHTML;
              
              //Dynamically build input connection to input field using the htmlfor value of the question label.
              //
				  field = newQuestionAnswerDiv.childNodes[0].rows[i].cells[j].childNodes[h].htmlFor;
				  inputField = document.getElementById(field);
                            
              originalInputFieldName = inputField.name;
              
              inputField.name = "QUESTION" + "|" + questionText + "|" + inputField.value + "|" + inputField.type + "|" + inputField.id + "|" + originalInputFieldName;      
              
            }
          }
        }
      }
   }
}
