﻿/* Disclaimer functions */
 
function onAccept(winURL) {
        if (true === true) {
            checkTandC(winURL);
        } else if (winUrl == '') {
             parent.lightboxx('toolBoxParent','self'); //window.close();
        } else { // parsed URL or PDF
            loadWin = window.open(winURL);
            parent.lightboxx('toolBoxParent','self'); //window.close();
        }
}
 
function checkTandC(winURL) {
 if (document.forms[0].accept.checked === true) {
  if (document.forms[0].aust.checked === true) {
    loadWin = window.open(winURL);
    parent.lightboxx('toolBoxParent','self'); //window.close();
  } else {
   alert("Applications and electronic copies of prospectuses are only available through this website to persons in Australia.\n\nIf you are an Australian resident, please accept both checkboxes to continue.");
}
 } else {
  alert("Please accept the terms and conditions to continue.");
 }
}
 
