var itemdelta = new Array(); var itemdelaydays = new Array(); var starkl = new Array(); var caseImages = new Array(); var itemvperf = new Array(); var itemcpuperf = new Array(); var itemramperf = new Array(); var itempcislots = new Array(); itemvperf[14774]=0; itemcpuperf[14774]=0; itemramperf[14774]=0; itempcislots[14774]=0; itemdelta[14774]=0; itemdelaydays[14774]=0; starkl[14774]=7508; itemvperf[14775]=0; itemcpuperf[14775]=0; itemramperf[14775]=0; itempcislots[14775]=0; itemdelta[14775]=0; itemdelaydays[14775]=0; starkl[14775]=6584; itemvperf[33028]=0; itemcpuperf[33028]=0; itemramperf[33028]=0; itempcislots[33028]=0; itemdelta[33028]=100; itemdelaydays[33028]=0; starkl[33028]=9217; itemvperf[15092]=0; itemcpuperf[15092]=0; itemramperf[15092]=0; itempcislots[15092]=0; itemdelta[15092]=25; itemdelaydays[15092]=0; starkl[15092]=8702; itemvperf[15091]=0; itemcpuperf[15091]=0; itemramperf[15091]=0; itempcislots[15091]=0; itemdelta[15091]=0; itemdelaydays[15091]=0; starkl[15091]=2363; itemvperf[33027]=0; itemcpuperf[33027]=0; itemramperf[33027]=0; itempcislots[33027]=0; itemdelta[33027]=0; itemdelaydays[33027]=0; starkl[33027]=2709; itemvperf[33033]=0; itemcpuperf[33033]=0; itemramperf[33033]=0; itempcislots[33033]=0; itemdelta[33033]=85; itemdelaydays[33033]=0; starkl[33033]=2970; itemvperf[33032]=0; itemcpuperf[33032]=0; itemramperf[33032]=0; itempcislots[33032]=0; itemdelta[33032]=55; itemdelaydays[33032]=0; starkl[33032]=8614; itemvperf[33031]=0; itemcpuperf[33031]=0; itemramperf[33031]=0; itempcislots[33031]=0; itemdelta[33031]=0; itemdelaydays[33031]=0; starkl[33031]=1251; itemvperf[9876]=0; itemcpuperf[9876]=0; itemramperf[9876]=0; itempcislots[9876]=0; itemdelta[9876]=30; itemdelaydays[9876]=0; starkl[9876]=5802; itemvperf[9877]=0; itemcpuperf[9877]=0; itemramperf[9877]=0; itempcislots[9877]=0; itemdelta[9877]=0; itemdelaydays[9877]=0; starkl[9877]=7500; itemvperf[33029]=0; itemcpuperf[33029]=0; itemramperf[33029]=0; itempcislots[33029]=0; itemdelta[33029]=65; itemdelaydays[33029]=0; starkl[33029]=872; itemvperf[33030]=0; itemcpuperf[33030]=0; itemramperf[33030]=0; itempcislots[33030]=0; itemdelta[33030]=0; itemdelaydays[33030]=0; starkl[33030]=239; itemvperf[33034]=0; itemcpuperf[33034]=0; itemramperf[33034]=0; itempcislots[33034]=0; itemdelta[33034]=220; itemdelaydays[33034]=0; starkl[33034]=5569; itemvperf[33035]=0; itemcpuperf[33035]=0; itemramperf[33035]=0; itempcislots[33035]=0; itemdelta[33035]=145; itemdelaydays[33035]=0; starkl[33035]=2889; itemvperf[33036]=0; itemcpuperf[33036]=0; itemramperf[33036]=0; itempcislots[33036]=0; itemdelta[33036]=105; itemdelaydays[33036]=0; starkl[33036]=8989; itemvperf[33037]=0; itemcpuperf[33037]=0; itemramperf[33037]=0; itempcislots[33037]=0; itemdelta[33037]=45; itemdelaydays[33037]=0; starkl[33037]=1138; itemvperf[28835]=0; itemcpuperf[28835]=0; itemramperf[28835]=0; itempcislots[28835]=0; itemdelta[28835]=0; itemdelaydays[28835]=0; starkl[28835]=1731; itemvperf[29927]=0; itemcpuperf[29927]=0; itemramperf[29927]=0; itempcislots[29927]=0; itemdelta[29927]=439; itemdelaydays[29927]=0; starkl[29927]=1181; itemvperf[29926]=0; itemcpuperf[29926]=0; itemramperf[29926]=0; itempcislots[29926]=0; itemdelta[29926]=259; itemdelaydays[29926]=0; starkl[29926]=1753; itemvperf[29924]=0; itemcpuperf[29924]=0; itemramperf[29924]=0; itempcislots[29924]=0; itemdelta[29924]=219; itemdelaydays[29924]=0; starkl[29924]=9772; itemvperf[29925]=0; itemcpuperf[29925]=0; itemramperf[29925]=0; itempcislots[29925]=0; itemdelta[29925]=179; itemdelaydays[29925]=0; starkl[29925]=8833; itemvperf[9887]=0; itemcpuperf[9887]=0; itemramperf[9887]=0; itempcislots[9887]=0; itemdelta[9887]=0; itemdelaydays[9887]=0; starkl[9887]=9677; itemvperf[9888]=0; itemcpuperf[9888]=0; itemramperf[9888]=0; itempcislots[9888]=0; itemdelta[9888]=55; itemdelaydays[9888]=0; starkl[9888]=1826; itemvperf[9889]=0; itemcpuperf[9889]=0; itemramperf[9889]=0; itempcislots[9889]=0; itemdelta[9889]=0; itemdelaydays[9889]=0; starkl[9889]=9255; itemvperf[9890]=0; itemcpuperf[9890]=0; itemramperf[9890]=0; itempcislots[9890]=0; itemdelta[9890]=59; itemdelaydays[9890]=0; starkl[9890]=7455; itemvperf[9892]=0; itemcpuperf[9892]=0; itemramperf[9892]=0; itempcislots[9892]=0; itemdelta[9892]=39; itemdelaydays[9892]=0; starkl[9892]=4563; itemvperf[9893]=0; itemcpuperf[9893]=0; itemramperf[9893]=0; itempcislots[9893]=0; itemdelta[9893]=19; itemdelaydays[9893]=0; starkl[9893]=6310; itemvperf[9894]=0; itemcpuperf[9894]=0; itemramperf[9894]=0; itempcislots[9894]=0; itemdelta[9894]=0; itemdelaydays[9894]=0; starkl[9894]=1314; itemvperf[33038]=0; itemcpuperf[33038]=0; itemramperf[33038]=0; itempcislots[33038]=0; itemdelta[33038]=75; itemdelaydays[33038]=0; starkl[33038]=9825; itemvperf[33039]=0; itemcpuperf[33039]=0; itemramperf[33039]=0; itempcislots[33039]=0; itemdelta[33039]=45; itemdelaydays[33039]=0; starkl[33039]=8873; itemvperf[26449]=0; itemcpuperf[26449]=0; itemramperf[26449]=0; itempcislots[26449]=0; itemdelta[26449]=0; itemdelaydays[26449]=0; starkl[26449]=1629; itemvperf[14787]=0; itemcpuperf[14787]=0; itemramperf[14787]=0; itempcislots[14787]=0; itemdelta[14787]=0; itemdelaydays[14787]=0; starkl[14787]=1071; itemvperf[15470]=0; itemcpuperf[15470]=0; itemramperf[15470]=0; itempcislots[15470]=0; itemdelta[15470]=90; itemdelaydays[15470]=0; starkl[15470]=8768; itemvperf[9899]=0; itemcpuperf[9899]=0; itemramperf[9899]=0; itempcislots[9899]=0; itemdelta[9899]=35; itemdelaydays[9899]=0; starkl[9899]=4523; itemvperf[9904]=0; itemcpuperf[9904]=0; itemramperf[9904]=0; itempcislots[9904]=0; itemdelta[9904]=0; itemdelaydays[9904]=0; starkl[9904]=1371; itemvperf[33040]=0; itemcpuperf[33040]=0; itemramperf[33040]=0; itempcislots[33040]=0; itemdelta[33040]=0; itemdelaydays[33040]=0; starkl[33040]=6552; itemvperf[21071]=0; itemcpuperf[21071]=0; itemramperf[21071]=0; itempcislots[21071]=0; itemdelta[21071]=59; itemdelaydays[21071]=0; starkl[21071]=9719; itemvperf[14789]=0; itemcpuperf[14789]=0; itemramperf[14789]=0; itempcislots[14789]=0; itemdelta[14789]=39; itemdelaydays[14789]=0; starkl[14789]=1262; itemvperf[14790]=0; itemcpuperf[14790]=0; itemramperf[14790]=0; itempcislots[14790]=0; itemdelta[14790]=29; itemdelaydays[14790]=0; starkl[14790]=7918; itemvperf[14793]=0; itemcpuperf[14793]=0; itemramperf[14793]=0; itempcislots[14793]=0; itemdelta[14793]=0; itemdelaydays[14793]=0; starkl[14793]=4593; itemvperf[9911]=0; itemcpuperf[9911]=0; itemramperf[9911]=0; itempcislots[9911]=0; itemdelta[9911]=0; itemdelaydays[9911]=0; starkl[9911]=3501; itemvperf[9912]=0; itemcpuperf[9912]=0; itemramperf[9912]=0; itempcislots[9912]=0; itemdelta[9912]=0; itemdelaydays[9912]=0; starkl[9912]=9475; itemvperf[15631]=0; itemcpuperf[15631]=0; itemramperf[15631]=0; itempcislots[15631]=0; itemdelta[15631]=25; itemdelaydays[15631]=0; starkl[15631]=7535; itemvperf[9914]=0; itemcpuperf[9914]=0; itemramperf[9914]=0; itempcislots[9914]=0; itemdelta[9914]=0; itemdelaydays[9914]=0; starkl[9914]=8003; itemvperf[9915]=0; itemcpuperf[9915]=0; itemramperf[9915]=0; itempcislots[9915]=0; itemdelta[9915]=75; itemdelaydays[9915]=0; starkl[9915]=5155; itemvperf[12359]=0; itemcpuperf[12359]=0; itemramperf[12359]=0; itempcislots[12359]=0; itemdelta[12359]=0; itemdelaydays[12359]=0; starkl[12359]=9734; itemvperf[9916]=0; itemcpuperf[9916]=0; itemramperf[9916]=0; itempcislots[9916]=0; itemdelta[9916]=65; itemdelaydays[9916]=0; starkl[9916]=3466; itemvperf[9917]=0; itemcpuperf[9917]=0; itemramperf[9917]=0; itempcislots[9917]=3; itemdelta[9917]=35; itemdelaydays[9917]=0; starkl[9917]=3557; itemvperf[14808]=0; itemcpuperf[14808]=0; itemramperf[14808]=0; itempcislots[14808]=0; itemdelta[14808]=0; itemdelaydays[14808]=0; starkl[14808]=3508; itemvperf[9919]=0; itemcpuperf[9919]=0; itemramperf[9919]=0; itempcislots[9919]=0; itemdelta[9919]=0; itemdelaydays[9919]=0; starkl[9919]=2559; itemvperf[25288]=0; itemcpuperf[25288]=0; itemramperf[25288]=0; itempcislots[25288]=0; itemdelta[25288]=25; itemdelaydays[25288]=0; starkl[25288]=2199; itemvperf[25287]=0; itemcpuperf[25287]=0; itemramperf[25287]=0; itempcislots[25287]=0; itemdelta[25287]=0; itemdelaydays[25287]=0; starkl[25287]=4630; itemvperf[33261]=0; itemcpuperf[33261]=0; itemramperf[33261]=0; itempcislots[33261]=0; itemdelta[33261]=70; itemdelaydays[33261]=0; starkl[33261]=7058; itemvperf[33260]=0; itemcpuperf[33260]=0; itemramperf[33260]=0; itempcislots[33260]=0; itemdelta[33260]=0; itemdelaydays[33260]=0; starkl[33260]=9851; itemvperf[28494]=0; itemcpuperf[28494]=0; itemramperf[28494]=0; itempcislots[28494]=0; itemdelta[28494]=130; itemdelaydays[28494]=0; starkl[28494]=7790; itemvperf[28495]=0; itemcpuperf[28495]=0; itemramperf[28495]=0; itempcislots[28495]=0; itemdelta[28495]=0; itemdelaydays[28495]=0; starkl[28495]=2496; itemvperf[31307]=0; itemcpuperf[31307]=0; itemramperf[31307]=0; itempcislots[31307]=0; itemdelta[31307]=349; itemdelaydays[31307]=0; starkl[31307]=5022; itemvperf[31308]=0; itemcpuperf[31308]=0; itemramperf[31308]=0; itempcislots[31308]=0; itemdelta[31308]=199; itemdelaydays[31308]=0; starkl[31308]=944; itemvperf[31309]=0; itemcpuperf[31309]=0; itemramperf[31309]=0; itempcislots[31309]=0; itemdelta[31309]=149; itemdelaydays[31309]=0; starkl[31309]=1199; itemvperf[14632]=0; itemcpuperf[14632]=0; itemramperf[14632]=0; itempcislots[14632]=0; itemdelta[14632]=0; itemdelaydays[14632]=0; starkl[14632]=5414; itemvperf[18645]=0; itemcpuperf[18645]=0; itemramperf[18645]=0; itempcislots[18645]=0; itemdelta[18645]=0; itemdelaydays[18645]=0; starkl[18645]=3237; itemvperf[17951]=0; itemcpuperf[17951]=0; itemramperf[17951]=0; itempcislots[17951]=0; itemdelta[17951]=19; itemdelaydays[17951]=0; starkl[17951]=5000; itemvperf[17952]=0; itemcpuperf[17952]=0; itemramperf[17952]=0; itempcislots[17952]=0; itemdelta[17952]=19; itemdelaydays[17952]=0; starkl[17952]=430; itemvperf[9931]=0; itemcpuperf[9931]=0; itemramperf[9931]=0; itempcislots[9931]=0; itemdelta[9931]=0; itemdelaydays[9931]=0; starkl[9931]=3534; itemvperf[9932]=0; itemcpuperf[9932]=0; itemramperf[9932]=0; itempcislots[9932]=0; itemdelta[9932]=0; itemdelaydays[9932]=0; starkl[9932]=689; itemvperf[15804]=0; itemcpuperf[15804]=0; itemramperf[15804]=0; itempcislots[15804]=0; itemdelta[15804]=39; itemdelaydays[15804]=0; starkl[15804]=2890; itemvperf[19724]=0; itemcpuperf[19724]=0; itemramperf[19724]=0; itempcislots[19724]=0; itemdelta[19724]=65; itemdelaydays[19724]=0; starkl[19724]=8148; itemvperf[33258]=0; itemcpuperf[33258]=0; itemramperf[33258]=0; itempcislots[33258]=0; itemdelta[33258]=0; itemdelaydays[33258]=0; starkl[33258]=5817; itemvperf[9937]=0; itemcpuperf[9937]=0; itemramperf[9937]=0; itempcislots[9937]=0; itemdelta[9937]=-10; itemdelaydays[9937]=0; starkl[9937]=9529; itemvperf[19725]=0; itemcpuperf[19725]=0; itemramperf[19725]=0; itempcislots[19725]=0; itemdelta[19725]=75; itemdelaydays[19725]=0; starkl[19725]=2952; itemvperf[33259]=0; itemcpuperf[33259]=0; itemramperf[33259]=0; itempcislots[33259]=0; itemdelta[33259]=0; itemdelaydays[33259]=0; starkl[33259]=8625; itemvperf[9940]=0; itemcpuperf[9940]=0; itemramperf[9940]=0; itempcislots[9940]=0; itemdelta[9940]=-10; itemdelaydays[9940]=0; starkl[9940]=1185; itemvperf[25286]=0; itemcpuperf[25286]=0; itemramperf[25286]=0; itempcislots[25286]=0; itemdelta[25286]=45; itemdelaydays[25286]=0; starkl[25286]=6127; itemvperf[25285]=0; itemcpuperf[25285]=0; itemramperf[25285]=0; itempcislots[25285]=0; itemdelta[25285]=0; itemdelaydays[25285]=0; starkl[25285]=2917; itemvperf[9941]=0; itemcpuperf[9941]=0; itemramperf[9941]=0; itempcislots[9941]=0; itemdelta[9941]=19; itemdelaydays[9941]=0; starkl[9941]=3648; itemvperf[9942]=0; itemcpuperf[9942]=0; itemramperf[9942]=0; itempcislots[9942]=0; itemdelta[9942]=0; itemdelaydays[9942]=0; starkl[9942]=7986; itemvperf[9943]=0; itemcpuperf[9943]=0; itemramperf[9943]=0; itempcislots[9943]=0; itemdelta[9943]=0; itemdelaydays[9943]=0; starkl[9943]=3155; itemvperf[9944]=0; itemcpuperf[9944]=0; itemramperf[9944]=0; itempcislots[9944]=0; itemdelta[9944]=0; itemdelaydays[9944]=0; starkl[9944]=8706; itemvperf[9945]=0; itemcpuperf[9945]=0; itemramperf[9945]=0; itempcislots[9945]=0; itemdelta[9945]=0; itemdelaydays[9945]=0; starkl[9945]=5880; itemvperf[9946]=0; itemcpuperf[9946]=0; itemramperf[9946]=0; itempcislots[9946]=0; itemdelta[9946]=0; itemdelaydays[9946]=0; starkl[9946]=5859; itemvperf[9947]=0; itemcpuperf[9947]=0; itemramperf[9947]=0; itempcislots[9947]=0; itemdelta[9947]=0; itemdelaydays[9947]=0; starkl[9947]=3869; itemvperf[9949]=0; itemcpuperf[9949]=0; itemramperf[9949]=0; itempcislots[9949]=0; itemdelta[9949]=149; itemdelaydays[9949]=0; starkl[9949]=4584; itemvperf[9948]=0; itemcpuperf[9948]=0; itemramperf[9948]=0; itempcislots[9948]=0; itemdelta[9948]=0; itemdelaydays[9948]=0; starkl[9948]=498; itemvperf[9950]=0; itemcpuperf[9950]=0; itemramperf[9950]=0; itempcislots[9950]=0; itemdelta[9950]=399; itemdelaydays[9950]=0; starkl[9950]=2755; itemvperf[9951]=0; itemcpuperf[9951]=0; itemramperf[9951]=0; itempcislots[9951]=0; itemdelta[9951]=329; itemdelaydays[9951]=0; starkl[9951]=8668; itemvperf[9952]=0; itemcpuperf[9952]=0; itemramperf[9952]=0; itempcislots[9952]=0; itemdelta[9952]=299; itemdelaydays[9952]=0; starkl[9952]=446; itemvperf[9953]=0; itemcpuperf[9953]=0; itemramperf[9953]=0; itempcislots[9953]=0; itemdelta[9953]=229; itemdelaydays[9953]=0; starkl[9953]=276; itemvperf[9954]=0; itemcpuperf[9954]=0; itemramperf[9954]=0; itempcislots[9954]=0; itemdelta[9954]=199; itemdelaydays[9954]=0; starkl[9954]=1427; itemvperf[9955]=0; itemcpuperf[9955]=0; itemramperf[9955]=0; itempcislots[9955]=0; itemdelta[9955]=129; itemdelaydays[9955]=0; starkl[9955]=2220; itemvperf[9956]=0; itemcpuperf[9956]=0; itemramperf[9956]=0; itempcislots[9956]=0; itemdelta[9956]=99; itemdelaydays[9956]=0; starkl[9956]=5225; itemvperf[9957]=0; itemcpuperf[9957]=0; itemramperf[9957]=0; itempcislots[9957]=0; itemdelta[9957]=29; itemdelaydays[9957]=0; starkl[9957]=7628; itemvperf[9958]=0; itemcpuperf[9958]=0; itemramperf[9958]=0; itempcislots[9958]=0; itemdelta[9958]=0; itemdelaydays[9958]=0; starkl[9958]=2509; itemvperf[9959]=0; itemcpuperf[9959]=0; itemramperf[9959]=0; itempcislots[9959]=0; itemdelta[9959]=0; itemdelaydays[9959]=0; starkl[9959]=2149; itemvperf[21777]=0; itemcpuperf[21777]=0; itemramperf[21777]=0; itempcislots[21777]=0; itemdelta[21777]=-15; itemdelaydays[21777]=0; starkl[21777]=6963; caseImages[14774]=new Image(); caseImages[14774].src='/images/upload/mx2_silver.jpg'; caseImages[14775]=new Image(); caseImages[14775].src='/images/upload/mx2_black.jpg'; var windowprops = "width=695,height=650,top=15,left=15,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes"; function gopop(page) { window.open(page, "", windowprops); } function disable() { if (event.button == 2) { alert("Thank you for visiting Velocity Micro!") } } function PickUserSelections () { } function ChangePrice () { var newprice =new Number(document.wizform.currentprice.value); var newlease =new Number(document.wizform.currentlease.value); var newdelaydays =new Number(document.wizform.builddays.value); var highdelaydays = 0; var usethisvperf = 100; var usethiscpuperf = 100; var usethisramperf = 100; var usethisoverallperf = 100; var newpcislots = 0; var jjkopl =56985; if (document.wizform.starkldo.value==1) { jjkopl = 0; } for (x = 0; x < document.wizform.elements.length; x++) { if (document.wizform.elements[x].type == "select-one") { thisdd = document.wizform.elements[x]; thisindex = thisdd.selectedIndex; thisdelaydays = (thisindex >= 0 ? itemdelaydays[thisdd[thisindex].value] : 0); thisdelta = (thisindex >= 0 ? itemdelta[thisdd[thisindex].value] : 0); thisvperf = (thisindex >= 0 ? itemvperf[thisdd[thisindex].value] : 0); if (thisvperf > 0) { usethisvperf = thisvperf; } thiscpuperf = (thisindex >= 0 ? itemcpuperf[thisdd[thisindex].value] : 0); if (thiscpuperf > 0) { usethiscpuperf = thiscpuperf; } thisramperf = (thisindex >= 0 ? itemramperf[thisdd[thisindex].value] : 0); if (thisramperf > 0) { usethisramperf = thisramperf; } thisoverallperf = usethisramperf + usethiscpuperf + usethisvperf; if (thisoverallperf > 0) { usethisoverallperf = Math.round((usethisramperf + usethiscpuperf + usethisvperf)/3); } thispcislots = (thisindex >= 0 ? itempcislots[thisdd[thisindex].value] : 0); newpcislots += new Number(thispcislots); sujask = (thisindex >= 0 ? starkl[thisdd[thisindex].value] : 0); newprice += new Number(thisdelta); if (thisdelaydays > highdelaydays) { highdelaydays = thisdelaydays; newdelaydays += new Number(thisdelaydays); } jjkopl += new Number(sujask); newlease = ((newprice * .03)); newlease = Math.round(newlease*1)/1; } if (document.wizform.elements[x].type == "radio") { thisindex = document.wizform.elements[x].value thischecked = document.wizform.elements[x].checked; thisdelta = (thischecked ? itemdelta[thisindex] : 0); sujask = (thischecked ? starkl[thisindex] : 0); newprice += new Number(thisdelta); jjkopl += new Number(sujask); newlease = ((newprice * .03)); newlease = Math.round(newlease*1)/1; } if (document.wizform.elements[x].type == "checkbox") { thisindex = document.wizform.elements[x].value thischecked = document.wizform.elements[x].checked; thisdelta = (thischecked ? itemdelta[thisindex] : 0); sujask = (thischecked ? starkl[thisindex] : 0); newprice += new Number(thisdelta); jjkopl += new Number(sujask); newlease = ((newprice * .03)); newlease = Math.round(newlease*1)/1; } } //if (document.images) { //alert ("starting statement"); var statement = ''; var statementlt = ''; //newprice = 1000; //newlease = 100; //if (document.all) //statement += "document.all['pricetopt'].innerHTML = '" + newprice + "';"; //else if (document.getElementById) //statement += "document.getElementById('pricetopt').innerHTML = '" + newprice + "';"; // eval(statement); //for lease pmt uncomment eval below if (document.all) statementlt += "document.all['pricetopL'].innerHTML = '" + newlease + "';"; else if (document.getElementById) statementlt += "document.getElementById('pricetopL').innerHTML = '" + newlease + "';"; eval(statementlt); var statementb = ''; var statementlb = ''; if (document.all) statementb += "document.all['pricetopb'].innerHTML = '" + newprice + "';"; else if (document.getElementById) statementb += "document.getElementById('pricetopb').innerHTML = '" + newprice + "';"; eval(statementb); if (document.all) statementb += "document.all['pricetopbb'].innerHTML = '" + newprice + "';"; else if (document.getElementById) statementb += "document.getElementById('pricetopbb').innerHTML = '" + newprice + "';"; eval(statementb); //for lease pmt uncomment eval below //if (document.all) statementlb += "document.all['pricetoplb'].innerHTML = '" + newlease + "';"; //else if (document.getElementById) statementlb += "document.getElementById('pricetoplb').innerHTML = '" + newlease + "';"; //eval(statementlb); myDate = new Date(); newoutdate = new Date(myDate.getTime() + newdelaydays*24*60*60*1000); newoutdatef = (newoutdate.getMonth() + 1) + "/" + newoutdate.getDate() +"/" + newoutdate.getFullYear(); var days = 0; var difference = 0; Christmas = new Date("December 22, 2008"); compdate = new Date(newoutdatef); difference = Christmas - compdate; days = Math.round(difference/(1000*60*60*24)); if (days >=0) { //show the shipping image if (document.all) document.all.bn24.style.visibility = 'visible'; else if (document.getElementById) document.getElementById('bn24').style.visibility = 'visible'; } else { //hide the image if (document.all) document.all.bn24.style.visibility = 'hidden'; else if (document.getElementById) document.getElementById('bn24').style.visibility = 'hidden'; } //if (document.all) //document.all['delaydays'].innerHTML = newoutdatef; //else if (document.getElementById) //document.getElementById('delaydays').innerHTML = newoutdatef; if (document.all) document.all['delaydays2'].innerHTML = newoutdatef; else if (document.getElementById) document.getElementById('delaydays2').innerHTML = newoutdatef; //video perf if (document.all) document.all['vperf'].value = usethisvperf; else if (document.getElementById) document.getElementById('vperf').value = usethisvperf; //cpu perf if (document.all) document.all['cpuperf'].value = usethiscpuperf; else if (document.getElementById) document.getElementById('cpuperf').value = usethiscpuperf; //ram perf if (document.all) document.all['ramperf'].value = usethisramperf; else if (document.getElementById) document.getElementById('ramperf').value = usethisramperf; //overall perf if (document.all) document.all['overallperf'].value = usethisoverallperf; else if (document.getElementById) document.getElementById('overallperf').value = usethisoverallperf; //pci slots if (document.all) document.all['pcislots'].value = newpcislots; else if (document.getElementById) document.getElementById('pcislots').value = newpcislots; //below is for pcislot checking if (newpcislots > 0) { //alert("You have too many PCI slots used. See highlighted items."); } var slok = newprice - jjkopl; var ojeko = slok / newprice; document.wizform.starkl.value = "c" + Math.round(jjkopl*100)/100 + " p" + Math.round(slok*100)/100 + " " + Math.round(ojeko*100) + "%"; document.wizform.emailprice.value = newprice; } function ReloadIframe() { usethisvperf = document.wizform.vperf.value; usethiscpuperf = document.wizform.cpuperf.value; usethisramperf = document.wizform.ramperf.value; usethisoverallperf = document.wizform.overallperf.value; window.document.mymovie.SetVariable("newramBarw", usethisramperf); window.document.mymovie.SetVariable("newcpuBarw", usethiscpuperf); window.document.mymovie.SetVariable("newvidBarw", usethisvperf); window.document.mymovie.SetVariable("newovrBarw", usethisoverallperf); //alert(usethisoverallperf); } var vNewImage = new Image(); function SwapCase () { if (document.caseImage) { vIndex = document.wizform.elements['configurator_item[]'][0].selectedIndex; vImageIndex = document.wizform.elements['configurator_item[]'][0].options[vIndex].value; document.caseImage.src = caseImages[vImageIndex].src; //document.caseImageF.src = caseImages[vImageIndex].src; DocURL = caseImages[vImageIndex].src; lastchr = DocURL.length; urlresult=DocURL.substring(0,lastchr - 4)+'.html'; //if (document.all) { //document.all['caseLink'] = "javascript:gopop('"+urlresult+"');"; // document.all['caseLinkb'] = "javascript:gopop('"+urlresult+"');"; // document.all['caseLinkc'] = "javascript:gopop('"+urlresult+"');"; //} //else if (document.getElementById) { //document.getElementById('caseLink').href = "javascript:gopop('"+urlresult+"');"; document.getElementById('caseLinkb').href = "javascript:gopop('"+urlresult+"');"; document.getElementById('caseLinkc').href = "javascript:gopop('"+urlresult+"');"; //} } } function setEditedSelections (vInvID) { for (x = 0; x < document.wizform.elements.length; x++) { if (document.wizform.elements[x].type == "select-one") { vEle = document.wizform.elements[x]; for (y = 0; y < vEle.options.length; y++) { if (vEle.options[y].value == vInvID) { document.wizform.elements[x].options[y].selected = true; return; } } } //now do radio if (document.wizform.elements[x].type == "radio") { vEle = document.wizform.elements[x]; if (vEle.value == vInvID) { document.wizform.elements[x].checked = true; return; } //else //{ // document.wizform.elements[x].checked = false; // return; //} } //now do checkboxes if (document.wizform.elements[x].type == "checkbox") { vEle = document.wizform.elements[x]; if (vEle.value == vInvID) { document.wizform.elements[x].checked = true; return; } //else //{ // document.wizform.elements[x].checked = false; // return; //} } } } // Begin. Specify URLs to randomly select from and pop-under. Edit & add freely. var popunder=new Array() popunder[0]="vm_survey_2.htm" // Specify the width and height of new popunder window (in pixels). var width = '780'; var height = '590'; var p = 'scrollbars=yes,resizable=yes,toolbar=no,' + //these are obvious variables. set "yes" or "no". 'menubar=no,status=no,location=no,left=20,top=20,height=' + //yes/no, & the screen location height + ',width=' + width; // Load new PopUnder only once per browser session? (0=no, 1=yes) // Putting 0 will cause the Popunder to load every time page is loaded // Specifying 1 will cause it to load only once per session var one_time=1 function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { // if the cookie exists offset += search.length end = document.cookie.indexOf(";", offset); // set the index of beginning value if (end == -1) // set the index of the end of cookie value end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; } function loadornot(){ if (get_cookie('popunder')==''){ load_pop_power() document.cookie="popunder=yes" } } function load_pop_power(){ win2=window.open(popunder[Math.floor(Math.random()*(popunder.length))],"bw",p) win2.blur() window.focus() } // comment load_pop_power and loadornot to not run this //if (one_time==0) //load_pop_power() //else //loadornot()