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[16598]=0; itemcpuperf[16598]=0; itemramperf[16598]=0; itempcislots[16598]=0; itemdelta[16598]=0; itemdelaydays[16598]=0; starkl[16598]=7055; itemvperf[16657]=0; itemcpuperf[16657]=0; itemramperf[16657]=0; itempcislots[16657]=0; itemdelta[16657]=0; itemdelaydays[16657]=0; starkl[16657]=1308; itemvperf[16688]=0; itemcpuperf[16688]=0; itemramperf[16688]=0; itempcislots[16688]=0; itemdelta[16688]=0; itemdelaydays[16688]=0; starkl[16688]=4662; itemvperf[16689]=0; itemcpuperf[16689]=0; itemramperf[16689]=0; itempcislots[16689]=0; itemdelta[16689]=240; itemdelaydays[16689]=0; starkl[16689]=4577; itemvperf[16938]=0; itemcpuperf[16938]=0; itemramperf[16938]=0; itempcislots[16938]=0; itemdelta[16938]=0; itemdelaydays[16938]=0; starkl[16938]=3137; itemvperf[16939]=0; itemcpuperf[16939]=0; itemramperf[16939]=0; itempcislots[16939]=0; itemdelta[16939]=3120; itemdelaydays[16939]=0; starkl[16939]=2545; itemvperf[16940]=0; itemcpuperf[16940]=0; itemramperf[16940]=0; itempcislots[16940]=0; itemdelta[16940]=2220; itemdelaydays[16940]=0; starkl[16940]=3484; itemvperf[16941]=0; itemcpuperf[16941]=0; itemramperf[16941]=0; itempcislots[16941]=0; itemdelta[16941]=1715; itemdelaydays[16941]=0; starkl[16941]=4178; itemvperf[16942]=0; itemcpuperf[16942]=0; itemramperf[16942]=0; itempcislots[16942]=0; itemdelta[16942]=1060; itemdelaydays[16942]=0; starkl[16942]=8168; itemvperf[16943]=0; itemcpuperf[16943]=0; itemramperf[16943]=0; itempcislots[16943]=0; itemdelta[16943]=340; itemdelaydays[16943]=0; starkl[16943]=7609; itemvperf[16944]=0; itemcpuperf[16944]=0; itemramperf[16944]=0; itempcislots[16944]=0; itemdelta[16944]=465; itemdelaydays[16944]=0; starkl[16944]=1224; itemvperf[16945]=0; itemcpuperf[16945]=0; itemramperf[16945]=0; itempcislots[16945]=0; itemdelta[16945]=335; itemdelaydays[16945]=0; starkl[16945]=8914; itemvperf[16946]=0; itemcpuperf[16946]=0; itemramperf[16946]=0; itempcislots[16946]=0; itemdelta[16946]=1395; itemdelaydays[16946]=0; starkl[16946]=3038; itemvperf[16947]=0; itemcpuperf[16947]=0; itemramperf[16947]=0; itempcislots[16947]=0; itemdelta[16947]=610; itemdelaydays[16947]=0; starkl[16947]=8189; itemvperf[16948]=0; itemcpuperf[16948]=0; itemramperf[16948]=0; itempcislots[16948]=0; itemdelta[16948]=690; itemdelaydays[16948]=0; starkl[16948]=1032; itemvperf[16949]=0; itemcpuperf[16949]=0; itemramperf[16949]=0; itempcislots[16949]=0; itemdelta[16949]=365; itemdelaydays[16949]=0; starkl[16949]=5009; itemvperf[16950]=0; itemcpuperf[16950]=0; itemramperf[16950]=0; itempcislots[16950]=0; itemdelta[16950]=155; itemdelaydays[16950]=0; starkl[16950]=6188; itemvperf[16951]=0; itemcpuperf[16951]=0; itemramperf[16951]=0; itempcislots[16951]=0; itemdelta[16951]=65; itemdelaydays[16951]=0; starkl[16951]=6543; itemvperf[16952]=0; itemcpuperf[16952]=0; itemramperf[16952]=0; itempcislots[16952]=0; itemdelta[16952]=0; itemdelaydays[16952]=0; starkl[16952]=8220; itemvperf[16599]=0; itemcpuperf[16599]=0; itemramperf[16599]=0; itempcislots[16599]=0; itemdelta[16599]=0; itemdelaydays[16599]=0; starkl[16599]=3114; itemvperf[16953]=0; itemcpuperf[16953]=0; itemramperf[16953]=0; itempcislots[16953]=0; itemdelta[16953]=760; itemdelaydays[16953]=0; starkl[16953]=3558; itemvperf[16954]=0; itemcpuperf[16954]=0; itemramperf[16954]=0; itempcislots[16954]=0; itemdelta[16954]=299; itemdelaydays[16954]=0; starkl[16954]=3396; itemvperf[16955]=0; itemcpuperf[16955]=0; itemramperf[16955]=0; itempcislots[16955]=0; itemdelta[16955]=160; itemdelaydays[16955]=0; starkl[16955]=5876; itemvperf[16956]=0; itemcpuperf[16956]=0; itemramperf[16956]=0; itempcislots[16956]=0; itemdelta[16956]=0; itemdelaydays[16956]=0; starkl[16956]=3333; itemvperf[16663]=0; itemcpuperf[16663]=0; itemramperf[16663]=0; itempcislots[16663]=0; itemdelta[16663]=0; itemdelaydays[16663]=0; starkl[16663]=9506; itemvperf[26380]=0; itemcpuperf[26380]=0; itemramperf[26380]=0; itempcislots[26380]=0; itemdelta[26380]=299; itemdelaydays[26380]=0; starkl[26380]=6177; itemvperf[16640]=0; itemcpuperf[16640]=0; itemramperf[16640]=0; itempcislots[16640]=0; itemdelta[16640]=0; itemdelaydays[16640]=0; starkl[16640]=9427; itemvperf[16958]=0; itemcpuperf[16958]=0; itemramperf[16958]=0; itempcislots[16958]=0; itemdelta[16958]=115; itemdelaydays[16958]=0; starkl[16958]=9567; itemvperf[16658]=0; itemcpuperf[16658]=0; itemramperf[16658]=0; itempcislots[16658]=0; itemdelta[16658]=0; itemdelaydays[16658]=0; starkl[16658]=5685; itemvperf[16600]=0; itemcpuperf[16600]=0; itemramperf[16600]=0; itempcislots[16600]=0; itemdelta[16600]=0; itemdelaydays[16600]=0; starkl[16600]=3034; itemvperf[16972]=0; itemcpuperf[16972]=0; itemramperf[16972]=0; itempcislots[16972]=0; itemdelta[16972]=575; itemdelaydays[16972]=0; starkl[16972]=7592; itemvperf[16608]=0; itemcpuperf[16608]=0; itemramperf[16608]=0; itempcislots[16608]=0; itemdelta[16608]=110; itemdelaydays[16608]=0; starkl[16608]=813; itemvperf[16971]=0; itemcpuperf[16971]=0; itemramperf[16971]=0; itempcislots[16971]=0; itemdelta[16971]=0; itemdelaydays[16971]=0; starkl[16971]=538; itemvperf[16974]=0; itemcpuperf[16974]=0; itemramperf[16974]=0; itempcislots[16974]=0; itemdelta[16974]=845; itemdelaydays[16974]=0; starkl[16974]=3531; itemvperf[16611]=0; itemcpuperf[16611]=0; itemramperf[16611]=0; itempcislots[16611]=0; itemdelta[16611]=380; itemdelaydays[16611]=0; starkl[16611]=7802; itemvperf[16973]=0; itemcpuperf[16973]=0; itemramperf[16973]=0; itempcislots[16973]=0; itemdelta[16973]=270; itemdelaydays[16973]=0; starkl[16973]=9539; itemvperf[16613]=0; itemcpuperf[16613]=0; itemramperf[16613]=0; itempcislots[16613]=0; itemdelta[16613]=0; itemdelaydays[16613]=0; starkl[16613]=2519; itemvperf[16976]=0; itemcpuperf[16976]=0; itemramperf[16976]=0; itempcislots[16976]=0; itemdelta[16976]=845; itemdelaydays[16976]=0; starkl[16976]=1074; itemvperf[16962]=0; itemcpuperf[16962]=0; itemramperf[16962]=0; itempcislots[16962]=0; itemdelta[16962]=380; itemdelaydays[16962]=0; starkl[16962]=5387; itemvperf[16975]=0; itemcpuperf[16975]=0; itemramperf[16975]=0; itempcislots[16975]=0; itemdelta[16975]=270; itemdelaydays[16975]=0; starkl[16975]=7993; itemvperf[16959]=0; itemcpuperf[16959]=0; itemramperf[16959]=0; itempcislots[16959]=0; itemdelta[16959]=0; itemdelaydays[16959]=0; starkl[16959]=2201; itemvperf[16978]=0; itemcpuperf[16978]=0; itemramperf[16978]=0; itempcislots[16978]=0; itemdelta[16978]=845; itemdelaydays[16978]=0; starkl[16978]=6956; itemvperf[16619]=0; itemcpuperf[16619]=0; itemramperf[16619]=0; itempcislots[16619]=0; itemdelta[16619]=380; itemdelaydays[16619]=0; starkl[16619]=8214; itemvperf[16977]=0; itemcpuperf[16977]=0; itemramperf[16977]=0; itempcislots[16977]=0; itemdelta[16977]=270; itemdelaydays[16977]=0; starkl[16977]=519; itemvperf[16621]=0; itemcpuperf[16621]=0; itemramperf[16621]=0; itempcislots[16621]=0; itemdelta[16621]=0; itemdelaydays[16621]=0; starkl[16621]=5697; itemvperf[16980]=0; itemcpuperf[16980]=0; itemramperf[16980]=0; itempcislots[16980]=0; itemdelta[16980]=845; itemdelaydays[16980]=0; starkl[16980]=2736; itemvperf[16966]=0; itemcpuperf[16966]=0; itemramperf[16966]=0; itempcislots[16966]=0; itemdelta[16966]=380; itemdelaydays[16966]=0; starkl[16966]=1496; itemvperf[16979]=0; itemcpuperf[16979]=0; itemramperf[16979]=0; itempcislots[16979]=0; itemdelta[16979]=270; itemdelaydays[16979]=0; starkl[16979]=646; itemvperf[16963]=0; itemcpuperf[16963]=0; itemramperf[16963]=0; itempcislots[16963]=0; itemdelta[16963]=0; itemdelaydays[16963]=0; starkl[16963]=4301; itemvperf[16982]=0; itemcpuperf[16982]=0; itemramperf[16982]=0; itempcislots[16982]=0; itemdelta[16982]=845; itemdelaydays[16982]=0; starkl[16982]=6027; itemvperf[16968]=0; itemcpuperf[16968]=0; itemramperf[16968]=0; itempcislots[16968]=0; itemdelta[16968]=380; itemdelaydays[16968]=0; starkl[16968]=6979; itemvperf[16981]=0; itemcpuperf[16981]=0; itemramperf[16981]=0; itempcislots[16981]=0; itemdelta[16981]=270; itemdelaydays[16981]=0; starkl[16981]=8494; itemvperf[16967]=0; itemcpuperf[16967]=0; itemramperf[16967]=0; itempcislots[16967]=0; itemdelta[16967]=0; itemdelaydays[16967]=0; starkl[16967]=9920; itemvperf[16654]=0; itemcpuperf[16654]=0; itemramperf[16654]=0; itempcislots[16654]=0; itemdelta[16654]=20; itemdelaydays[16654]=0; starkl[16654]=8423; itemvperf[32224]=0; itemcpuperf[32224]=0; itemramperf[32224]=0; itempcislots[32224]=0; itemdelta[32224]=0; itemdelaydays[32224]=0; starkl[32224]=1019; itemvperf[16605]=0; itemcpuperf[16605]=0; itemramperf[16605]=0; itempcislots[16605]=0; itemdelta[16605]=15; itemdelaydays[16605]=0; starkl[16605]=5539; itemvperf[16606]=0; itemcpuperf[16606]=0; itemramperf[16606]=0; itempcislots[16606]=0; itemdelta[16606]=0; itemdelaydays[16606]=0; starkl[16606]=2750; itemvperf[16634]=0; itemcpuperf[16634]=0; itemramperf[16634]=0; itempcislots[16634]=0; itemdelta[16634]=0; itemdelaydays[16634]=0; starkl[16634]=9429; itemvperf[16642]=0; itemcpuperf[16642]=0; itemramperf[16642]=0; itempcislots[16642]=0; itemdelta[16642]=0; itemdelaydays[16642]=0; starkl[16642]=2230; itemvperf[16643]=0; itemcpuperf[16643]=0; itemramperf[16643]=0; itempcislots[16643]=0; itemdelta[16643]=65; itemdelaydays[16643]=0; starkl[16643]=7106; itemvperf[16644]=0; itemcpuperf[16644]=0; itemramperf[16644]=0; itempcislots[16644]=3; itemdelta[16644]=30; itemdelaydays[16644]=0; starkl[16644]=8046; itemvperf[16662]=0; itemcpuperf[16662]=0; itemramperf[16662]=0; itempcislots[16662]=0; itemdelta[16662]=0; itemdelaydays[16662]=0; starkl[16662]=3548; itemvperf[17171]=0; itemcpuperf[17171]=0; itemramperf[17171]=0; itempcislots[17171]=0; itemdelta[17171]=975; itemdelaydays[17171]=0; starkl[17171]=3220; itemvperf[17172]=0; itemcpuperf[17172]=0; itemramperf[17172]=0; itempcislots[17172]=0; itemdelta[17172]=3995; itemdelaydays[17172]=0; starkl[17172]=9260; itemvperf[17173]=0; itemcpuperf[17173]=0; itemramperf[17173]=0; itempcislots[17173]=0; itemdelta[17173]=525; itemdelaydays[17173]=0; starkl[17173]=9543; itemvperf[16651]=0; itemcpuperf[16651]=0; itemramperf[16651]=0; itempcislots[16651]=0; itemdelta[16651]=0; itemdelaydays[16651]=0; starkl[16651]=5114; itemvperf[16652]=0; itemcpuperf[16652]=0; itemramperf[16652]=0; itempcislots[16652]=0; itemdelta[16652]=905; itemdelaydays[16652]=0; starkl[16652]=2335; itemvperf[17178]=0; itemcpuperf[17178]=0; itemramperf[17178]=0; itempcislots[17178]=0; itemdelta[17178]=925; itemdelaydays[17178]=0; starkl[17178]=237; itemvperf[17177]=0; itemcpuperf[17177]=0; itemramperf[17177]=0; itempcislots[17177]=0; itemdelta[17177]=740; itemdelaydays[17177]=0; starkl[17177]=6174; itemvperf[17176]=0; itemcpuperf[17176]=0; itemramperf[17176]=0; itempcislots[17176]=0; itemdelta[17176]=555; itemdelaydays[17176]=0; starkl[17176]=299; itemvperf[17175]=0; itemcpuperf[17175]=0; itemramperf[17175]=0; itempcislots[17175]=0; itemdelta[17175]=430; itemdelaydays[17175]=0; starkl[17175]=9676; itemvperf[17174]=0; itemcpuperf[17174]=0; itemramperf[17174]=0; itempcislots[17174]=0; itemdelta[17174]=185; itemdelaydays[17174]=0; starkl[17174]=4108; itemvperf[17179]=0; itemcpuperf[17179]=0; itemramperf[17179]=0; itempcislots[17179]=0; itemdelta[17179]=0; itemdelaydays[17179]=0; starkl[17179]=9353; itemvperf[32222]=0; itemcpuperf[32222]=0; itemramperf[32222]=0; itempcislots[32222]=0; itemdelta[32222]=0; itemdelaydays[32222]=0; starkl[32222]=7900; itemvperf[16633]=0; itemcpuperf[16633]=0; itemramperf[16633]=0; itempcislots[16633]=0; itemdelta[16633]=-15; itemdelaydays[16633]=0; starkl[16633]=3166; itemvperf[32223]=0; itemcpuperf[32223]=0; itemramperf[32223]=0; itempcislots[32223]=0; itemdelta[32223]=0; itemdelaydays[32223]=0; starkl[32223]=1303; itemvperf[16647]=0; itemcpuperf[16647]=0; itemramperf[16647]=0; itempcislots[16647]=0; itemdelta[16647]=-15; itemdelaydays[16647]=0; starkl[16647]=9197; itemvperf[16593]=0; itemcpuperf[16593]=0; itemramperf[16593]=0; itempcislots[16593]=0; itemdelta[16593]=0; itemdelaydays[16593]=0; starkl[16593]=1215; itemvperf[16664]=0; itemcpuperf[16664]=0; itemramperf[16664]=0; itempcislots[16664]=0; itemdelta[16664]=499; itemdelaydays[16664]=0; starkl[16664]=8306; itemvperf[16665]=0; itemcpuperf[16665]=0; itemramperf[16665]=0; itempcislots[16665]=0; itemdelta[16665]=399; itemdelaydays[16665]=0; starkl[16665]=4442; itemvperf[16666]=0; itemcpuperf[16666]=0; itemramperf[16666]=0; itempcislots[16666]=0; itemdelta[16666]=299; itemdelaydays[16666]=0; starkl[16666]=1065; itemvperf[16667]=0; itemcpuperf[16667]=0; itemramperf[16667]=0; itempcislots[16667]=0; itemdelta[16667]=199; itemdelaydays[16667]=0; starkl[16667]=2592; itemvperf[16668]=0; itemcpuperf[16668]=0; itemramperf[16668]=0; itempcislots[16668]=0; itemdelta[16668]=99; itemdelaydays[16668]=0; starkl[16668]=282; itemvperf[16669]=0; itemcpuperf[16669]=0; itemramperf[16669]=0; itempcislots[16669]=0; itemdelta[16669]=0; itemdelaydays[16669]=0; starkl[16669]=7536; caseImages[16598]=new Image(); caseImages[16598].src='/images/upload/sc5400.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()