var HOSTNAME="vindallekleding.nl";function reloadOpener()
{if(window.opener)
window.opener.location.reload();}
function URLEncode(clearString)
{var output='';var x=0;clearString=clearString.toString();var regex=/(^[a-zA-Z0-9_.]*)/;while(x<clearString.length)
{var match=regex.exec(clearString.substr(x));if(match!=null&&match.length>1&&match[1]!='')
{output+=match[1];x+=match[1].length;}
else
{if(clearString[x]==' ')
output+='+';else
{var charCode=clearString.charCodeAt(x);var hexVal=charCode.toString(16);output+='%'+(hexVal.length<2?'0':'')+hexVal.toUpperCase();}
x++;}}
return output;}
function URLDecode(encodedString)
{var output=encodedString;var binVal,thisString;var myregexp=/(%[^%]{2})/;while((match=myregexp.exec(output))!=null&&match.length>1&&match[1]!='')
{binVal=parseInt(match[1].substr(1),16);thisString=String.fromCharCode(binVal);output=output.replace(match[1],thisString);}
return output;}
function GetXmlHttpObject()
{var xmlHttp=null;try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}
return xmlHttp;}
function registerValidate()
{xmlHttp=GetXmlHttpObject();var formulier=document.vindallekleding_registratieformulier;var url="/ajax.php";var vals="request=registerValidate";vals+="&naam="+formulier.registratie_naam.value;vals+="&email1="+formulier.registratie_email.value;var name=document.getElementById('registratie_naam').value;var email=document.getElementById('registratie_email').value;var remember=document.getElementById('vindallekleding_login_wachtwoord_onthouden').checked;if(formulier.vindallekleding_registreren_av.checked)
vals+="&akkoord=Ja";else
vals+="&akkoord=Nee";vals+="&wachtwoord1="+formulier.registratie_wachtwoord.value;vals+="&wachtwoord2="+formulier.registratie_wachtwoord_controle.value;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{var fouten=xmlHttp.responseText.split("$$");if(fouten[0]!="redirect")
{document.getElementById('vindallekleding_registratieformulier').normalize();if(document.getElementById('vindallekleding_registratieformulier').firstChild.nodeName=="DIV")
{document.getElementById('vindallekleding_registratieformulier').removeChild(document.getElementById('vindallekleding_registratieformulier').firstChild);}
document.getElementById('vindallekleding_registratieformulier').innerHTML=fouten[1]+document.getElementById('vindallekleding_registratieformulier').innerHTML;document.getElementById('registratie_email').value=email;document.getElementById('registratie_naam').value=name;document.getElementById('vindallekleding_login_wachtwoord_onthouden').checked=remember;}
else
{location.href=fouten[1];}}};xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function loginValidate(_url)
{xmlHttp=GetXmlHttpObject();var formulier=document.vindallekleding_registratieformulier;var url="/ajax.php";if(!!_url)url+=('?url='+_url);var email=formulier.registratie_email.value;var password=formulier.registratie_wachtwoord.value;var vals="request=loginValidate";vals+="&email="+formulier.registratie_email.value;vals+="&wachtwoord="+formulier.registratie_wachtwoord.value;if(formulier.vindallekleding_login_wachtwoord_onthouden.checked==true)
vals+="&remember=1";else
vals+="&remember=0";if(formulier.vindallekleding_login_automatisch_inloggen.checked==true)
vals+="&autologin=1";else
vals+="&autologin=0";xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{var fouten=xmlHttp.responseText.split("$$");document.getElementById('wrapper_errors').innerHTML="";if(fouten[0]!="redirect")
{document.getElementById('vindallekleding_registratieformulier').normalize();if(document.getElementById('vindallekleding_registratieformulier').firstChild.nodeName=="DIV")
{document.getElementById('vindallekleding_registratieformulier').removeChild(document.getElementById('vindallekleding_registratieformulier').firstChild);}
document.getElementById('vindallekleding_registratieformulier').innerHTML=fouten[1]+document.getElementById('vindallekleding_registratieformulier').innerHTML;document.getElementById('registratie_email').value=email;}
else
{location.href=fouten[1];}}};xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function newRegisterMail(hash)
{xmlHttp=GetXmlHttpObject();var formulier=document.vindallekleding_registratieformulier;var url="/ajax.php";var vals="request=newRegisterMail";vals+="&hash="+hash;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{document.getElementById('wrapper_errors').innerHTML=xmlHttp.responseText;thinBox(document.getElementById('success'));}};xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function uitloggen()
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=uitloggen";xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{window.location.href="http://"+HOSTNAME+"";}};xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function newpassValidate()
{xmlHttp=GetXmlHttpObject();var formulier=document.vindallekleding_wachtwoordkwijt;var url="/ajax.php";var username=document.getElementById('registratie_naam').value;var email=document.getElementById('registratie_email').value;var vals="request=newpassValidate";vals+="&email="+document.vindallekleding_wachtwoordkwijt.registratie_email.value;vals+="&naam="+document.vindallekleding_wachtwoordkwijt.registratie_naam.value;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{var fouten=xmlHttp.responseText;var fouten=xmlHttp.responseText.split("$$");if(fouten[0]!="redirect")
{document.getElementById('vindallekleding_wachtwoordkwijt').normalize();if(document.getElementById('vindallekleding_wachtwoordkwijt').firstChild.nodeName=="DIV")
{document.getElementById('vindallekleding_wachtwoordkwijt').removeChild(document.getElementById('vindallekleding_wachtwoordkwijt').firstChild);}
document.getElementById('vindallekleding_wachtwoordkwijt').innerHTML=fouten[1]+document.getElementById('vindallekleding_wachtwoordkwijt').innerHTML;document.getElementById('registratie_naam').value=username;document.getElementById('registratie_email').value=email;}
else
{thinBox(document.getElementById('success'));}}};xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function newconfirmValidate()
{xmlHttp=GetXmlHttpObject();var formulier=document.vindallekleding_registratieformulier;var url="/ajax.php";var vals="request=newbevestigingValidate";var name=document.getElementById('registratie_naam').value;var email=document.getElementById('registratie_email').value;vals+="&wachtwoord="+document.vindallekleding_registratieformulier.registratie_wachtwoord.value;vals+="&email="+document.vindallekleding_registratieformulier.registratie_email.value;vals+="&naam="+document.vindallekleding_registratieformulier.registratie_naam.value;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{var fouten=xmlHttp.responseText;document.getElementById('formbody').normalize();if(document.getElementById('formbody').firstChild.nodeName=="DIV")
{document.getElementById('formbody').removeChild(document.getElementById('formbody').firstChild);}
document.getElementById('formbody').innerHTML=fouten+document.getElementById('formbody').innerHTML;document.getElementById('registratie_email').value=email;document.getElementById('registratie_naam').value=name;}};xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function gegevensValidate()
{xmlHttp=GetXmlHttpObject();var formulier=document.profiel_gegevens_form;var url="/ajax.php";var vals="request=gegevensValidate";vals+="&voornaam="+formulier.pers_profiel_voornaam.value;vals+="&tussenvoegsel="+formulier.pers_profiel_tussenvoegsel.value;vals+="&achternaam="+formulier.pers_profiel_achternaam.value;vals+="&email="+formulier.pers_profiel_emailadres.value;if(document.getElementById('newsletterY').checked)
vals+="&nieuwsbrief=1";else if(document.getElementById('newsletterN').checked)
vals+="&nieuwsbrief=0";else
vals+="&nieuwsbrief=undefined";xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{var fouten=xmlHttp.responseText;document.getElementById('profiel_gegevens_form').normalize();document.getElementById('wrapper_errors2').innerHTML="";document.getElementById('wrapper_errors').innerHTML=fouten;}};xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function wachtwoordValidate()
{xmlHttp=GetXmlHttpObject();var formulier=document.wachtwoord_form;var url="/ajax.php";var vals="request=wachtwoordValidate";vals+="&oldpass="+formulier.old_pass.value;vals+="&newpass="+formulier.new_pass.value;vals+="&newpassrepeat="+formulier.new_pass_repeat.value;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{var fouten=xmlHttp.responseText;document.getElementById('wachtwoord_form').normalize();document.getElementById('wrapper_errors').innerHTML="";document.getElementById('wrapper_errors2').innerHTML=fouten;formulier.old_pass.value="";formulier.new_pass.value="";formulier.new_pass_repeat.value="";}};xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function profielValidate()
{xmlHttp=GetXmlHttpObject();var formulier=document.profiel_form;var url="/ajax.php";var vals="request=profielValidate";vals+="&geslacht="+formulier.pers_profiel_geslacht.options[formulier.pers_profiel_geslacht.options.selectedIndex].value;vals+="&postcode="+formulier.pers_profiel_postcode.value;vals+="&woonplaats="+formulier.pers_profiel_woonplaats.value;vals+="&dag="+formulier.dag.value;vals+="&maand="+formulier.maand.value;vals+="&jaar="+formulier.jaar.value;vals+="&telnummer="+formulier.pers_profiel_telefoonnummer.value;vals+="&omschrijving="+formulier.pers_profiel_omschrijving.value;vals+="&tussenvoegsel="+formulier.pers_profiel_tussenvoegsel.value;vals+="&voornaam="+formulier.pers_profiel_voornaam.value;vals+="&achternaam="+formulier.pers_profiel_achternaam.value;if(document.getElementById('tonenY').checked)
vals+="&tonen=1";else if(document.getElementById('tonenN').checked)
vals+="&tonen=0";else
vals+="&tonen=undefined";document.getElementById('communities').normalize();for(i=0;i<document.getElementById('communities').childNodes.length;i++)
{if(document.getElementById('communities').childNodes[i].nodeType==1)
{name=document.getElementById('communities').childNodes[i].attributes["for"].value.slice(13);vals+="&"+name+"="+document.getElementById('pers_profiel_'+name).value;}}
xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{var fouten=xmlHttp.responseText;document.getElementById('profiel_form').normalize();document.getElementById('wrapper_errors').innerHTML=fouten;}};xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function voorkeurenValidate()
{xmlHttp=GetXmlHttpObject();var formulier=document.voorkeuren_form;var url="/ajax.php";var vals="request=voorkeurenValidate";vals+="&favmerk="+formulier.favmerk.options[formulier.favmerk.options.selectedIndex].value;vals+="&blockmerk="+formulier.blockmerk.options[formulier.blockmerk.options.selectedIndex].value;vals+="&searchDisplay="+formulier.searchDisplay.options[formulier.searchDisplay.options.selectedIndex].value;vals+="&pagesNumber="+formulier.pagesNumber.options[formulier.pagesNumber.options.selectedIndex].value;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{document.getElementById('wrapper_ok').innerHTML=xmlHttp.responseText;}};xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function favorietValidate()
{var formulier=document.form_favoriet;var fropt=formulier.favorieten_merk_toevoegen.options;var aropt=new Array();var delopt=new Array();var x=0;for(i=0;i<fropt.length;i++)
{if(fropt[i].selected==true)
{aropt[x]=fropt[i].value;delopt[x]=fropt[i].id;x++;}}
xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=favorietValidate";vals+="&favoriet="+aropt.join();xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{var fouten=xmlHttp.responseText.split("$$");document.getElementById('form_favoriet').normalize();if(document.getElementById('form_favoriet').firstChild.nodeName=="DIV")
{document.getElementById('form_favoriet').removeChild(document.getElementById('form_favoriet').firstChild);}
if(fouten[0]=="OK")
{window.location.reload();}
else
{document.getElementById('form_favoriet').innerHTML=fouten[1]+document.getElementById('form_favoriet').innerHTML;}}};xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function blockedValidate()
{var formulier=document.form_verwijderen;var fropt=formulier.favorieten_merk_verwijderen.options;var aropt=new Array();var delopt=new Array();var x=0;for(i=0;i<fropt.length;i++)
{if(fropt[i].selected==true)
{aropt[x]=fropt[i].value;delopt[x]=fropt[i].id;x++;}}
xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=blockedValidate";vals+="&blocked="+aropt.join();xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{var fouten=xmlHttp.responseText.split("$$");document.getElementById('form_verwijderen').normalize();if(document.getElementById('form_verwijderen').firstChild.nodeName=="DIV")
{document.getElementById('form_verwijderen').removeChild(document.getElementById('form_verwijderen').firstChild);}
if(fouten[0]=="OK")
{window.location.reload();}
else
{document.getElementById('form_verwijderen').innerHTML=fouten[1]+document.getElementById('form_verwijderen').innerHTML;}}};xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function delFavblock(id)
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=delFavblock";vals+="&id="+id;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{window.location.reload();}};xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function addFav(id)
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=addFav";vals+="&id="+id;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{window.location.reload();}};xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function addBlock(id)
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=addBlock";vals+="&id="+id;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{window.location.reload();}};xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function switchTagTab(mode)
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=switchTagTab";vals+="&mode="+mode;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{window.location.reload();}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function addPersontag(tag)
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=addPersontag";vals+="&tag="+tag;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{if(xmlHttp.responseText=="OK")
window.location.reload();else
{document.getElementById('tags_form').normalize();if(document.getElementById('tags_form').firstChild.nodeName=="DIV")
{document.getElementById('tags_form').removeChild(document.getElementById('tags_form').firstChild);}
document.getElementById('tags_form').innerHTML=xmlHttp.responseText+document.getElementById('tags_form').innerHTML;}}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function profileTagDelete(person,tag)
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=profileTagDelete";vals+="&person="+person;vals+="&tag="+tag;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{window.location.reload();}}
if(confirm('Weet u zeker dat u deze tag wilt verwijderen'))
{xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}}
function winkelSort(mode)
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=winkelSort";vals+="&mode="+mode;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{window.location.reload();}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function winkelView(mode)
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=winkelView";vals+="&mode="+mode;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{window.location.reload();}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function winkelpage(page)
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=winkelpage";vals+="&page="+page;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{window.location.reload();}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function numberofpages(number)
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=numberofpages";vals+="&number="+number;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{window.location.reload();}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function addCompanyTag(company)
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=addCompanyTag";vals+="&company="+company;vals+="&tag="+document.formulier.tag.value;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{if(xmlHttp.responseText=="OK")
{window.opener.location.href='/tags/';}
else
{document.getElementById('wrapper_errors').innerHTML=xmlHttp.responseText;}}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function reactiepage(page)
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=reactiepage";vals+="&page="+page;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{window.location.reload();}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function addReactie(company,reactie)
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=addReactie";vals+="&reactie="+reactie.replace('&',"%26");vals+="&company="+company;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{if(xmlHttp.responseText=="OK")
{window.location.reload();}
else
{document.getElementById('wrapper_errors').style.display="block";document.getElementById('wrapper_errors').innerHTML="Je dient in te loggen om een reactie achter te laten.";document.getElementById('error').innerHTML=xmlHttp.responseText;}}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function addErvaring(cID)
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=addErvaring";vals+="&cID="+cID;var barcount=document.getElementById('barcount').value;var scores=new Array();var ids=new Array();var disabled=new Array();var qid=new Array();for(var i=0;i<barcount;i++)
{ids[i]=document.getElementById('pID'+i).value;scores[i]=document.getElementById('score'+i).innerHTML;qid[i]=document.getElementById('qID'+i).value;if(document.getElementById('check'+i).checked==true)
disabled[i]=1;else
disabled[i]=0;}
vals+="&ids="+ids.join();vals+="&scores="+scores.join();vals+="&disabled="+disabled.join();vals+="&qid="+qid.join();xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{thinBoxClose(window);}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function suggeststore(company)
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=suggeststore";vals+="&key="+document.getElementById("profiel_merk_locatie").value;vals+="&company="+company;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{if(xmlHttp.responseText!="")
{document.getElementById("suggest").innerHTML=xmlHttp.responseText;document.getElementById("suggest").style.display='block';}
else
{document.getElementById("suggest").style.display='none';}}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function chooseword(word,company)
{document.getElementById("suggest").style.display='none';document.getElementById("profiel_merk_locatie").value=word;}
function storesearch(company)
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=storesearch";vals+="&key="+document.getElementById("profiel_merk_locatie").value;vals+="&company="+company;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{document.getElementById('zoek_resultaat').innerHTML=xmlHttp.responseText;}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function zoeken()
{var key=document.getElementById('zoek').value
location.href="http://"+HOSTNAME+"/vind/term/"+URLEncode(key);}
function searchCalloptions()
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=searchCalloptions";vals+="&type="+document.getElementById('overzicht_uitgebreidzoeken_categorie').options[document.getElementById('overzicht_uitgebreidzoeken_categorie').options.selectedIndex].value;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{var divs=xmlHttp.responseText.split("$$");document.getElementById('catscontainer').innerHTML="<ul>"+divs[1]+"</ul>";document.getElementById('overzicht_zoekformulier_uitgebreid').innerHTML=divs[2];}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function searchAddTag(id,name)
{if(document.getElementById(id).checked==false)
searchDelTag("stored_"+id);else
{var a=document.createElement("a");a.setAttribute("id","stored_"+id);a.setAttribute("href","javascript:searchDelTag('stored_"+id+"');");var txt=document.createTextNode(name);var spanspace=document.createElement("span");var space=document.createTextNode(" ");spanspace.appendChild(space);a.appendChild(txt);document.getElementById('zoeken_tags_toegevoegd').appendChild(spanspace);document.getElementById('zoeken_tags_toegevoegd').appendChild(a);}}
function searchDelTag(id)
{document.getElementById('zoeken_tags_toegevoegd').removeChild(document.getElementById(id).previousSibling);document.getElementById('zoeken_tags_toegevoegd').removeChild(document.getElementById(id));tagid=id.replace(/stored_/,"");document.getElementById(tagid).checked=false;}
function searchDelAllTags()
{while(document.getElementById('zoeken_tags_toegevoegd').childNodes.length>1)
{var tag=document.getElementById('zoeken_tags_toegevoegd').lastChild.getAttribute("id");if(tag!=null&&tag!="")
{tagid=tag.replace(/stored_/,"");document.getElementById(tagid).checked=false;}
document.getElementById('zoeken_tags_toegevoegd').removeChild(document.getElementById('zoeken_tags_toegevoegd').lastChild);}}
function searchFetch()
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var e=document.getElementById('zoekform').elements;var vals="request=searchFetch";for(i=0;i<e.length;i++)
{var t=e[i].type;switch(t)
{case"select-one":if(e[i].id=='overzicht_zoeken_trefwoorden_methode'&&e[i].options[e[i].options.selectedIndex].value!="")
vals+="&allkey="+e[i].options[e[i].options.selectedIndex].value;else{}
break;case"select-multiple":if(e[i].id=='favspicked')
{tmp=new Array();for(j=0;j<e[i].options.length;j++)
tmp[tmp.length]=e[i].options[j].value;vals+="&favs="+tmp.join();}
else if(e[i].id=='blockedpicked')
{tmp=new Array();for(j=0;j<e[i].options.length;j++)
tmp[tmp.length]=e[i].options[j].value;vals+="&blocked="+tmp.join();}
break;case"text":if(e[i].id=='overzicht_zoeken_trefwoorden'&&e[i].value!="")
vals+="&searchkey="+URLEncode(e[i].value);else if(e[i].id=='overzicht_zoeken_zondertrefwoorden'&&e[i].value!="")
vals+="&nokey="+URLEncode(e[i].value);else if(e[i].id=='woonplaats'&&e[i].value!="")
vals+="&woonplaats="+URLEncode(e[i].value);break;case"radio":if(e[i].name=="score"&&e[i].checked==true)
vals+="&maxscore="+e[i].value;else if(e[i].name=="gender"&&e[i].checked==true)
vals+="&gender="+e[i].value;break;case"checkbox":if(e[i].name=="retour")
if(e[i].checked==true)
vals+="&retour=1";else
vals+="&retour=0";else if(e[i].name=="verzending")
if(e[i].checked==true)
vals+="&verzending=1";else
vals+="&verzending=0";else if(e[i].name=="payment[]")
{if(e[i].checked==true)
vals+="&payment"+URLEncode('[]')+"="+e[i].value;}
else if(e[i].name=="delivery[]")
{if(e[i].checked==true)
vals+="&delivery"+URLEncode('[]')+"="+e[i].value;}
else if(e[i].name=="tag[]")
{if(e[i].checked==true)
vals+="&tag"+URLEncode('[]')+"="+e[i].value;}
else{}
break;}}
xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{cat=document.getElementById('overzicht_uitgebreidzoeken_categorie').options[document.getElementById('overzicht_uitgebreidzoeken_categorie').selectedIndex].value;switch(cat)
{case"winkels":location.href="/winkels/resultaat.php?"+vals;break;case"profielen":location.href="/profiel/resultaat.php?"+vals;break;}}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function searchFav()
{for(i=0;i<document.getElementById('favs').options.length;i++)
{if(document.getElementById('favs').options[i].selected==true)
{element=document.getElementById('favs').options[i];document.getElementById('favs').removeChild(element);for(k=0;k<document.getElementById('blocked').options.length;k++)
{if(document.getElementById('blocked').options[k].value==element.value)
{document.getElementById('blocked').removeChild(document.getElementById('blocked').options[k]);break;}}
document.getElementById('favspicked').appendChild(element);}}}
function searchNoFav()
{for(i=0;i<document.getElementById('favspicked').options.length;i++)
{if(document.getElementById('favspicked').options[i].selected==true)
{element=document.getElementById('favspicked').options[i];document.getElementById('favspicked').removeChild(element);for(k=0;k<document.getElementById('blockedpicked').options.length;k++)
{if(document.getElementById('blockedpicked').options[k].value==element.value)
{document.getElementById('blockedpicked').removeChild(document.getElementById('blockedpicked').options[k]);break;}}
element2=element.cloneNode(true);document.getElementById('blocked').appendChild(element2);document.getElementById('favs').appendChild(element);}}}
function searchFavAll()
{while(document.getElementById('favs').hasChildNodes())
{element=document.getElementById('favs').firstChild;document.getElementById('favs').removeChild(element);for(k=0;k<document.getElementById('blocked').options.length;k++)
{if(document.getElementById('blocked').options[k].value==element.value)
{document.getElementById('blocked').removeChild(document.getElementById('blocked').options[k]);break;}}
document.getElementById('favspicked').appendChild(element);}}
function searchFavNone()
{while(document.getElementById('favspicked').hasChildNodes())
{element=document.getElementById('favspicked').firstChild;document.getElementById('favspicked').removeChild(element);for(k=0;k<document.getElementById('blockedpicked').options.length;k++)
{if(document.getElementById('blockedpicked').options[k].value==element.value)
{document.getElementById('blockedpicked').removeChild(document.getElementById('blockedpicked').options[k]);break;}}
element2=element.cloneNode(true);document.getElementById('blocked').appendChild(element2);document.getElementById('favs').appendChild(element);}}
function searchBlock()
{for(i=0;i<document.getElementById('blocked').options.length;i++)
{if(document.getElementById('blocked').options[i].selected==true)
{element=document.getElementById('blocked').options[i];document.getElementById('blocked').removeChild(element);for(k=0;k<document.getElementById('favs').options.length;k++)
{if(document.getElementById('favs').options[k].value==element.value)
{document.getElementById('favs').removeChild(document.getElementById('favs').options[k]);break;}}
document.getElementById('blockedpicked').appendChild(element);}}}
function searchNoBlock()
{for(i=0;i<document.getElementById('blockedpicked').options.length;i++)
{if(document.getElementById('blockedpicked').options[i].selected==true)
{element=document.getElementById('blockedpicked').options[i];document.getElementById('blockedpicked').removeChild(element);for(k=0;k<document.getElementById('favspicked').options.length;k++)
{if(document.getElementById('favspicked').options[k].value==element.value)
{document.getElementById('favspicked').removeChild(document.getElementById('favspicked').options[k]);break;}}
element2=element.cloneNode(true);document.getElementById('blocked').appendChild(element2);document.getElementById('favs').appendChild(element);}}}
function searchBlockAll()
{while(document.getElementById('blocked').hasChildNodes())
{element=document.getElementById('blocked').firstChild;document.getElementById('blocked').removeChild(element);for(k=0;k<document.getElementById('favs').options.length;k++)
{if(document.getElementById('favs').options[k].value==element.value)
{document.getElementById('favs').removeChild(document.getElementById('favs').options[k]);break;}}
document.getElementById('blockedpicked').appendChild(element);}}
function searchBlockNone()
{while(document.getElementById('blockedpicked').hasChildNodes())
{element=document.getElementById('blockedpicked').firstChild;document.getElementById('blockedpicked').removeChild(element);for(k=0;k<document.getElementById('favspicked').options.length;k++)
{if(document.getElementById('favspicked').options[k].value==element.value)
{document.getElementById('favspicked').removeChild(document.getElementById('favspicked').options[k]);break;}}
element2=element.cloneNode(true);document.getElementById('blocked').appendChild(element2);document.getElementById('favs').appendChild(element);}}
function suggestwoonplaats()
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=suggestwoonplaats";vals+="&key="+document.getElementById("woonplaats").value;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{if(xmlHttp.responseText!="")
{document.getElementById("suggest").innerHTML=xmlHttp.responseText;document.getElementById("suggest").style.display='block';}
else
{document.getElementById("suggest").style.display='none';}}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function choosecity(city)
{document.getElementById("suggest").style.display='none';document.getElementById("woonplaats").value=city;}
function meldMisbruik()
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=meldMisbruik";vals+="&naam="+document.meldform.naam.value;vals+="&email="+document.meldform.email.value;vals+="&klacht="+document.meldform.klacht.value;vals+="&locatie="+document.meldform.locatie.value;naam=document.meldform.naam.value;email=document.meldform.email.value;klacht=document.meldform.klacht.value;locatie=document.meldform.locatie.value;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{var fouten=xmlHttp.responseText.split("$$");if(fouten[0]!="OK")
{document.getElementById('meldform').normalize();if(document.getElementById('meldform').firstChild.nodeName=="DIV")
{document.getElementById('meldform').removeChild(document.getElementById('meldform').firstChild);}
document.getElementById('meldform').innerHTML=fouten[1]+document.getElementById('meldform').innerHTML;document.meldform.naam.value=naam;document.meldform.email.value=email;document.meldform.klacht.value=klacht;document.meldform.locatie.value=locatie;}
else
{}}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function meldFout()
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=meldFout";vals+="&naam="+document.meldform.naam.value;vals+="&email="+document.meldform.email.value;vals+="&klacht="+document.meldform.klacht.value;vals+="&locatie="+document.meldform.locatie.value;naam=document.meldform.naam.value;email=document.meldform.email.value;klacht=document.meldform.klacht.value;locatie=document.meldform.locatie.value;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{var fouten=xmlHttp.responseText.split("$$");if(fouten[0]!="OK")
{document.getElementById('meldform').normalize();if(document.getElementById('meldform').firstChild.nodeName=="DIV")
{document.getElementById('meldform').removeChild(document.getElementById('meldform').firstChild);}
document.getElementById('meldform').innerHTML=fouten[1]+document.getElementById('meldform').innerHTML;document.meldform.naam.value=naam;document.meldform.email.value=email;document.meldform.klacht.value=klacht;document.meldform.locatie.value=locatie;}
else
{}}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function meldFeedback()
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=meldFeedback";vals+="&contactgegevens="+document.meldform.contactgegevens.value;vals+="&naam="+document.meldform.naam.value;vals+="&reactie="+document.meldform.reactie.value;vals+="&onderwerp="+document.meldform.onderwerp.value;contactgegevens=document.meldform.contactgegevens.value;reactie=document.meldform.reactie.value;naam=document.meldform.naam.value;onderwerp=document.meldform.onderwerp.value;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{var fouten=xmlHttp.responseText.split("$$");if(fouten[0]!="OK")
{document.getElementById('meldform').normalize();if(document.getElementById('meldform').firstChild.nodeName=="DIV")
{document.getElementById('meldform').removeChild(document.getElementById('meldform').firstChild);}
document.getElementById('meldform').innerHTML=fouten[1]+document.getElementById('meldform').innerHTML;document.getElementById('naam').value=naam;document.getElementById('reactie').value=reactie;document.getElementById('contactgegevens').value=contactgegevens;for(var i=0;i<document.getElementById('onderwerp').options.length;i++)
{if(document.getElementById('onderwerp').options[i].value==onderwerp)
{document.getElementById('onderwerp').options[i].selected=true;}}}
else
{}}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function verstuurTip()
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=verstuurTip";vals+="&from_name="+document.sendafriend.from_name.value;vals+="&from_email="+document.sendafriend.from_email.value;vals+="&to_name="+document.sendafriend.to_name.value;vals+="&to_email="+document.sendafriend.to_email.value;vals+="&bericht="+document.sendafriend.bericht.value;vals+="&product_link="+document.sendafriend.product_link.value;from_name=document.sendafriend.from_name.value;from_email=document.sendafriend.from_email.value;to_name=document.sendafriend.to_name.value;to_email=document.sendafriend.to_email.value;bericht=document.sendafriend.bericht.value;product_link=document.sendafriend.product_link.value;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{var fouten=xmlHttp.responseText.split("$$");if(fouten[0]!="OK")
{document.getElementById('sendafriend').normalize();if(document.getElementById('sendafriend').firstChild.nodeName=="DIV")
{document.getElementById('sendafriend').removeChild(document.getElementById('sendafriend').firstChild);}
document.getElementById('sendafriend').innerHTML=fouten[1]+document.getElementById('sendafriend').innerHTML;document.sendafriend.from_name.value=from_name;document.sendafriend.from_email.value=from_email;document.sendafriend.to_name.value=to_name;document.sendafriend.to_email.value=to_email;document.sendafriend.bericht.value=bericht;document.sendafriend.product_link.value=product_link;}
else
{}}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function verstuurwinkelTip()
{xmlHttp=GetXmlHttpObject();var url="/ajax.php";var vals="request=verstuurwinkelTip";vals+="&from_name="+document.sendafriend.from_name.value;vals+="&from_email="+document.sendafriend.from_email.value;vals+="&to_name="+document.sendafriend.to_name.value;vals+="&to_email="+document.sendafriend.to_email.value;vals+="&bericht="+document.sendafriend.bericht.value;vals+="&product_link="+document.sendafriend.product_link.value;from_name=document.sendafriend.from_name.value;from_email=document.sendafriend.from_email.value;to_name=document.sendafriend.to_name.value;to_email=document.sendafriend.to_email.value;bericht=document.sendafriend.bericht.value;product_link=document.sendafriend.product_link.value;xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4&&xmlHttp.status==200)
{var fouten=xmlHttp.responseText.split("$$");if(fouten[0]!="OK")
{document.getElementById('sendafriend').normalize();if(document.getElementById('sendafriend').firstChild.nodeName=="DIV")
{document.getElementById('sendafriend').removeChild(document.getElementById('sendafriend').firstChild);}
document.getElementById('sendafriend').innerHTML=fouten[1]+document.getElementById('sendafriend').innerHTML;document.sendafriend.from_name.value=from_name;document.sendafriend.from_email.value=from_email;document.sendafriend.to_name.value=to_name;document.sendafriend.to_email.value=to_email;document.sendafriend.bericht.value=bericht;document.sendafriend.product_link.value=product_link;}
else
{}}}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",vals.length);xmlHttp.send(vals);}
function thinBox(anchor,width,height){if(!width)width=350;if(!height)height=400;var wndw=document.createElement('iframe');wndw.src=anchor.href;wndw.className='thinBox';wndw.style.width=width+'px';wndw.style.height=height+'px';document.body.appendChild(wndw);if(!document.body.addEventListener){document.body.addEventListener=function(method,func,bogus){document.body.attachEvent('on'+method,func);}};if(!document.body.removeEventListener){document.body.removeEventListener=function(method,func){document.body.detachEvent('on'+method,func);}};function _delete(){document.body.removeChild(wndw);document.body.removeEventListener('mousedown',_delete,false);};document.body.addEventListener('mousedown',_delete,false);var w=window.innerWidth>0?window.innerWidth:document.body.clientWidth;var h=document.compatMode=="CSS1Compat"?document.documentElement.clientHeight:document.body.clientHeight;wndw.style.top=((h/2)-(height/2))+'px';wndw.style.left=((w/2)-(width/2))+'px';return false;}
function thinBoxClose(wndw,url){if(!!url)
{wndw.frameElement.parentNode.ownerDocument.location.href=url;}
else
{wndw.frameElement.parentNode.ownerDocument.location.reload();}
wndw.frameElement.parentNode.removeChild(wndw.frameElement);}
function toggle(openingtimes_div){var ele=document.getElementById(openingtimes_div);var text=document.getElementById("displayText");if(ele.style.display=="block"){ele.style.display="none";}
else{ele.style.display="block";}}
var temp,temp2,cookieArray,cookieArray2,cookieCount;function initiate(){cookieCount=0;if(document.cookie){cookieArray=document.cookie.split(";");cookieArray2=new Array();for(i in cookieArray){cookieArray2[cookieArray[i].split("=")[0].replace(/ /g,"")]=cookieArray[i].split("=")[1].replace(/ /g,"");}}
cookieArray=(document.cookie.indexOf("state=")>=0)?cookieArray2["state"].split(","):new Array();temp=document.getElementById("containerul");for(var o=0;o<temp.getElementsByTagName("li").length;o++){if(temp.getElementsByTagName("li")[o].getElementsByTagName("ul").length>0){temp2=document.createElement("span");temp2.className="symbols";temp2.style.backgroundImage=(cookieArray.length>0)?((cookieArray[cookieCount]=="true")?"url(/img/template/products/minus.png)":"url(/img/template/products/plus.png)"):"url(plus.png)";temp2.onclick=function(){showhide(this.parentNode);writeCookie();}
temp.getElementsByTagName("li")[o].insertBefore(temp2,temp.getElementsByTagName("li")[o].firstChild)
temp.getElementsByTagName("li")[o].getElementsByTagName("ul")[0].style.display="none";if(cookieArray[cookieCount]=="true"){showhide(temp.getElementsByTagName("li")[o]);}
cookieCount++;}
else{temp2=document.createElement("span");temp2.className="symbols";temp2.style.backgroundImage="url(page.png)";temp.getElementsByTagName("li")[o].insertBefore(temp2,temp.getElementsByTagName("li")[o].firstChild);}}}
function showhide(el){el.getElementsByTagName("ul")[0].style.display=(el.getElementsByTagName("ul")[0].style.display=="block")?"none":"block";el.getElementsByTagName("span")[0].style.backgroundImage=(el.getElementsByTagName("ul")[0].style.display=="block")?"url(/img/template/products/minus.png)":"url(/img/template/products/plus.png)";}
function writeCookie(){cookieArray=new Array()
for(var q=0;q<temp.getElementsByTagName("li").length;q++){if(temp.getElementsByTagName("li")[q].childNodes.length>0){if(temp.getElementsByTagName("li")[q].childNodes[0].nodeName=="SPAN"&&temp.getElementsByTagName("li")[q].getElementsByTagName("ul").length>0){cookieArray[cookieArray.length]=(temp.getElementsByTagName("li")[q].getElementsByTagName("ul")[0].style.display=="block");}}}
document.cookie="state="+cookieArray.join(",")+";expires="+new Date(new Date().getTime()+365*24*60*60*1000).toGMTString();}