function relatieEditorSelectAllOrNone(selectAllOrNoneToggle, namePrefix) { var f = selectAllOrNoneToggle.form; for (var i=0; i < f.elements.length; i++) { var box = f.elements[i]; if (box.checked != selectAllOrNoneToggle.checked) { if (box.name.substring(0, namePrefix.length) == namePrefix) { if (selectAllOrNoneToggle.checked) { box.checked = true; } else { box.checked = false; } } } } } function advancedSearchWorldRegionChange(f) { if (f.advancedfairsearchworldregion.value > 0) { var countriesStr = (eval('f.advancedfairsearchcountryoptions' + f.advancedfairsearchworldregion.value + '.value')); var countriesArray = new Array(); countriesArray = countriesStr.split('|'); f.advancedfairsearchcountry.options.length = 0; f.advancedfairsearchcity.options.length = 0; f.advancedfairsearchcountry.options[0] = new Option('', '-1'); f.advancedfairsearchcity.options[0] = new Option('', '-1'); f.advancedfairsearchcity.options[0] = new Option('', '-1'); } } function popup(imgUrl, imgWidth, imgHeight, popupTitle) { if (imgWidth == -1 && imgHeight == -1) { resizePopupToImage = 1; iw = 100; ih = 100; } else { resizePopupToImage = 0; iw = imgWidth; ih = imgHeight; } window.open('/script/imageInPopup.asp?imgUrl=' + escape(imgUrl) + '&popupTitle=' + escape(popupTitle) + '&resizePopupToImage=' + resizePopupToImage, 'imageWindow', 'width=' + iw + ',height=' + ih + ',scrollbars=no,location=no,status=no,menubar=no,directories=no,toolbar=no,resizable=no'); return; } function resizePopupToImage() { if (window.innerWidth) { iWidth = window.innerWidth; iHeight = window.innerHeight; } else { iWidth = document.body.clientWidth; iHeight = document.body.clientHeight; } iWidth = document.images[0].width - iWidth; iHeight = document.images[0].height - iHeight; window.resizeBy(iWidth, iHeight); }