  function submitRating() {
    var objRating = $('selRating'); 
    var selIndex = objRating.selectedIndex;
    var strRating = objRating.options[selIndex].value;

    if(strRating == -1) {
      var msg = getMessage('ERROR_NO_RATING');
      alert(msg);
      return false;
    }
    return true;
  }


  function ProcessMessages() {
    var msgID = getArgs().msgID + '';
    if(msgID == '' || msgID == 'undefined') return;
    var msg = getMessage(msgID);
    if(msg) alert(msg);
  }


  function showAnswer(questionNo) {
    var obj = $('question_' + questionNo);
    obj.style.visibility = 'visible';
    obj.style.display = 'block';

    var obj = $('questionButton_' + questionNo);
    obj.style.visibility = 'hidden';
    obj.style.display = 'none';
  }


  function showAnswerPic() {
    var obj = $('answerPic');
    obj.style.visibility = 'visible';
    obj.style.display = 'block';

    var obj = $('questionButton');
    obj.style.visibility = 'hidden';
    obj.style.display = 'none';

    var obj = $('imageAnswer');
    obj.className = 'cssAnswerTxt';
  }


  function ShowCredits() {
    var strURL     = 'http://' + document.domain + '/Credits/?appName=Illusions_NL';
    var strWndName = 'Credits';
    var strAttrs   = 'width=250,height=320,status=no,scrollbars=no,toolbar=no,menubar=no,resizable=no';
    var credits    = window.open(strURL, strWndName, strAttrs);
    credits.focus();
  }


  function Go2Taalpuree() {
    var strURL     = 'http://' + document.domain + '/Taalpuree';
    var strWndName = 'Taalpuree';
    var strAttrs   = '';
    var credits    = window.open(strURL, strWndName, strAttrs);
  }
