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]=2008; itemvperf[14775]=0; itemcpuperf[14775]=0; itemramperf[14775]=0; itempcislots[14775]=0; itemdelta[14775]=0; itemdelaydays[14775]=0; starkl[14775]=3866; itemvperf[15092]=0; itemcpuperf[15092]=0; itemramperf[15092]=0; itempcislots[15092]=0; itemdelta[15092]=25; itemdelaydays[15092]=0; starkl[15092]=5111; itemvperf[15091]=0; itemcpuperf[15091]=0; itemramperf[15091]=0; itempcislots[15091]=0; itemdelta[15091]=0; itemdelaydays[15091]=0; starkl[15091]=1696; itemvperf[30213]=0; itemcpuperf[30213]=0; itemramperf[30213]=0; itempcislots[30213]=0; itemdelta[30213]=0; itemdelaydays[30213]=0; starkl[30213]=4746; itemvperf[26443]=0; itemcpuperf[26443]=0; itemramperf[26443]=0; itempcislots[26443]=0; itemdelta[26443]=125; itemdelaydays[26443]=0; starkl[26443]=9722; itemvperf[26441]=0; itemcpuperf[26441]=0; itemramperf[26441]=0; itempcislots[26441]=0; itemdelta[26441]=85; itemdelaydays[26441]=0; starkl[26441]=5975; itemvperf[9872]=0; itemcpuperf[9872]=91; itemramperf[9872]=0; itempcislots[9872]=0; itemdelta[9872]=0; itemdelaydays[9872]=0; starkl[9872]=4922; itemvperf[9876]=0; itemcpuperf[9876]=0; itemramperf[9876]=0; itempcislots[9876]=0; itemdelta[9876]=30; itemdelaydays[9876]=0; starkl[9876]=9982; itemvperf[9877]=0; itemcpuperf[9877]=0; itemramperf[9877]=0; itempcislots[9877]=0; itemdelta[9877]=0; itemdelaydays[9877]=0; starkl[9877]=9468; itemvperf[30214]=0; itemcpuperf[30214]=0; itemramperf[30214]=0; itempcislots[30214]=0; itemdelta[30214]=65; itemdelaydays[30214]=0; starkl[30214]=1360; itemvperf[30216]=0; itemcpuperf[30216]=0; itemramperf[30216]=0; itempcislots[30216]=0; itemdelta[30216]=0; itemdelaydays[30216]=0; starkl[30216]=2802; itemvperf[26444]=180; itemcpuperf[26444]=0; itemramperf[26444]=0; itempcislots[26444]=0; itemdelta[26444]=240; itemdelaydays[26444]=0; starkl[26444]=7162; itemvperf[26445]=163; itemcpuperf[26445]=0; itemramperf[26445]=0; itempcislots[26445]=0; itemdelta[26445]=220; itemdelaydays[26445]=0; starkl[26445]=1626; itemvperf[26446]=160; itemcpuperf[26446]=0; itemramperf[26446]=0; itempcislots[26446]=0; itemdelta[26446]=145; itemdelaydays[26446]=0; starkl[26446]=7872; itemvperf[26440]=122; itemcpuperf[26440]=0; itemramperf[26440]=0; itempcislots[26440]=0; itemdelta[26440]=105; itemdelaydays[26440]=0; starkl[26440]=3195; itemvperf[21719]=0; itemcpuperf[21719]=0; itemramperf[21719]=0; itempcislots[21719]=0; itemdelta[21719]=45; itemdelaydays[21719]=0; starkl[21719]=1284; itemvperf[28835]=0; itemcpuperf[28835]=0; itemramperf[28835]=0; itempcislots[28835]=0; itemdelta[28835]=0; itemdelaydays[28835]=0; starkl[28835]=9017; itemvperf[29927]=0; itemcpuperf[29927]=0; itemramperf[29927]=0; itempcislots[29927]=0; itemdelta[29927]=439; itemdelaydays[29927]=0; starkl[29927]=6043; itemvperf[29926]=0; itemcpuperf[29926]=0; itemramperf[29926]=0; itempcislots[29926]=0; itemdelta[29926]=259; itemdelaydays[29926]=0; starkl[29926]=7812; itemvperf[29924]=0; itemcpuperf[29924]=0; itemramperf[29924]=0; itempcislots[29924]=0; itemdelta[29924]=219; itemdelaydays[29924]=0; starkl[29924]=4596; itemvperf[29925]=0; itemcpuperf[29925]=0; itemramperf[29925]=0; itempcislots[29925]=0; itemdelta[29925]=179; itemdelaydays[29925]=0; starkl[29925]=7933; itemvperf[9887]=0; itemcpuperf[9887]=0; itemramperf[9887]=0; itempcislots[9887]=0; itemdelta[9887]=0; itemdelaydays[9887]=0; starkl[9887]=4660; itemvperf[9888]=0; itemcpuperf[9888]=0; itemramperf[9888]=0; itempcislots[9888]=0; itemdelta[9888]=55; itemdelaydays[9888]=0; starkl[9888]=1228; itemvperf[9889]=0; itemcpuperf[9889]=0; itemramperf[9889]=0; itempcislots[9889]=0; itemdelta[9889]=0; itemdelaydays[9889]=0; starkl[9889]=7556; itemvperf[9890]=0; itemcpuperf[9890]=0; itemramperf[9890]=0; itempcislots[9890]=0; itemdelta[9890]=59; itemdelaydays[9890]=0; starkl[9890]=6381; itemvperf[9892]=0; itemcpuperf[9892]=0; itemramperf[9892]=0; itempcislots[9892]=0; itemdelta[9892]=39; itemdelaydays[9892]=0; starkl[9892]=6610; itemvperf[9893]=0; itemcpuperf[9893]=0; itemramperf[9893]=0; itempcislots[9893]=0; itemdelta[9893]=19; itemdelaydays[9893]=0; starkl[9893]=8218; itemvperf[9894]=0; itemcpuperf[9894]=0; itemramperf[9894]=0; itempcislots[9894]=0; itemdelta[9894]=0; itemdelaydays[9894]=0; starkl[9894]=3416; itemvperf[26447]=0; itemcpuperf[26447]=0; itemramperf[26447]=0; itempcislots[26447]=0; itemdelta[26447]=45; itemdelaydays[26447]=0; starkl[26447]=4530; itemvperf[26448]=0; itemcpuperf[26448]=0; itemramperf[26448]=0; itempcislots[26448]=0; itemdelta[26448]=30; itemdelaydays[26448]=0; starkl[26448]=6554; itemvperf[26449]=0; itemcpuperf[26449]=0; itemramperf[26449]=0; itempcislots[26449]=0; itemdelta[26449]=0; itemdelaydays[26449]=0; starkl[26449]=3526; itemvperf[14787]=0; itemcpuperf[14787]=0; itemramperf[14787]=0; itempcislots[14787]=0; itemdelta[14787]=0; itemdelaydays[14787]=0; starkl[14787]=8445; itemvperf[15470]=0; itemcpuperf[15470]=0; itemramperf[15470]=0; itempcislots[15470]=0; itemdelta[15470]=140; itemdelaydays[15470]=0; starkl[15470]=6664; itemvperf[9899]=0; itemcpuperf[9899]=0; itemramperf[9899]=0; itempcislots[9899]=0; itemdelta[9899]=45; itemdelaydays[9899]=0; starkl[9899]=1407; itemvperf[9901]=0; itemcpuperf[9901]=0; itemramperf[9901]=0; itempcislots[9901]=0; itemdelta[9901]=35; itemdelaydays[9901]=0; starkl[9901]=7288; itemvperf[9904]=0; itemcpuperf[9904]=0; itemramperf[9904]=0; itempcislots[9904]=0; itemdelta[9904]=0; itemdelaydays[9904]=0; starkl[9904]=3532; itemvperf[23973]=0; itemcpuperf[23973]=0; itemramperf[23973]=0; itempcislots[23973]=0; itemdelta[23973]=0; itemdelaydays[23973]=0; starkl[23973]=8010; itemvperf[21071]=0; itemcpuperf[21071]=0; itemramperf[21071]=0; itempcislots[21071]=0; itemdelta[21071]=59; itemdelaydays[21071]=0; starkl[21071]=6334; itemvperf[14789]=0; itemcpuperf[14789]=0; itemramperf[14789]=0; itempcislots[14789]=0; itemdelta[14789]=39; itemdelaydays[14789]=0; starkl[14789]=5583; itemvperf[14790]=0; itemcpuperf[14790]=0; itemramperf[14790]=0; itempcislots[14790]=0; itemdelta[14790]=29; itemdelaydays[14790]=0; starkl[14790]=3362; itemvperf[14793]=0; itemcpuperf[14793]=0; itemramperf[14793]=0; itempcislots[14793]=0; itemdelta[14793]=0; itemdelaydays[14793]=0; starkl[14793]=8393; itemvperf[9911]=0; itemcpuperf[9911]=0; itemramperf[9911]=0; itempcislots[9911]=0; itemdelta[9911]=0; itemdelaydays[9911]=0; starkl[9911]=5454; itemvperf[9912]=0; itemcpuperf[9912]=0; itemramperf[9912]=0; itempcislots[9912]=0; itemdelta[9912]=0; itemdelaydays[9912]=0; starkl[9912]=6260; itemvperf[15631]=0; itemcpuperf[15631]=0; itemramperf[15631]=0; itempcislots[15631]=0; itemdelta[15631]=25; itemdelaydays[15631]=0; starkl[15631]=2604; itemvperf[9914]=0; itemcpuperf[9914]=0; itemramperf[9914]=0; itempcislots[9914]=0; itemdelta[9914]=0; itemdelaydays[9914]=0; starkl[9914]=5228; itemvperf[9915]=0; itemcpuperf[9915]=0; itemramperf[9915]=0; itempcislots[9915]=0; itemdelta[9915]=75; itemdelaydays[9915]=0; starkl[9915]=7477; itemvperf[12359]=0; itemcpuperf[12359]=0; itemramperf[12359]=0; itempcislots[12359]=0; itemdelta[12359]=0; itemdelaydays[12359]=0; starkl[12359]=7724; itemvperf[9916]=0; itemcpuperf[9916]=0; itemramperf[9916]=0; itempcislots[9916]=0; itemdelta[9916]=65; itemdelaydays[9916]=0; starkl[9916]=1272; itemvperf[9917]=0; itemcpuperf[9917]=0; itemramperf[9917]=0; itempcislots[9917]=3; itemdelta[9917]=35; itemdelaydays[9917]=0; starkl[9917]=6625; itemvperf[14808]=0; itemcpuperf[14808]=0; itemramperf[14808]=0; itempcislots[14808]=0; itemdelta[14808]=0; itemdelaydays[14808]=0; starkl[14808]=8038; itemvperf[9919]=0; itemcpuperf[9919]=0; itemramperf[9919]=0; itempcislots[9919]=0; itemdelta[9919]=0; itemdelaydays[9919]=0; starkl[9919]=2614; itemvperf[25288]=0; itemcpuperf[25288]=0; itemramperf[25288]=0; itempcislots[25288]=0; itemdelta[25288]=25; itemdelaydays[25288]=0; starkl[25288]=1659; itemvperf[25287]=0; itemcpuperf[25287]=0; itemramperf[25287]=0; itempcislots[25287]=0; itemdelta[25287]=0; itemdelaydays[25287]=0; starkl[25287]=8090; itemvperf[28494]=0; itemcpuperf[28494]=0; itemramperf[28494]=0; itempcislots[28494]=0; itemdelta[28494]=130; itemdelaydays[28494]=0; starkl[28494]=5329; itemvperf[28495]=0; itemcpuperf[28495]=0; itemramperf[28495]=0; itempcislots[28495]=0; itemdelta[28495]=0; itemdelaydays[28495]=0; starkl[28495]=5165; itemvperf[31307]=0; itemcpuperf[31307]=0; itemramperf[31307]=0; itempcislots[31307]=0; itemdelta[31307]=349; itemdelaydays[31307]=0; starkl[31307]=6715; itemvperf[31308]=0; itemcpuperf[31308]=0; itemramperf[31308]=0; itempcislots[31308]=0; itemdelta[31308]=199; itemdelaydays[31308]=0; starkl[31308]=3458; itemvperf[31309]=0; itemcpuperf[31309]=0; itemramperf[31309]=0; itempcislots[31309]=0; itemdelta[31309]=149; itemdelaydays[31309]=0; starkl[31309]=8908; itemvperf[14632]=0; itemcpuperf[14632]=0; itemramperf[14632]=0; itempcislots[14632]=0; itemdelta[14632]=0; itemdelaydays[14632]=0; starkl[14632]=1905; itemvperf[18645]=0; itemcpuperf[18645]=0; itemramperf[18645]=0; itempcislots[18645]=0; itemdelta[18645]=0; itemdelaydays[18645]=0; starkl[18645]=5137; itemvperf[17951]=0; itemcpuperf[17951]=0; itemramperf[17951]=0; itempcislots[17951]=0; itemdelta[17951]=19; itemdelaydays[17951]=0; starkl[17951]=8700; itemvperf[17952]=0; itemcpuperf[17952]=0; itemramperf[17952]=0; itempcislots[17952]=0; itemdelta[17952]=19; itemdelaydays[17952]=0; starkl[17952]=7765; itemvperf[9931]=0; itemcpuperf[9931]=0; itemramperf[9931]=0; itempcislots[9931]=0; itemdelta[9931]=0; itemdelaydays[9931]=0; starkl[9931]=2089; itemvperf[9932]=0; itemcpuperf[9932]=0; itemramperf[9932]=0; itempcislots[9932]=0; itemdelta[9932]=0; itemdelaydays[9932]=0; starkl[9932]=6048; itemvperf[15804]=0; itemcpuperf[15804]=0; itemramperf[15804]=0; itempcislots[15804]=0; itemdelta[15804]=39; itemdelaydays[15804]=0; starkl[15804]=7979; itemvperf[9934]=0; itemcpuperf[9934]=0; itemramperf[9934]=0; itempcislots[9934]=0; itemdelta[9934]=85; itemdelaydays[9934]=0; starkl[9934]=489; itemvperf[19724]=0; itemcpuperf[19724]=0; itemramperf[19724]=0; itempcislots[19724]=0; itemdelta[19724]=65; itemdelaydays[19724]=0; starkl[19724]=8626; itemvperf[28933]=0; itemcpuperf[28933]=0; itemramperf[28933]=0; itempcislots[28933]=0; itemdelta[28933]=0; itemdelaydays[28933]=0; starkl[28933]=6411; itemvperf[9937]=0; itemcpuperf[9937]=0; itemramperf[9937]=0; itempcislots[9937]=0; itemdelta[9937]=-10; itemdelaydays[9937]=0; starkl[9937]=5097; itemvperf[19725]=0; itemcpuperf[19725]=0; itemramperf[19725]=0; itempcislots[19725]=0; itemdelta[19725]=35; itemdelaydays[19725]=0; starkl[19725]=4727; itemvperf[29495]=0; itemcpuperf[29495]=0; itemramperf[29495]=0; itempcislots[29495]=0; itemdelta[29495]=0; itemdelaydays[29495]=0; starkl[29495]=2516; itemvperf[9940]=0; itemcpuperf[9940]=0; itemramperf[9940]=0; itempcislots[9940]=0; itemdelta[9940]=-10; itemdelaydays[9940]=0; starkl[9940]=1013; itemvperf[25286]=0; itemcpuperf[25286]=0; itemramperf[25286]=0; itempcislots[25286]=0; itemdelta[25286]=45; itemdelaydays[25286]=0; starkl[25286]=526; itemvperf[25285]=0; itemcpuperf[25285]=0; itemramperf[25285]=0; itempcislots[25285]=0; itemdelta[25285]=0; itemdelaydays[25285]=0; starkl[25285]=7007; itemvperf[9941]=0; itemcpuperf[9941]=0; itemramperf[9941]=0; itempcislots[9941]=0; itemdelta[9941]=19; itemdelaydays[9941]=0; starkl[9941]=3409; itemvperf[9942]=0; itemcpuperf[9942]=0; itemramperf[9942]=0; itempcislots[9942]=0; itemdelta[9942]=0; itemdelaydays[9942]=0; starkl[9942]=7317; itemvperf[9943]=0; itemcpuperf[9943]=0; itemramperf[9943]=0; itempcislots[9943]=0; itemdelta[9943]=0; itemdelaydays[9943]=0; starkl[9943]=8352; itemvperf[9944]=0; itemcpuperf[9944]=0; itemramperf[9944]=0; itempcislots[9944]=0; itemdelta[9944]=0; itemdelaydays[9944]=0; starkl[9944]=3030; itemvperf[9945]=0; itemcpuperf[9945]=0; itemramperf[9945]=0; itempcislots[9945]=0; itemdelta[9945]=0; itemdelaydays[9945]=0; starkl[9945]=9134; itemvperf[9946]=0; itemcpuperf[9946]=0; itemramperf[9946]=0; itempcislots[9946]=0; itemdelta[9946]=0; itemdelaydays[9946]=0; starkl[9946]=9266; itemvperf[9947]=0; itemcpuperf[9947]=0; itemramperf[9947]=0; itempcislots[9947]=0; itemdelta[9947]=0; itemdelaydays[9947]=0; starkl[9947]=6319; itemvperf[9948]=0; itemcpuperf[9948]=0; itemramperf[9948]=0; itempcislots[9948]=0; itemdelta[9948]=0; itemdelaydays[9948]=0; starkl[9948]=6751; itemvperf[9949]=0; itemcpuperf[9949]=0; itemramperf[9949]=0; itempcislots[9949]=0; itemdelta[9949]=149; itemdelaydays[9949]=0; starkl[9949]=6918; itemvperf[9950]=0; itemcpuperf[9950]=0; itemramperf[9950]=0; itempcislots[9950]=0; itemdelta[9950]=399; itemdelaydays[9950]=0; starkl[9950]=700; itemvperf[9951]=0; itemcpuperf[9951]=0; itemramperf[9951]=0; itempcislots[9951]=0; itemdelta[9951]=329; itemdelaydays[9951]=0; starkl[9951]=9514; itemvperf[9952]=0; itemcpuperf[9952]=0; itemramperf[9952]=0; itempcislots[9952]=0; itemdelta[9952]=299; itemdelaydays[9952]=0; starkl[9952]=6570; itemvperf[9953]=0; itemcpuperf[9953]=0; itemramperf[9953]=0; itempcislots[9953]=0; itemdelta[9953]=229; itemdelaydays[9953]=0; starkl[9953]=567; itemvperf[9954]=0; itemcpuperf[9954]=0; itemramperf[9954]=0; itempcislots[9954]=0; itemdelta[9954]=199; itemdelaydays[9954]=0; starkl[9954]=1886; itemvperf[9955]=0; itemcpuperf[9955]=0; itemramperf[9955]=0; itempcislots[9955]=0; itemdelta[9955]=129; itemdelaydays[9955]=0; starkl[9955]=9664; itemvperf[9956]=0; itemcpuperf[9956]=0; itemramperf[9956]=0; itempcislots[9956]=0; itemdelta[9956]=99; itemdelaydays[9956]=0; starkl[9956]=4569; itemvperf[9957]=0; itemcpuperf[9957]=0; itemramperf[9957]=0; itempcislots[9957]=0; itemdelta[9957]=29; itemdelaydays[9957]=0; starkl[9957]=7250; itemvperf[9958]=0; itemcpuperf[9958]=0; itemramperf[9958]=0; itempcislots[9958]=0; itemdelta[9958]=0; itemdelaydays[9958]=0; starkl[9958]=9251; itemvperf[9959]=0; itemcpuperf[9959]=0; itemramperf[9959]=0; itempcislots[9959]=0; itemdelta[9959]=0; itemdelaydays[9959]=0; starkl[9959]=1518; itemvperf[9960]=0; itemcpuperf[9960]=0; itemramperf[9960]=0; itempcislots[9960]=0; itemdelta[9960]=0; itemdelaydays[9960]=0; starkl[9960]=5722; itemvperf[21777]=0; itemcpuperf[21777]=0; itemramperf[21777]=0; itempcislots[21777]=0; itemdelta[21777]=0; itemdelaydays[21777]=0; starkl[21777]=5733; 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); //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()