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[21627]=0; itemcpuperf[21627]=0; itemramperf[21627]=0; itempcislots[21627]=0; itemdelta[21627]=499; itemdelaydays[21627]=0; starkl[21627]=2308; itemvperf[21628]=0; itemcpuperf[21628]=0; itemramperf[21628]=0; itempcislots[21628]=0; itemdelta[21628]=499; itemdelaydays[21628]=0; starkl[21628]=2634; itemvperf[21629]=0; itemcpuperf[21629]=0; itemramperf[21629]=0; itempcislots[21629]=0; itemdelta[21629]=499; itemdelaydays[21629]=0; starkl[21629]=3986; itemvperf[21633]=0; itemcpuperf[21633]=0; itemramperf[21633]=0; itempcislots[21633]=0; itemdelta[21633]=0; itemdelaydays[21633]=0; starkl[21633]=6061; itemvperf[21634]=0; itemcpuperf[21634]=0; itemramperf[21634]=0; itempcislots[21634]=0; itemdelta[21634]=0; itemdelaydays[21634]=0; starkl[21634]=5759; itemvperf[20941]=0; itemcpuperf[20941]=0; itemramperf[20941]=0; itempcislots[20941]=0; itemdelta[20941]=0; itemdelaydays[20941]=0; starkl[20941]=4389; itemvperf[20942]=0; itemcpuperf[20942]=0; itemramperf[20942]=0; itempcislots[20942]=0; itemdelta[20942]=-15; itemdelaydays[20942]=0; starkl[20942]=4521; itemvperf[27916]=0; itemcpuperf[27916]=0; itemramperf[27916]=0; itempcislots[27916]=0; itemdelta[27916]=0; itemdelaydays[27916]=0; starkl[27916]=352; itemvperf[19510]=0; itemcpuperf[19510]=0; itemramperf[19510]=0; itempcislots[19510]=0; itemdelta[19510]=0; itemdelaydays[19510]=0; starkl[19510]=2990; itemvperf[19513]=0; itemcpuperf[19513]=0; itemramperf[19513]=0; itempcislots[19513]=0; itemdelta[19513]=0; itemdelaydays[19513]=0; starkl[19513]=6589; itemvperf[19512]=0; itemcpuperf[19512]=0; itemramperf[19512]=0; itempcislots[19512]=0; itemdelta[19512]=0; itemdelaydays[19512]=0; starkl[19512]=5658; itemvperf[19509]=0; itemcpuperf[19509]=0; itemramperf[19509]=0; itempcislots[19509]=0; itemdelta[19509]=0; itemdelaydays[19509]=0; starkl[19509]=1413; itemvperf[19511]=0; itemcpuperf[19511]=0; itemramperf[19511]=0; itempcislots[19511]=0; itemdelta[19511]=0; itemdelaydays[19511]=0; starkl[19511]=938; itemvperf[19514]=0; itemcpuperf[19514]=0; itemramperf[19514]=0; itempcislots[19514]=0; itemdelta[19514]=0; itemdelaydays[19514]=0; starkl[19514]=9416; itemvperf[24945]=0; itemcpuperf[24945]=0; itemramperf[24945]=0; itempcislots[24945]=0; itemdelta[24945]=0; itemdelaydays[24945]=0; starkl[24945]=7896; itemvperf[29777]=0; itemcpuperf[29777]=0; itemramperf[29777]=0; itempcislots[29777]=0; itemdelta[29777]=0; itemdelaydays[29777]=0; starkl[29777]=8981; itemvperf[26984]=0; itemcpuperf[26984]=0; itemramperf[26984]=0; itempcislots[26984]=0; itemdelta[26984]=0; itemdelaydays[26984]=0; starkl[26984]=9772; itemvperf[29786]=0; itemcpuperf[29786]=0; itemramperf[29786]=0; itempcislots[29786]=0; itemdelta[29786]=465; itemdelaydays[29786]=0; starkl[29786]=302; itemvperf[24984]=0; itemcpuperf[24984]=0; itemramperf[24984]=0; itempcislots[24984]=0; itemdelta[24984]=0; itemdelaydays[24984]=0; starkl[24984]=8398; itemvperf[24951]=0; itemcpuperf[24951]=0; itemramperf[24951]=0; itempcislots[24951]=0; itemdelta[24951]=0; itemdelaydays[24951]=0; starkl[24951]=1420; itemvperf[29813]=0; itemcpuperf[29813]=0; itemramperf[29813]=0; itempcislots[29813]=0; itemdelta[29813]=1890; itemdelaydays[29813]=0; starkl[29813]=7853; itemvperf[29814]=190; itemcpuperf[29814]=0; itemramperf[29814]=0; itempcislots[29814]=0; itemdelta[29814]=415; itemdelaydays[29814]=0; starkl[29814]=4760; itemvperf[22875]=220; itemcpuperf[22875]=0; itemramperf[22875]=0; itempcislots[22875]=0; itemdelta[22875]=0; itemdelaydays[22875]=0; starkl[22875]=1721; itemvperf[29809]=0; itemcpuperf[29809]=0; itemramperf[29809]=0; itempcislots[29809]=0; itemdelta[29809]=529; itemdelaydays[29809]=14; starkl[29809]=6763; itemvperf[29787]=0; itemcpuperf[29787]=0; itemramperf[29787]=0; itempcislots[29787]=0; itemdelta[29787]=439; itemdelaydays[29787]=0; starkl[29787]=2340; itemvperf[29788]=0; itemcpuperf[29788]=0; itemramperf[29788]=0; itempcislots[29788]=0; itemdelta[29788]=259; itemdelaydays[29788]=0; starkl[29788]=2943; itemvperf[29789]=0; itemcpuperf[29789]=0; itemramperf[29789]=0; itempcislots[29789]=0; itemdelta[29789]=219; itemdelaydays[29789]=0; starkl[29789]=2365; itemvperf[29790]=0; itemcpuperf[29790]=0; itemramperf[29790]=0; itempcislots[29790]=0; itemdelta[29790]=179; itemdelaydays[29790]=0; starkl[29790]=2334; itemvperf[20940]=0; itemcpuperf[20940]=0; itemramperf[20940]=0; itempcislots[20940]=0; itemdelta[20940]=0; itemdelaydays[20940]=0; starkl[20940]=6339; itemvperf[20844]=0; itemcpuperf[20844]=0; itemramperf[20844]=0; itempcislots[20844]=0; itemdelta[20844]=0; itemdelaydays[20844]=0; starkl[20844]=489; itemvperf[19420]=0; itemcpuperf[19420]=0; itemramperf[19420]=0; itempcislots[19420]=0; itemdelta[19420]=-80; itemdelaydays[19420]=0; starkl[19420]=6964; itemvperf[20863]=0; itemcpuperf[20863]=0; itemramperf[20863]=0; itempcislots[20863]=0; itemdelta[20863]=399; itemdelaydays[20863]=0; starkl[20863]=2046; itemvperf[20889]=0; itemcpuperf[20889]=0; itemramperf[20889]=0; itempcislots[20889]=0; itemdelta[20889]=70; itemdelaydays[20889]=0; starkl[20889]=3910; itemvperf[20862]=0; itemcpuperf[20862]=0; itemramperf[20862]=0; itempcislots[20862]=0; itemdelta[20862]=0; itemdelaydays[20862]=0; starkl[20862]=9986; itemvperf[26812]=0; itemcpuperf[26812]=0; itemramperf[26812]=0; itempcislots[26812]=0; itemdelta[26812]=0; itemdelaydays[26812]=0; starkl[26812]=6475; itemvperf[29782]=0; itemcpuperf[29782]=0; itemramperf[29782]=0; itempcislots[29782]=0; itemdelta[29782]=250; itemdelaydays[29782]=0; starkl[29782]=6839; itemvperf[25812]=0; itemcpuperf[25812]=0; itemramperf[25812]=0; itempcislots[25812]=0; itemdelta[25812]=0; itemdelaydays[25812]=0; starkl[25812]=5704; itemvperf[29781]=0; itemcpuperf[29781]=0; itemramperf[29781]=0; itempcislots[29781]=0; itemdelta[29781]=-110; itemdelaydays[29781]=0; starkl[29781]=6480; itemvperf[29783]=0; itemcpuperf[29783]=0; itemramperf[29783]=0; itempcislots[29783]=0; itemdelta[29783]=430; itemdelaydays[29783]=0; starkl[29783]=1178; itemvperf[29780]=0; itemcpuperf[29780]=0; itemramperf[29780]=0; itempcislots[29780]=0; itemdelta[29780]=180; itemdelaydays[29780]=0; starkl[29780]=1307; itemvperf[29779]=0; itemcpuperf[29779]=0; itemramperf[29779]=0; itempcislots[29779]=0; itemdelta[29779]=0; itemdelaydays[29779]=0; starkl[29779]=3364; itemvperf[24960]=0; itemcpuperf[24960]=0; itemramperf[24960]=0; itempcislots[24960]=0; itemdelta[24960]=0; itemdelaydays[24960]=0; starkl[24960]=833; itemvperf[24961]=0; itemcpuperf[24961]=0; itemramperf[24961]=0; itempcislots[24961]=0; itemdelta[24961]=-20; itemdelaydays[24961]=0; starkl[24961]=6911; itemvperf[19483]=0; itemcpuperf[19483]=0; itemramperf[19483]=0; itempcislots[19483]=0; itemdelta[19483]=-50; itemdelaydays[19483]=0; starkl[19483]=5278; itemvperf[29784]=0; itemcpuperf[29784]=0; itemramperf[29784]=0; itempcislots[29784]=0; itemdelta[29784]=110; itemdelaydays[29784]=0; starkl[29784]=6127; itemvperf[29785]=0; itemcpuperf[29785]=0; itemramperf[29785]=0; itempcislots[29785]=0; itemdelta[29785]=80; itemdelaydays[29785]=0; starkl[29785]=8174; itemvperf[19484]=0; itemcpuperf[19484]=0; itemramperf[19484]=0; itempcislots[19484]=0; itemdelta[19484]=45; itemdelaydays[19484]=0; starkl[19484]=7097; itemvperf[19485]=0; itemcpuperf[19485]=0; itemramperf[19485]=0; itempcislots[19485]=0; itemdelta[19485]=0; itemdelaydays[19485]=0; starkl[19485]=9744; itemvperf[24962]=0; itemcpuperf[24962]=0; itemramperf[24962]=0; itempcislots[24962]=0; itemdelta[24962]=99; itemdelaydays[24962]=0; starkl[24962]=9049; itemvperf[24963]=0; itemcpuperf[24963]=0; itemramperf[24963]=0; itempcislots[24963]=0; itemdelta[24963]=0; itemdelaydays[24963]=0; starkl[24963]=9791; itemvperf[19457]=0; itemcpuperf[19457]=0; itemramperf[19457]=0; itempcislots[19457]=0; itemdelta[19457]=45; itemdelaydays[19457]=0; starkl[19457]=8255; itemvperf[19458]=0; itemcpuperf[19458]=0; itemramperf[19458]=0; itempcislots[19458]=0; itemdelta[19458]=25; itemdelaydays[19458]=0; starkl[19458]=4599; itemvperf[19459]=0; itemcpuperf[19459]=0; itemramperf[19459]=0; itempcislots[19459]=0; itemdelta[19459]=0; itemdelaydays[19459]=0; starkl[19459]=9362; itemvperf[19471]=0; itemcpuperf[19471]=0; itemramperf[19471]=0; itempcislots[19471]=0; itemdelta[19471]=25; itemdelaydays[19471]=0; starkl[19471]=1107; itemvperf[29798]=0; itemcpuperf[29798]=0; itemramperf[29798]=0; itempcislots[29798]=0; itemdelta[29798]=0; itemdelaydays[29798]=0; starkl[29798]=8354; itemvperf[29799]=0; itemcpuperf[29799]=0; itemramperf[29799]=0; itempcislots[29799]=0; itemdelta[29799]=0; itemdelaydays[29799]=0; starkl[29799]=3726; itemvperf[29805]=0; itemcpuperf[29805]=0; itemramperf[29805]=0; itempcislots[29805]=0; itemdelta[29805]=0; itemdelaydays[29805]=0; starkl[29805]=1062; itemvperf[28509]=0; itemcpuperf[28509]=0; itemramperf[28509]=0; itempcislots[28509]=0; itemdelta[28509]=100; itemdelaydays[28509]=0; starkl[28509]=6051; itemvperf[19501]=0; itemcpuperf[19501]=0; itemramperf[19501]=0; itempcislots[19501]=0; itemdelta[19501]=399; itemdelaydays[19501]=0; starkl[19501]=7342; itemvperf[19502]=0; itemcpuperf[19502]=0; itemramperf[19502]=0; itempcislots[19502]=0; itemdelta[19502]=239; itemdelaydays[19502]=0; starkl[19502]=4760; itemvperf[19503]=0; itemcpuperf[19503]=0; itemramperf[19503]=0; itempcislots[19503]=0; itemdelta[19503]=179; itemdelaydays[19503]=0; starkl[19503]=9425; itemvperf[22240]=0; itemcpuperf[22240]=0; itemramperf[22240]=0; itempcislots[22240]=0; itemdelta[22240]=0; itemdelaydays[22240]=0; starkl[22240]=3677; itemvperf[29810]=0; itemcpuperf[29810]=0; itemramperf[29810]=0; itempcislots[29810]=0; itemdelta[29810]=0; itemdelaydays[29810]=0; starkl[29810]=3057; itemvperf[29800]=0; itemcpuperf[29800]=0; itemramperf[29800]=0; itempcislots[29800]=0; itemdelta[29800]=0; itemdelaydays[29800]=0; starkl[29800]=5811; itemvperf[29801]=0; itemcpuperf[29801]=0; itemramperf[29801]=0; itempcislots[29801]=0; itemdelta[29801]=0; itemdelaydays[29801]=0; starkl[29801]=1518; itemvperf[19517]=0; itemcpuperf[19517]=0; itemramperf[19517]=0; itempcislots[19517]=0; itemdelta[19517]=69; itemdelaydays[19517]=0; starkl[19517]=8316; itemvperf[29797]=0; itemcpuperf[29797]=0; itemramperf[29797]=0; itempcislots[29797]=0; itemdelta[29797]=10; itemdelaydays[29797]=0; starkl[29797]=967; itemvperf[19515]=0; itemcpuperf[19515]=0; itemramperf[19515]=0; itempcislots[19515]=0; itemdelta[19515]=0; itemdelaydays[19515]=0; starkl[19515]=2628; itemvperf[29806]=0; itemcpuperf[29806]=0; itemramperf[29806]=0; itempcislots[29806]=0; itemdelta[29806]=5; itemdelaydays[29806]=0; starkl[29806]=6275; itemvperf[29807]=0; itemcpuperf[29807]=0; itemramperf[29807]=0; itempcislots[29807]=0; itemdelta[29807]=0; itemdelaydays[29807]=0; starkl[29807]=1647; itemvperf[29808]=0; itemcpuperf[29808]=0; itemramperf[29808]=0; itempcislots[29808]=0; itemdelta[29808]=0; itemdelaydays[29808]=0; starkl[29808]=1623; itemvperf[29778]=0; itemcpuperf[29778]=0; itemramperf[29778]=0; itempcislots[29778]=0; itemdelta[29778]=0; itemdelaydays[29778]=0; starkl[29778]=696; itemvperf[19469]=0; itemcpuperf[19469]=0; itemramperf[19469]=0; itempcislots[19469]=0; itemdelta[19469]=-55; itemdelaydays[19469]=0; starkl[19469]=1900; itemvperf[20890]=0; itemcpuperf[20890]=0; itemramperf[20890]=0; itempcislots[20890]=0; itemdelta[20890]=30; itemdelaydays[20890]=0; starkl[20890]=8967; itemvperf[20888]=0; itemcpuperf[20888]=0; itemramperf[20888]=0; itempcislots[20888]=0; itemdelta[20888]=0; itemdelaydays[20888]=0; starkl[20888]=2298; itemvperf[19478]=0; itemcpuperf[19478]=0; itemramperf[19478]=0; itempcislots[19478]=0; itemdelta[19478]=-30; itemdelaydays[19478]=0; starkl[19478]=5575; itemvperf[19421]=0; itemcpuperf[19421]=0; itemramperf[19421]=0; itempcislots[19421]=0; itemdelta[19421]=0; itemdelaydays[19421]=0; starkl[19421]=6747; itemvperf[19422]=0; itemcpuperf[19422]=0; itemramperf[19422]=0; itempcislots[19422]=0; itemdelta[19422]=260; itemdelaydays[19422]=0; starkl[19422]=7196; itemvperf[20556]=0; itemcpuperf[20556]=0; itemramperf[20556]=0; itempcislots[20556]=0; itemdelta[20556]=0; itemdelaydays[20556]=0; starkl[20556]=3618; itemvperf[20555]=0; itemcpuperf[20555]=0; itemramperf[20555]=0; itempcislots[20555]=0; itemdelta[20555]=0; itemdelaydays[20555]=0; starkl[20555]=4166; itemvperf[20554]=0; itemcpuperf[20554]=0; itemramperf[20554]=0; itempcislots[20554]=0; itemdelta[20554]=0; itemdelaydays[20554]=0; starkl[20554]=8412; itemvperf[20945]=0; itemcpuperf[20945]=0; itemramperf[20945]=0; itempcislots[20945]=0; itemdelta[20945]=-25; itemdelaydays[20945]=0; starkl[20945]=5842; itemvperf[29791]=0; itemcpuperf[29791]=0; itemramperf[29791]=0; itempcislots[29791]=0; itemdelta[29791]=0; itemdelaydays[29791]=0; starkl[29791]=8632; itemvperf[29792]=0; itemcpuperf[29792]=0; itemramperf[29792]=0; itempcislots[29792]=0; itemdelta[29792]=0; itemdelaydays[29792]=0; starkl[29792]=5955; itemvperf[29793]=0; itemcpuperf[29793]=0; itemramperf[29793]=0; itempcislots[29793]=0; itemdelta[29793]=0; itemdelaydays[29793]=0; starkl[29793]=597; itemvperf[29794]=0; itemcpuperf[29794]=0; itemramperf[29794]=0; itempcislots[29794]=0; itemdelta[29794]=149; itemdelaydays[29794]=0; starkl[29794]=3943; itemvperf[29795]=0; itemcpuperf[29795]=0; itemramperf[29795]=0; itempcislots[29795]=0; itemdelta[29795]=0; itemdelaydays[29795]=0; starkl[29795]=7349; itemvperf[19518]=0; itemcpuperf[19518]=0; itemramperf[19518]=0; itempcislots[19518]=0; itemdelta[19518]=499; itemdelaydays[19518]=0; starkl[19518]=7409; itemvperf[19519]=0; itemcpuperf[19519]=0; itemramperf[19519]=0; itempcislots[19519]=0; itemdelta[19519]=249; itemdelaydays[19519]=0; starkl[19519]=3244; itemvperf[19520]=0; itemcpuperf[19520]=0; itemramperf[19520]=0; itempcislots[19520]=0; itemdelta[19520]=0; itemdelaydays[19520]=0; starkl[19520]=3642; itemvperf[29796]=0; itemcpuperf[29796]=0; itemramperf[29796]=0; itempcislots[29796]=0; itemdelta[29796]=0; itemdelaydays[29796]=0; starkl[29796]=4802; itemvperf[29811]=0; itemcpuperf[29811]=0; itemramperf[29811]=0; itempcislots[29811]=0; itemdelta[29811]=-500; itemdelaydays[29811]=0; starkl[29811]=3730; itemvperf[29812]=0; itemcpuperf[29812]=0; itemramperf[29812]=0; itempcislots[29812]=0; itemdelta[29812]=0; itemdelaydays[29812]=0; starkl[29812]=7896; caseImages[21627]=new Image(); caseImages[21627].src='/images/upload/bb_red.jpg'; caseImages[21628]=new Image(); caseImages[21628].src='/images/upload/bb_yellow.jpg'; caseImages[21629]=new Image(); caseImages[21629].src='/images/upload/bb_blue.jpg'; caseImages[21633]=new Image(); caseImages[21633].src='/images/upload/bb_silver.jpg'; caseImages[21634]=new Image(); caseImages[21634].src='/images/upload/bb_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()