var items = {"grp92":[{"vare":"Refurbished Apple iPad 9 (2021), 64GB, B-Grade","pris":2500,"img":"ipad9","stock":1},{"vare":"Refurbished Apple iPad 9 (2021), 256GB, B-Grade","pris":3700,"img":"ipad9","stock":1}],"grp98":[{"vare":"Samsung Galaxy Tab A9 8.7'' (2023), 64GB, Graphite","pris":1300,"img":"taba9","stock":1},{"vare":"Samsung Galaxy Tab A9 Plus 11'' (2023), 64GB, Graphite","pris":1800,"img":"taba9plus","stock":1}],"grp91":[{"vare":"Refurbished 14\" Lenovo ThinkPad L14 Gen 1 - AMD Ryzen 5 4500U 2,38GHz, 512GB NVMe, 16GB, Win11 Pro - Grade B","pris":3000,"img":"l14","stock":1},{"vare":"Refurbished 14\" Lenovo ThinkPad L14 Gen 2 - AMD Ryzen 5 Pro 5650U 2,3GHz, 256GB NVMe, 8GB, Win11 Pro - Grade A","pris":3200,"img":"l14","stock":1},{"vare":"Refurbished 14\" Lenovo ThinkPad T14 Gen 2 - AMD Ryzen 5 Pro 5650U 2,3GHz, 256GB NVMe, 16GB, Win11 Pro - Grade A","pris":3700,"img":"t14","stock":2},{"vare":"Refurbished 14\" Lenovo ThinkPad T14s Gen 1 - AMD Ryzen 7 Pro 4750U 1,7GHz, 512GB NVMe, 32GB, Win11 Pro - Grade B","pris":4000,"img":"t14s","stock":2}],"grp97":[{"vare":"Doro Leva L31 4G, Graphite \/ White","pris":1400,"img":"leval31","stock":1},{"vare":"Doro Leva L31 4G, Red \/ White","pris":1400,"img":"leval31","stock":2},{"vare":"Samsung Galaxy A16 5G, 128GB, Light Gray","pris":2000,"img":"a16_graa","stock":2},{"vare":"Samsung Galaxy A16 5G, 128GB, Light Green","pris":2000,"img":"a16_groen","stock":1}],"grp90":[{"vare":"Refurbished Apple iPhone 13, 128GB, B-Grade","pris":3700,"img":"ip13","stock":3},{"vare":"Refurbished Apple iPhone SE 3 (2022), 128GB, B-Grade","pris":2600,"img":"ipse3","stock":1},{"vare":"Refurbished Samsung Galaxy S23 5G, 256GB, A-Grade","pris":3900,"img":"?","stock":1}]};
var kats = ["99"];
document.write('
');
function formatnum(nStr) {
nStr += '';
var x = nStr.split('.');
var x1 = x[0];
var x2 = x.length > 1 ? ',' + x[1] : '';
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, '$1' + '.' + '$2');
}
return x1 + x2;
}
if (kats.includes('90') && items.grp90) {
document.write('
Telefoner på lager:
');
document.write('
');
items.grp90.forEach(function (item) { document.write('
'+item.vare+''+formatnum(item.pris)+' kr.'+item.stock+' på lager i butikken '); });
document.write('
');
}
if (kats.includes('91') && items.grp91) {
document.write('
Computere på lager:
');
document.write('
');
items.grp91.forEach(function (item) { document.write('
'+item.vare+''+formatnum(item.pris)+' kr.'+item.stock+' på lager i butikken '); });
document.write('
');
}
if (kats.includes('92') && items.grp92) {
document.write('
Tablets på lager:
');
document.write('
');
items.grp92.forEach(function (item) { document.write('
'+item.vare+''+formatnum(item.pris)+' kr.'+item.stock+' på lager i butikken '); });
document.write('
');
}
if (kats.includes('97') && items.grp97) {
document.write('
Telefoner på lager:
');
document.write('
');
items.grp97.forEach(function (item) { document.write('
'+item.vare+''+formatnum(item.pris)+' kr.'+item.stock+' på lager i butikken '); });
document.write('
');
}
if (kats.includes('98') && items.grp98) {
document.write('
Tablets på lager:
');
document.write('
');
items.grp98.forEach(function (item) { document.write('
'+item.vare+''+formatnum(item.pris)+' kr.'+item.stock+' på lager i butikken '); });
document.write('
');
}
if (kats.includes('99') && items.grp99) {
document.write('
Computere på lager:
');
document.write('
');
items.grp99.forEach(function (item) { document.write('
'+item.vare+''+formatnum(item.pris)+' kr.'+item.stock+' på lager i butikken '); });
document.write('
');
}
document.write('
');