function elemById(sName){ var oRet; if (document.getElementById) //IE5+, NS6+ oRet = document.getElementById(sName); else if (document.all) //IE4 oRet = document.all[sName]; else if (document.layers) //NS4 oRet = document.layers[sName]; // als element niet bestaat, lever een nep element // om fouten te voorkomen if (typeof(oRet) == "undefined" || oRet == null) oRet = new nepElement(); return oRet; } function nepElement() { this.innerHTML = ""; this.innerText = ""; this.src = ""; this.style = function() { this.display = ""; }; this.href = ""; this.width = 0; this.height = 0; } function formateerInt(iGetal) { var sGetal = iGetal.toString(); for(var i=sGetal.length-3;i>0;i-=3) sGetal=sGetal.substring(0,i)+'.'+sGetal.substring(i); return sGetal; } // The exists method: function mExists(sKey) { return(typeof(this._data[sKey]) != "undefined"); } // The Lookup method: function mLookup(sKey) { return(this._data[sKey]); } // The meta Add method: function mAdd() { for (var c=0; c "+this._data[sKey]+"\n"; } return sResult; } // A dictionary object: function cDictionary() { this.Add = mAdd; this.AddArray = mAddArray; this.AddArraySwapped = mAddArraySwapped; this.Exists = mExists; this.Lookup = mLookup; this.Delete = mDelete; this.Keys = mKeys; this._data = new Object(); this.toString = mToString; } var aCat=['-','16','bedrijfsauto','9','bestelbus','14','cabrio','4','camper','7','classic car','5','coupe','15','hatchback','11','multipurpose vehicle','6','personenauto','1','pick-up','13','sedan','12','sportauto','2','stationwagon','10','terreinwagen','3','4 wheeldrive','8']; var aBrndstf=['-','5','benzine','1','diesel','2','electrisch','6','hybride (b/e)','7','LPG','3','LPG (G3)','4']; // Declaratie van Dictionary objecten var dMrk = new cDictionary(); var dMdl = new cDictionary(); var dBrndstf = new cDictionary(); var dCat = new cDictionary(); function verwMM() { var dMpM = new cDictionary(); if (verwMM.arguments.length>=2) { dMrk.Add(verwMM.arguments[0],verwMM.arguments[1]); } for (var c=2;c= intFillStartIndex) oSelect.options[oSelect.options.length - 1] = null; // add (new) option to select for(var i=0; i0)) { oSelect.options[i + intFillStartIndex] = new Option(euroSign+" "+arrKeys[i], sValue); } else { oSelect.options[i + intFillStartIndex] = new Option(arrKeys[i], sValue); } // determine the index(es) of the option(s) to select if (typeof(oSelectValue) == "string") { if (sValue == oSelectValue) oSelect.options[i + intFillStartIndex].selected = true; } else { for (var j=0; j