function selectCounties(way) { var counties = new Array('0', '1', '2', '3', '5', '6', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20'); for(var i=0; i < counties.length; i++){ document.getElementById('search-location-' + counties[i]).checked = way; } } // {{{ function selectBoxGo() function selectBoxGo(box) { destination = box.options[box.selectedIndex].value; if (destination) { location.href = destination; } } // }}} // {{{ function popupImage() function popupImage(url, width, height) { new_window = window.open(url, 'name', 'width=' + width + ',height=' + height + ',toolbar=no,scrollbars=no'); if (window.focus) { new_window.focus(); } return false; } // }}} // {{{ function popupWindow() function popupWindow(url, width, height) { leftPos = (screen.width) ? (screen.width - width) / 2 : 0; topPos = (screen.height) ? (screen.height - height) / 3 : 0; new_window = window.open(url, 'name', 'width=' + width + ',height=' + height + ',top=' + topPos + ',left=' + leftPos + ',toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes'); if (window.focus) { new_window.focus(); } return false; } // }}} // {{{ function popupWindow() function popupPlainWindow(url, width, height) { leftPos = (screen.width) ? (screen.width - width) / 2 : 0; topPos = (screen.height) ? (screen.height - height) / 3 : 0; new_window = window.open(url, 'name', 'width=' + width + ',height=' + height + ',top=' + topPos + ',left=' + leftPos + ',toolbar=no,menubar=no,scrollbars=no,resizable=no'); if (window.focus) { new_window.focus(); } return false; } // }}} // {{{ function submitProtect() function submitProtect(submit_button, inprogress_input) { if (inprogress_input.value == "") { submit_button.value = "Várjon..."; inprogress_input.value = "w8"; return true; } else { return false; } } // }}} function showRequestOfferBanner( item ) { popupPlainWindow('requestOfferPopup.php', '640', '480'); }