function viewImage (url, sdir) { window.open("/viewimage.php?image=" + url, null, "height=768,width=1024,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes"); } function check (cb, iv) { if (cb.checked) { document.form[iv].value = "1"; } else { document.form[iv].value = ""; } } function partnerClick (id) { var nl = id; var http_request = new Array(); if (window.XMLHttpRequest) { http_request[nl] = new XMLHttpRequest(); if (http_request[nl].overrideMimeType) { http_request[nl].overrideMimeType('text/xml'); } } else if (window.ActiveXObject) { try { http_request[nl] = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http_request[nl] = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } if (!http_request[nl]) return false; http_request[nl].open('GET', '/partner.click.php?id=' + id, true); http_request[nl].send(null); } function doForumPreview (action) { document.form.action = action; document.form.submit(); } var nl = 1; var http_request = new Array(); function procesQuickReply (topic_id) { if (topic_id == 0) alert ('Geen topic_id gedefineerd!'); else if (document.getElementById('message').value == "") alert ('Vul wel een bericht in ;)'); else { nl++; if (window.XMLHttpRequest) { http_request[nl] = new XMLHttpRequest(); if (http_request[nl].overrideMimeType) { http_request[nl].overrideMimeType('text/xml'); } } else if (window.ActiveXObject) { try { http_request[nl] = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http_request[nl] = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } if (!http_request[nl]) return false; http_request[nl].onreadystatechange = function() { placePost(nl); } http_request[nl].open('POST', '/forum.reply.php?topic_id=' + topic_id, true); http_request[nl].setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"); http_request[nl].send("message=" + escape(document.getElementById('message').value).replace (/\+/g, "%2B")); document.getElementById('message').value = ""; } } function placePost (nl) { if (http_request[nl].readyState == 4) { if (http_request[nl].status == 200) { document.getElementById("new_post").innerHTML += http_request[nl].responseText; } } } var item_max, item_form, item_target; function calcTotalPriceInit(max_itemid, form_id, target_id) { item_max = max_itemid; item_form = document.getElementById(form_id); item_target = document.getElementById(target_id); } function calcTotalPrice() { var itemid; for (var i = 0; i < item_form.mandatory.length; i++) { if (item_form.mandatory[i].checked) itemid = item_form.mandatory[i].value; } if (!itemid) itemid = item_form.mandatory.value; // only one item var manda_price = getPrice(itemid); var optional_price = 0; for (var i = 1; i <= item_max; i++) { if (item_form['lan_item_' + i]) { if (item_form['lan_item_' + i].checked) { optional_price += getPrice(i); } } } item_target.innerHTML = "€ " + (manda_price + optional_price); } function getPrice (iid) { return parseFloat(document.getElementById('price_' + iid).innerHTML); } function checkEmail() { var warning = document.getElementById('warning'); var value = document.getElementById('email'); if ((value.value.match('hotmail.')) || (value.value.match('live.'))) { warning.innerHTML = 'Waarschuwing: Momenteel is de kans groot dat activatiemails op Hotmail of Live adressen niet aankomen. Heb je een ander email adres van een andere e-maildienst tot je beschikking, vul die dan hier in.'; warning.style.display = 'block'; } else { warning.innerHTML = ''; warning.style.display = 'none'; } } function smilieClick(sml) { document.getElementById('forum_message').value += " " + sml; } function confirmPmUpdate(form) { var value = form.options[form.selectedIndex].value; if (value == "delete") { var c = confirm("You sure?"); if (c) form.form.submit(); else return false; } else { form.form.submit(); } } function selectAllCheckbox(container) { var el = container.getElementsByTagName('INPUT'); for (var i = 0; i < el.length; i++) { el[i].checked = !el[i].checked; } } function updatePmSeen() { nl++; if (window.XMLHttpRequest) { http_request[nl] = new XMLHttpRequest(); if (http_request[nl].overrideMimeType) { http_request[nl].overrideMimeType('text/xml'); } } else if (window.ActiveXObject) { try { http_request[nl] = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http_request[nl] = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } if (!http_request[nl]) return false; http_request[nl].open('GET', '/pm/seenit/', true); http_request[nl].send(null); document.getElementById('pm_notify').style.display = 'none'; } function showLangNotify(lng) { if (lng != 1) { document.getElementById('language_notify').style.display = 'block'; } } function hideLangNotify() { document.getElementById('language_notify').style.display = 'none'; }