wr=wr+""; WriteBasket(wr); } function search2(terms,ch,newser){ if (terms !=""){ terms = terms.toLowerCase(); var fullterms = terms; var wr=""; var blist = "x"; for (i=0; i<=9; i++){ searcher[i] = -1; checker[i] = 0; } var termstr1 = ""; var termstr1f = ""; var termstr2 = ""; var termstr3 = ""; var termindex = 0; prodsfound = 0; var fuzzyflag = 0; for (i=0; i<=996; (i=i+4)){ termindex = 0; if (ch == true){ termstr2 = a8[i+2]; termstr3 = a8[i]; } else { termstr2 = a8[i]; termstr3 = a8[i+2]; } if (termstr2 != null && termstr2 != ""){ termstr2 = termstr2.toLowerCase(); termindex = termstr2.indexOf(terms,0); if ((termstr2 != "") && (termindex != -1) && (prodsfound <= 9) && blist.indexOf(termstr2,0)<=0){ searcher[prodsfound] = i; blist = blist + termstr2; prodsfound = prodsfound + 1; highlight(terms,termstr2); termstr2 = newtermstr2; if (ch == true){ termstr1 = termstr1 + " " + termstr2 + " (Artikelnummer: " + termstr3 + ")
"; } else { termstr1 = termstr1 + " " + termstr2 + " (" + termstr3 + ")
"; } } } } var oldprodsfound = prodsfound; while ((prodsfound <= 9) && (terms.length >= 3) && (terms.length >= (fullterms.length / 2))){ terms = terms.substring(0,terms.length-1); for (i=0; i<=996; (i=i+4)){ termindex = 0; if (ch == true){ termstr2 = a8[i+2]; termstr3 = a8[i]; } else { termstr2 = a8[i]; termstr3 = a8[i+2]; } if (termstr2 != null && termstr2 != ""){ termstr2 = termstr2.toLowerCase(); termindex = termstr2.indexOf(terms,0); if ((termstr2 != "") && (termindex != -1) && (prodsfound <= 9) && blist.indexOf(termstr2,0) <= 0){ searcher[prodsfound] = i; blist = blist + termstr2; prodsfound = prodsfound + 1; highlight(terms,termstr2); termstr2 = newtermstr2; if(oldprodsfound != 0){; if (ch == true){; termstr1f = termstr1f + " " + termstr2 + " (Artikelnummer: " + termstr3 + ")
"; } else { termstr1f = termstr1f + " " + termstr2 + " (" + termstr3 + ")
"; } } else { if (ch == true){ termstr1f = termstr1f + " " + termstr2 + " (Artikelnummer: " + termstr3 + ")
"; } else { termstr1f = termstr1f + " " + termstr2 + " (" + termstr3 + ")
"; } } } } } } wr=wr+"\
"; if (oldprodsfound == 1){ var pls=""; } else { var pls=""; } wr=wr+""; wr=wr+""; var fuzzdiff = prodsfound - oldprodsfound; if (fuzzdiff != 0){ if (prodsfound == 1){ pls=""; } else { pls=""; } wr=wr+""; wr=wr+""; } if (n3 == 1 && browserVer < 4){ wr=wr+"
Sök resultat:
" + oldprodsfound + " Träffar" + pls + " Hittade:
" + termstr1 + "
Sök resultat:
" + fuzzdiff + " Vag Träff" + pls + " Hittade::
" + termstr1f + "
"; } else { wr=wr+"
"; wr=wr+" "; } wr=wr+"
"; WriteBasket(wr); } else { alert ("Var god skriv en sökterm"); search(); } } function highlight(hitext,histring){ var begi = histring.indexOf(hitext,0); begi = histring.substring(0,begi); var en = histring.indexOf(hitext,0); en = histring.substring(en + hitext.length,histring.length); newtermstr2 = begi + "" + hitext + "" + en; } // This Function Returns The Search Results Dynamically function move2(checkon){ var a = 0; var b = 0; var acat = ""; var adisc = ""; var aim = ""; var tmpc = 0; var wr2="\
"; for (k=0; k<=9; k++){ a = searcher[k]; tmpc = eval(a); b = checker[k]; if (checkon == 0){ b = 1; } if ((tmpc != -1) && (b != 0)){ acat = a8[tmpc]; adisc = a8[tmpc + 2]; aim = a8[tmpc + 3]; tmpc = tmpc + 4; wr2=wr2+""; }else{ wr2=wr2+adisc + ""; } } } wr2=wr2+"
"; if(aim != "na"){ wr2=wr2+"
"; var wr1="\"; wr1=wr1+"
Sök Resultat:
"; WriteShelf(wr1,wr2); } // This Function Writes the Shelf Window function move(a,nam){ var acat = ""; var adisc = ""; var aim = ""; var tmpc = 0; var wr2="\
"; for (k=0; k<= 4; k++){ tmpc = 4*(eval(a) + k); acat = a8[tmpc - 4]; if(acat != null){ adisc = a8[tmpc - 2]; aim = a8[tmpc - 1]; wr2=wr2+""; }else{ wr2=wr2 + adisc + ""; } } } wr2=wr2+"
"; if(aim != "na"){ wr2=wr2+"
"; var wr1="\"; wr1=wr1 + "
" + nam + "
"; WriteShelf(wr1,wr2); } // This Function Blanks The Form Fields function bla(){ document.forms[0].price.value =""; document.forms[0].totler.value =""; document.forms[0].elements[0].value ="???"; } // This Function paints Product Pages to the Shopping Basket function sclik(tpge){ var whe2 = "top" + tpge + ".htm"; if (n3!=1){ parent.frames[2].frames[1].navigate(whe2); }else{ parent.frames[2].frames[1].location.replace(whe2); } } // This Function adds an Item to The Shopping Basket function buy(q,itm,opts){ var pric = itm; pric = eval(pric); var pric1 = pric; var pric2 = pric + 1; var pric3 = pric + 2; var pric4 = pric + 3; if (q == "0"){ var quantitin = prompt("Hur många " + a8[pric3] + "?",1); } else { var quantitin = q; } var quantit = parseInt(quantitin); if ((n3==1) || (e4==1)){ var testnum = quantit.toString(); } if ((testnum == "NaN") && (quantitin != null)){ alert ("Var god skriv ett nummer inte ett ord!"); } if ((testnum != "NaN") && (quantit != "0")){ n = n + quantit; tot = tot + (eval(a8[pric2]) * quantit); b8[b8list]=pric; b8[b8list+1]=quantit; b8[b8list+2]=a8[pric1]; b8[b8list+3]=a8[pric2]; b8[b8list+4]=a8[pric3]; b8[b8list+5]=opts; b8[b8list+6]=a8[pric4]; b8list = b8list + 7; PaintBasket(); } } // This Function updates the Shopping Basket function PaintBasket(){ var temtot=tot/100; CorrectPrices(temtot); parent.frames[3].document.forms[0].totalf.value=fixprice; var pl = ""; if (n!=1){ pl = ""; } var wr = ""; wr="
"; wr=wr + "
"; wr=wr + "Kundvagnen innehåller " + n + " Varor" + pl + ":
"; wr=wr + ""; for (i=0; i<=b8list-7; i=i+7){ if ((b8[i] != -1) && (b8[i]!=null)){ if (b8[i+6] != "na"){ wr=wr + ""; } else { wr=wr + ""; } wr=wr + ""; wr=wr + ""; } } wr=wr + "
" + b8[i+4] + "Antal: " + b8[i+1] + "
"; wr=wr + "
"; WriteBasket(wr); buyflag = 1; } // This Function outputs HTML to the Shopping Basket function WriteBasket(sometext){ parent.frames[2].frames[1].document.write(sometext); parent.frames[2].frames[1].document.close(); } // This Function outputs HTML to the Shelf Windows function WriteShelf(tex1,tex2){ parent.parent.frames[4].frames[1].document.write(tex1); parent.parent.frames[4].frames[1].document.close(); parent.parent.frames[4].frames[2].document.write(tex2); parent.parent.frames[4].frames[2].document.close(); parent.parent.frames[4].frames[3].document.write(tex1); parent.parent.frames[4].frames[3].document.close(); } // This Function removes an Item from the Shopping Basket function unbuy(subtr){ var pric = subtr; pric = eval(pric); var pric1 = eval(b8[pric+1]); var pric2 = eval(b8[pric+3]); pric2 = pric1*pric2; if (buyflag==1){ buyflag = 0; var timer2 = null; n = n - pric1; b8[pric] = -1; b8[pric+1] = ""; b8[pric+2] = ""; b8[pric+3] = ""; b8[pric+4] = ""; b8[pric+5] = ""; b8[pric+6] = ""; tot = tot - pric2; timer2 = setTimeout("PaintBasket()", 500); } } // This Function Performs The Calculations to Set Up the Checkout Window function calcul2(){ var addpr=""; var pr=0; ol = ""; ol = ol + ""; ol = ol + ""; ol = ol + ""; ol = ol + ""; ol = ol + ""; ol = ol + ""; ol = ol + ""; oa = ""; sp = ""; for (k=0; k<=b8list-7; k=k+7){ if (b8[k] != -1){ var temtot=b8[k+3]/100; CorrectPrices(temtot); ol = ol + ""; ol = ol + ""; ol = ol + ""; oa = oa + " \n XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n "; oa = oa + "Antal: " + b8[k+1] + "\n "; oa = oa + "Artikel Nummer: " + b8[k+2] + "\n "; oa = oa + "Enhets Pris: " + fixprice + "\n "; temtot=(b8[k+3] * b8[k+1])/100; CorrectPrices(temtot); ol = ol + ""; ol = ol + ""; ol = ol + ""; oa = oa + "Pris: " + fixprice + "\n "; oa = oa + "Beskrivning: " + b8[k+4] + "\n "; oa = oa + "Extra Val: " + b8[k+5] + "\n "; oa = oa + "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n"; } } var temtot=tot/100; CorrectPrices(temtot); ol = ol + ""; ol = ol + ""; ol = ol + "
"; ol = ol + "Varor summa" + "
AntalArtikel NummerEnhets PrisPrisBeskrivningExtra Val
" + b8[k+1] + "" + b8[k+2] + "" + fixprice + "" + fixprice + "" + b8[k+4] + "" + b8[k+5] + ".
"; ol = ol + "Totalt Varor "+ fixprice; ol = ol + "
"; oa = oa + "\n Totalt Varor " + fixprice; document.cookie = "shopm1=" + tot; document.cookie = "shopm2=" + escape(oa); document.cookie = "shopm3=" + CurVar; document.cookie = "shopm4=" + escape(CurName); document.cookie = "shopm5=" + CentsVar; document.cookie = "shopm6=" + escape(Aff); } // This Function loads the first shelf on download function loaded(){ var cookin = document.cookie if ((n3 == 1) || (parseInt(navigator.appVersion) >= 4)){ var cookarr = cookin.split(";") for (i=0; i < cookarr.length; i++){ var cookarr2 = cookarr[i].split("=") if (cookarr2[0].indexOf("AFFILIATEID") > -1){ Aff = unescape(cookarr2[1]) } } } if (Aff == ''){ Aff = top.location.search; } var timerload = null; timerload = setTimeout("move(1,'Hårddiskar')",2000); } // This Function Writes the Basket Review Window function reviewbasket(){ calcul2(); var checkbasket = parent.frames[2].frames[1]; checkbasket.document.write("Mirob Data AB"); checkbasket.document.write("\
"); checkbasket.document.write("

Order Summa:

"); checkbasket.document.write(ol); checkbasket.document.write("

"); checkbasket.document.write(""); checkbasket.document.write(" "); checkbasket.document.write("
"); checkbasket.document.close(); } // This Function Works the Checkout Facility function check(){ var na = Math.round(100*Math.random()) var cwind = open("checkout.htm", na, "scrollbars=yes,resizable=yes,directories=yes,status=yes,menubar=yes,location=yes,toolbar=yes"); if (cwind.opener == null) cwind.opener=self; } // This Function Changes the Shelf Contents function ChangeShelf(){ var ThisSel = document.forms[0].ShelfSelect.options[document.forms[0].ShelfSelect.selectedIndex].text; if (document.forms[0].ShelfSelect.selectedIndex == 0){ move(1,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 1){ move(6,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 2){ move(11,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 3){ move(16,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 4){ move(21,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 5){ move(26,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 6){ move(31,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 7){ move(36,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 8){ move(41,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 9){ move(46,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 10){ move(51,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 11){ move(56,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 12){ move(61,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 13){ move(66,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 14){ move(71,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 15){ move(76,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 16){ move(81,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 17){ move(86,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 18){ move(91,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 19){ move(96,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 20){ move(101,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 21){ move(106,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 22){ move(111,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 23){ move(116,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 24){ move(121,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 25){ move(126,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 26){ move(131,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 27){ move(136,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 28){ move(141,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 29){ move(146,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 30){ move(151,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 31){ move(156,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 32){ move(161,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 33){ move(166,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 34){ move(171,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 35){ move(176,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 36){ move(181,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 37){ move(186,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 38){ move(191,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 39){ move(196,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 40){ move(201,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 41){ move(206,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 42){ move(211,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 43){ move(216,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 44){ move(221,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 45){ move(226,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 46){ move(231,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 47){ move(236,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 48){ move(241,ThisSel); } if (document.forms[0].ShelfSelect.selectedIndex == 49){ move(246,ThisSel); } } // This Function tracks the selected Currency function ChangeCurrency(){ if (document.forms[0].CurSelect.selectedIndex == 0){ CurVar = 1; CentsVar = 0; } CurName = document.forms[0].CurSelect.options[document.forms[0].CurSelect.selectedIndex].text; bla(); PaintBasket(); } // This Function Shows Context-Sensitive Help function help(h){ var h2=h; h2=eval(h2) - 5; CorrectPrices(a8[h2+2]/100); document.forms[0].elements[0].value=" Klicka på Produkten För Mer Detaljer"; document.forms[0].price.value=fixprice; document.forms[0].totler.value=" " + a8[h2+3]; } // This Function Shows Context-Sensitive Help function helpbasket(h){ var h2=h; h2=eval(h2); CorrectPrices(b8[h2+3]/100); document.forms[0].price.value=fixprice; document.forms[0].totler.value=" " + b8[h2+4]; }
. Hjälp:
. Avdelning:
. Pris SEK::
. Beskrivning: