function LPG(aff) { lpgwindow = window.open("/laagsteprijsgarantie.php" + aff, "laagsteprijsgarantie", "width=380,height=460,top=50,left=50,scrollbars=no,toolbar=no"); if (window.focus) { lpgwindow.focus(); } }
function MijnBoeking(nr,email) { if(nr == '' || email == '') { alert('Incorrecte gegevens ingevoerd.'); } else { MBwindow = window.open("/mijn_boeking/?Pnr=" + nr + "&Email=" + email, "laagsteprijsgarantie", "width=670,height=500,top=50,left=50,scrollbars=yes,toolbar=no"); if (window.focus) { MBwindow.focus(); } } }
function MyConfig() { MyConfWindow = window.open('/include/myconfiguration.php', 'MyConfig', 'width=500,height=460,top=50,left=50,scrollbars=no,toolbar=no'); if (window.focus) { MyConfWindow.focus(); } }
function popup(PopupUrlVars) { window.open('/tools/ImageViewer.php' + PopupUrlVars ,'','top=50,left=50,width=700,height=500,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no'); }
function popupMap(CID, Vars) { window.open("/tools/MapViewer.php?CID=" + CID + Vars ,'', "width=450,height=470,top=50,left=50,scrollbars=no,toolbar=no"); }
function priceCalculator(sDate, HOTEL_ID) { window.open("/tools/priceCalculator.php?sDate=" + sDate + "&sID=" + HOTEL_ID, "width=350,height=470,top=50,left=50,scrollbars=no,toolbar=no"); }
function BGC(Elm,Color,border) { if(border == 0) { Elm.className = Color; } else if(border != 2) { Elm.style.backgroundColor = Color; if(border == 1) { Elm.style.border = '1px SOLID #FFFFFF'; } else if(border == 3) { Elm.style.border = '1px SOLID #000000'; } else { Elm.style.border = '1px SOLID ' + Color; } } else { Elm.style.backgroundColor = Color; } }
function SearchBarCheck(Country) { document.SearchBar.action = '/vakanties/' + Country; }
function CloseDivs() { var divs = document.getElementsByTagName('div'); var count = divs.length - 1; for(i = count; i > 0; i--){ if(divs[i].id.match(/Pop/)) { divs[i].style.display = 'none'; } } }
function ShowDivLanden(ID) { CloseDivs(); if(document.getElementById('Pop' + ID)) { document.getElementById('Pop' + ID).style.display = 'block'; } }
function DLoc(Dlocat) { showpopup = 0; 	wasclicked = true; document.location = Dlocat; }
function ShowAfb (img,HID) { document.getElementById('Afbeelding_'+HID).src = img; document.getElementById('AfbeeldingDiv_'+HID).style.display = 'block'; }
function anvr_sgr_popup(aff) { var affQuery = ''; if(aff != '') { affQuery = '?aff=' + aff; } anvrwindow = window.open("/ANVR_SGR.php" + affQuery, "ANVR_SGR_informatie", "width=400,height=550,top=50,left=50,scrollbars=no,toolbar=no"); if (window.focus) { anvrwindow.focus(); } }
function swapZoekDiv() { if(document.getElementById('searchBar').style.display == 'block') { document.getElementById('searchBar').style.display = 'none'; document.getElementById('ZoekAfb').src = "/images/zoeken_off.gif"; } else { document.getElementById('searchBar').style.display = 'block'; document.getElementById('ZoekAfb').src = "/images/zoeken_on.gif"; } return false; }
function toonText() { if(document.getElementById('LandText').style.height == '138px') { document.getElementById('LandText').style.height = '100%'; document.getElementById('MoreInfoLink').innerHTML = '[ <a href="#" class="Breadcrums" onClick="toonText();">Sluiten</a> ]'; } else { document.getElementById('LandText').style.height = '138px'; document.getElementById('MoreInfoLink').innerHTML = '[ <a href="#" class="Breadcrums" onClick="toonText();">Lees meer...</a> ]'; } }
function MM_openBrWindow(theURL,winName,features) { window.open(theURL,winName,features); }
function EmailChecking(email, WhatToDo, Aff) {
	var str = email
	var filter = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if (filter.test(str)) {
		EmailCheckWindow = window.open('/nieuwsbrief/checking.php?email=' + email + '&Type=' + WhatToDo + '&aff=' + Aff, 'EmailCheck', 'width=300,height=300,top=50,left=50,scrollbars=no,toolbar=no');
		if (window.focus) { EmailCheckWindow.focus(); }
	} else {
		alert("U heeft een ongeldig e-mailadres ingevuld, controleer uw invoer!");
	}
}
