/*******************************************************************************
____________________________ API DOCUMENTATION BEGIN ___________________________
````````````````````````````````````````````````````````````````````````````````
Local form function validation. Functions here were created for fields that need
validation that are not part of the default validation framework.

````````````````````````````````````````````````````````````````````````````````
_____________________________ API DOCUMENTATION END ____________________________
*******************************************************************************/

function isQuestionsAnswered() {
 var arrUnAnsweredQuestions = new Array();

 if(!globalIsQuestionAnswered("q1")) {arrUnAnsweredQuestions.push("1");}
 if(!globalIsQuestionAnswered("q2")) {arrUnAnsweredQuestions.push("2");}
 if(!globalIsQuestionAnswered("q3")) {arrUnAnsweredQuestions.push("3");}
 if(!globalIsQuestionAnswered("q4")) {arrUnAnsweredQuestions.push("4");}
 if(!globalIsQuestionAnswered("q5")) {arrUnAnsweredQuestions.push("5");}

 if(arrUnAnsweredQuestions.length > 0)
 {
  var strMessage = "";
  for(var k=0;k<arrUnAnsweredQuestions.length;k++)
  {
   strMessage += "Please answer question " + arrUnAnsweredQuestions[k] + ".\n";
  }
  alert(strMessage);
  return false;
 }
 else return true;
}

