// Topic 1-6 are numbered 0-5 below.
var details=new Array();
details[0] = "1070 Write-Up"
details[1] = "1060 Write-Up"
details[2] = "AB-2296 : The ABC Reform Bill (write-up)"
details[3] = "Youth Entertainment Crisis write-up"
details[4] = "Promoter Permit write-up"
details[5] = "Write-up about the ban of signs on utility poles"
details[6] = "Introduction:\nClick the radio buttons on the left to review the respective topics!"

function topica() {
 if (document.texter.point[0].checked) { document.texter.text.value=details[0]; }
 if (document.texter.point[1].checked) { document.texter.text.value=details[1]; }
 if (document.texter.point[2].checked) { document.texter.text.value=details[2]; }
 if (document.texter.point[3].checked) { document.texter.text.value=details[3]; }
 if (document.texter.point[4].checked) { document.texter.text.value=details[4]; }
 if (document.texter.point[5].checked) { document.texter.text.value=details[5]; }
 }

// Multiple onload function created by: Simon Willison
// http://simonwillison.net/2004/May/26/addLoadEvent/
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function() {
  document.texter.text.value=details[6];
});

