// JavaScript Document
function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "externalRedirect")
     anchor.target = "_blank";
 }
}



//Loan Access

function doOpenLive()
{
   doOpen("https://www.lsn.com.au/scripts/cgiclnt.exe/LSN/ND000_?EWF_SYS_0=e95654f1-2565-11d4-8fa4-00b0d0302a92&EWF_FORM_NAME=0000076&EWF_BUTTON_Great_Southern_Loan_on_(08)_8211_8611=Submit");
}
 
function doOpenDemo() 
{
   doOpen("https://www.lsn.com.au/demo/Introduction.htm");
}
 
function doOpen(url) 
{
 
  var height;
  var width;
 
  if ((screen.Height >= 0) && (screen.Width >= 0) && (screen.Height <= 600) && (screen.Width <= 800)) {
     height = screen.Height - 75;
     width = screen.Width - 10;
  }
  else if ((screen.availHeight >= 0) && (screen.availWidth >= 0) && (screen.availHeight <= 600) && (screen.availWidth <= 800)) {
     height = screen.availHeight - 45;
     width = screen.availWidth - 10;
  }
  else {
     height = 600;
     width = 800;
  }
  
  newWin = window.open(url, "LSN", "toolbar=0,status=1,location=no,menubar=no,directories=no,scrollbars=yes,resizable=no,screenX=0,screenY=0,left=0,top=0,width=" + width + ",height=" + height);
}