var ie = 0;
if ((navigator.userAgent.indexOf("Opera") < 0) && (navigator.userAgent.indexOf("MSIE") > 0)) { ie = 1;};
if (!ie) { document.write('');}
var activeProduct = 1;
var browser = 0;
if (document.all) { browser = 1;}
function check_bold() {
if ((document.account.old_password.value != '') || (document.account.password.value != '') || (document.account.password2.value != '')) {
if (document.getElementById('password_oud')) { password_oud.innerHTML = 'Oud wachtwoord';}
if (document.getElementById('password_1')) { password_1.innerHTML = 'Nieuw';}
if (document.getElementById('password_2')) { password_2.innerHTML = 'Nieuw (2x)';}
} else {
if (document.getElementById('password_oud')) { password_oud.innerHTML = 'Oud wachtwoord';}
if (document.getElementById('password_1')) { password_1.innerHTML = 'Nieuw';}
if (document.getElementById('password_2')) { password_2.innerHTML = 'Nieuw (2x)';}
}
}
function check_bold_rent() {
if (document.rent.beurs.checked) {
if (document.getElementById('span_stand')) { span_stand.innerHTML = 'Hal/standnummer';}
if (document.getElementById('span_mobiel')) { span_mobiel.innerHTML = 'Mobiel nummer';}
} else {
if (document.getElementById('span_stand')) { span_stand.innerHTML = 'Hal/standnummer';}
if (document.getElementById('span_mobiel')) { span_mobiel.innerHTML = 'Mobiel nummer';}
}
}
function submit_newsletter() {
if (document.nieuwsbrief.email.value != "") {
window.open('http://www.beamer.tv/cgi-bin/newsletter.cgi?email='+document.nieuwsbrief.email.value,'email','toolbar=no,menubar=no,scrollbars=auto,status=no,location=no,directories=no,width=250,height=135,resizable="0",resizable=no');
document.nieuwsbrief.email.value = "";
} else {
document.nieuwsbrief.email.focus();
}
return false;
}
function goto_favorites(e) {
location = 'http://www.beamer.tv/cgi-bin/shop.cgi?id=favorites';
e.cancelBubble = true;
return false;
}
function winkelwagen(e) {
window.open('http://1990500.mijnwinkel.nl/checkout/1-click-basket?pk='+hash[activeProduct-1]+'&product='+art_nr[activeProduct-1]+'&description='+prod_ww[activeProduct-1]+'&quantity=1&price='+price_ww[activeProduct-1]+'&vat=19.00','ww','toolbar=no,menubar=no,scrollbars=yes,status=no,location=no,directories=no,width=800,height=600,resizable="1",resizable=yes');
e.cancelBubble = true;
return false;
}
function winkelwagen_lamp(e) {
if (!document.lamp.lamp_id.value) {
alert('Selecteer eerst uw merk, type en lamp!');
e.cancelBubble = true;
return false;
}
window.open('http://1990500.mijnwinkel.nl/checkout/1-click-basket?pk='+document.lamp.lamp_hash.value+'&product='+document.lamp.lamp_id.value+'&description='+document.lamp.lamp_titel.value+'&quantity=1&price='+document.lamp.lamp_prijs.value+'&vat=19.00','ww','toolbar=no,menubar=no,scrollbars=yes,status=no,location=no,directories=no,width=800,height=600,resizable="1",resizable=yes');
e.cancelBubble = true;
return false;
}
function rent(e) {
location = 'http://www.beamer.tv/cgi-bin/shop.cgi?id=rent_calculation&p='+prod_id[activeProduct-1];
e.cancelBubble = true;
return false;
}
function delete_fav(e, request) {
vraag = confirm("Weet u zeker dat u "+prod_ww[activeProduct-1]+" wilt verwijderen?");
if (vraag == true) {
document.location = 'http://www.beamer.tv/cgi-bin/shop.cgi?id=favorites'+request+'&r='+prod_id[activeProduct-1];
}
e.cancelBubble = true;
return false;
}
function add_fav(e, request) {
document.location = request+"&a="+prod_id[activeProduct-1];
e.cancelBubble = true;
return false;
}
function show_winkelwagen() {
window.open('http://1990500.mijnwinkel.nl/checkout/basket','ww','toolbar=no,menubar=no,scrollbars=yes,status=no,location=no,directories=no,width=800,height=600,resizable="1",resizable=yes');
}
function popup_announcements() {
window.open('http://www.beamer.tv/cgi-bin/announcements.cgi','announcements','toolbar=no,menubar=no,scrollbars=yes,status=no,location=no,directories=no,width=556,height=556,resizable="0",resizable=no');
}
function highlight_blauw(welke) {
if (welke != activeProduct) {
document.getElementById('p'+welke).style.backgroundColor = '#E7EFF7';
document.foto.src = eval("i" + welke + ".src");
document.getElementById('description').innerHTML = descr[welke-1];
document.getElementById('p'+activeProduct).style.backgroundColor = 'white';
document.getElementById('p'+welke).style.backgroundImage = '';
activeProduct = welke;
}
}
function light_winkelwagen(welke,s) {
if (s) {
document.getElementById(welke).src = ww2.src;
} else {
document.getElementById(welke).src = ww1.src;
}
}
function light_delete(welke,s) {
if (s) {
document.getElementById(welke).src = del2.src;
} else {
document.getElementById(welke).src = del1.src;
}
}
function light_add(welke,s) {
if (s) {
document.getElementById(welke).src = add2.src;
} else {
document.getElementById(welke).src = add1.src;
}
}
function light_winkelwagen2(s,id) {
if (s) {
document.getElementById(id).src = ww2.src;
} else {
document.getElementById(id).src = ww1.src;
}
}
function light_huur(s,id) {
if (s) {
document.getElementById(id).src = hu2.src;
} else {
document.getElementById(id).src = hu1.src;
}
}
function light_pijl(s,id) {
if (s) {
document.getElementById(id).src = eval(id+"2").src;
} else {
document.getElementById(id).src = eval(id+"1").src;
}
}
function highlight_oranje(welke) {
document.getElementById(welke).style.color = "#FF9900";
}
function lowlight_oranje(welke, kleur) {
document.getElementById(welke).style.color = kleur;
}
function setradio(object) {
object.checked = true;
}
function setcheckbox(object) {
if (object.checked == false) {
object.checked = true;
}
else {
object.checked = false;
}
}