// This Secure window is used for the register logon.

function OpenWindowSecure(s) {
  //if ((screen.Height >= 0) && (screen.Width >= 0)) {
  //   var height = screen.Height - 75;
  //    var width = screen.Width - 10;
  //}
  //else if ((screen.availHeight >= 0) && (screen.availWidth >= 0)) {
  //    var height = screen.availHeight - 45;
  //    var width = screen.availWidth - 10;
  //}
  var width = 800;
  var height = 450
  s = "https://www.anz.com/INETBANK/" + s;
  newWin = window.open(s, "ANZWIN2", "toolbar=0,status=1,location=no,menubar=no,directories=no,scrollbars=yes,resizable=yes,screenX=0,screenY=0,left=0,top=0,width=" + width + ",height=" + height);
}

// This Secure window is used for the register logon.

function OpenWindowSession(s) {
  if ((screen.Height >= 0) && (screen.Width >= 0)) {
     var height = screen.Height - 75;
      var width = screen.Width - 10;
  }
  else if ((screen.availHeight >= 0) && (screen.availWidth >= 0)) {
      var height = screen.availHeight - 45;
      var width = screen.availWidth - 10;
  }
  s = "https://www.anz.com/INETBANK/" + s;
  newWin = window.open(s, "ANZLOGON_1", "toolbar=0,status=1,location=no,menubar=no,directories=no,scrollbars=yes,resizable=yes,screenX=0,screenY=0,left=0,top=0,width=" + width + ",height=" + height);
}

// This window function is used for external links.
function OpenToolWindow(s) {
  var URL = s	
  if (s.search(".htm") != -1)
  {
	URL = "/nz/inetbank/banklink/Popup.asp?" + "filename=" + s
  }
  newWin = window.open(URL,"ANZToolWin","toolbar=0,location=0,directories=0,status=yes,menubar=no,scrollbars=1,resizable=yes,width=600,height=550");
}
