function openTravelWindow() 
{
   var url = unescape(location.host);
   if (url.substring(0,5)=="intg2"){
	url = "intg.hbf.web";
   }
   url = "https://"+url+"/OnlineTravelWeb/prepareQuote.do?newQuote";
   //url = "http://"+url+"/Insurance_Travel/Travel_Form_Unavailable.html";
   //alert("url: " + url);
   //var url = "/OnlineTravelWeb/prepareQuote.do?newQuote";
   var title = "TravelWin";
   var windowParams = 'left=0,top=0,screenX=0,screenY=0,toolbars=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=yes,menubar=no,copyhistory=no';
    if (window.screen) {
      var ah = (screen.availHeight - 50) * 3/4;
      var aw = (screen.availWidth - 10) * 3/4;
      windowParams += ",height=768";
      windowParams += ",innerHeight=768";
      windowParams += ",width=1024";
      windowParams += ",innerWidth=1024";
    }
	window.open(url, title, windowParams);
}

  function openWindow(url) {
	  	
    var str = "left=0,screenX=0,top=0,screenY=0,resizable=yes,status=yes,scrollbars=yes";

    if (window.screen) {
      var ah = (screen.availHeight - 50) * 3/4;
      var aw = (screen.availWidth - 10) * 3/4;
      str += ",height=768";
      str += ",innerHeight=768";
      str += ",width=1024";
      str += ",innerWidth=1024";
    }

	if (url.substring(0,5)=="/gios") {
		win=window.open("https://www.hbf.com.au"+url, "Policy", str)
		//win=window.open("http://www.hbf.com.au/Car/GIOS_Unavailable.html", "Policy", str)
	}
	else {
		win=window.open(url, "Policy", str)
	}

    win.focus();
  } 
