function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function openfab() {
	var winleft;
	var wintop;
	var winheight;
	var winwidth=650;
	winleft=(screen.width - winwidth)/2;
	winheight=460; // default bij 800x600.
	wintop=1;
	if (screen.width>=1024 && screen.height>=768) {
		winheight=580;
		wintop=(screen.height - winheight)/2 - 70;
		if (screen.width>=1152 && screen.height>=864) {
			winheight=670;
			wintop=(screen.height - winheight)/2 - 70;
			if (screen.width>=1200 && screen.height>=1024) {
				winheight=760;
				wintop=(screen.height - winheight)/2 - 70;
			}
		}
	}
	fabwin=window.open("https://www2.axa.nl/fab/FAB0.aspx?intermediair=15619000&toonintermediair=N","FAB","scrollbars=1,status=1,toolbar=1,menubar=0,width="+winwidth+",height="+winheight+",top="+wintop+",left="+winleft);
	if (fabwin!=null && fabwin.opener==null) { 
		fabwin.opener=self;
	}
	fabwin.focus();
}

function tohex(str) {
strTemp='';
for (i=0;i<str.length;i++) {
	strTemp=strTemp + '%' + str.charCodeAt(i).toString(16);
}
return(strTemp);
}

function openPDF(src, titel) {
openWindow('http://www.axa.nl/algemeen/pdfview.cfm?src=' + src, tohex(titel));
}

function openWindow(url, titel) {
win=window.open(url + '&titel=' + titel, "PDFViewer", "scrollbars=1,width=640,height=480,resizable=1");
if (win != null && win.opener == null) {
	win.opener=self;
}
win.focus();
}
