function OpenIBWindow(s)
{
        var width = 750;
        var height = 500;
        var newWin1

        newWin1 = window.open(s, "ANZIBLOGON", "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);
}


function newWindow(popup,parent)
{
        openPopupWindow(popup,'locator',600,500,false)
        location.replace(parent)
}

function OpenToolWindow(s) {
  var URL = s	
  if (s.search(".htm") != -1)
  {
	URL = "/common/rightbar/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");
}

function OpenNewWindow(s, width, height) {
  if (width == undefined) width = 0;
  if (height == undefined) height = 0;
  if ((width <= 0) && (height <= 0))
  {
      width = 800;
      height = 450;
  }
  newWin = window.open(s, "ANZWIN2", "toolbar=yes,status=yes,location=yes,menubar=yes,directories=yes,scrollbars=yes,resizable=yes,screenX=0,screenY=0,left=0,top=0,width=" + width + ",height=" + height);
}

function OpenWindowSecure(s) {
  var width = 750;
   var height = 500;
  
  s = "https://www.anz.com/INETBANK/" + s;
  newWin = window.open(s, "ANZIBLOGON", "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);
}

function OpenWindow(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;
  }
     newWin = window.open(s, "ANZWIN2", "toolbar=0,status=1,location=no,menubar=no,directories=no,scrollbars=yes,resizable=yes,screenX=0,screen=0,left=0,top=0,width=" + width + ",height=" + height);
}

function OpenFAQWindow(s) {
  newWin = window.open(s,"ANZFAQWin","toolbar=0,location=0,directories=0,status=yes,menubar=no,scrollbars=1,resizable=no,width=380,height=302");
}

function ingConfirm(windowURL)
{
	var msg = "You are now leaving this web site for a separate site operated by ING Australia Limited. \n\nThe ANZ logo is placed on that site, however, ANZ does not provide the services, products, information or material made available on that separate site.  Any information you provide to that site is not controlled or protected by ANZ and is subject to any privacy policy and applicable terms and conditions of ING Australia Limited.  ANZ is not responsible or liable to you for any loss, damage or inconvenience you suffer as a result of you providing information to, or using, the ING Australia Limited web site. \n\nBy progressing to the ING Australia Limited site, you agree to the above terms. \n\nDo you wish to continue?";
	var windowName = 'ing'
	var windowOptions
	if (confirm(msg))
	{
		windowOptions = 'width=750,height=470, scrollbars=yes, toolbar=no, menubar=no, status=yes, resizable=yes';
	   	newWin = window.open(windowURL, windowName, windowOptions);
	}
	else return;
}
function OpenMoneyManager(s) {
	width = 940;
	height = 600;
    newWin = window.open(s, "ANZMM", "toolbar=yes,status=yes,location=yes,menubar=yes,directories=yes,scrollbars=yes,resizable=yes,screenX=0,screenY=0,left=0,top=0,width=" + width + ",height=" + height);
}
function OpenMoneyManagerDemo(s) {
	width = 950;
	height = 600;
    newWin = window.open(s, "ANZMM", "toolbar=no,status=1,location=no,menubar=no,directories=no,scrollbars=yes,resizable=yes,screenX=0,screenY=0,left=0,top=0,width=" + width + ",height=" + height);
}

function OpenSecureTPLogin(windowURL)
{
	var windowName="ANZSelfManagedSuper";
	windowOptions = 'width=750,height=470, scrollbars=yes, toolbar=no, menubar=no, status=yes, resizable=yes';
	newWin = window.open(windowURL, windowName, windowOptions);
}




