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[30145]=0; itemcpuperf[30145]=0; itemramperf[30145]=0; itempcislots[30145]=0; itemdelta[30145]=0; itemdelaydays[30145]=0; starkl[30145]=4146; itemvperf[30149]=0; itemcpuperf[30149]=0; itemramperf[30149]=0; itempcislots[30149]=0; itemdelta[30149]=0; itemdelaydays[30149]=0; starkl[30149]=3850; itemvperf[30185]=0; itemcpuperf[30185]=201; itemramperf[30185]=0; itempcislots[30185]=0; itemdelta[30185]=1035; itemdelaydays[30185]=0; starkl[30185]=7875; itemvperf[30186]=0; itemcpuperf[30186]=190; itemramperf[30186]=0; itempcislots[30186]=0; itemdelta[30186]=390; itemdelaydays[30186]=0; starkl[30186]=5581; itemvperf[30187]=0; itemcpuperf[30187]=186; itemramperf[30187]=0; itempcislots[30187]=0; itemdelta[30187]=0; itemdelaydays[30187]=0; starkl[30187]=382; itemvperf[30207]=0; itemcpuperf[30207]=0; itemramperf[30207]=0; itempcislots[30207]=0; itemdelta[30207]=0; itemdelaydays[30207]=0; starkl[30207]=5830; itemvperf[30172]=0; itemcpuperf[30172]=0; itemramperf[30172]=0; itempcislots[30172]=0; itemdelta[30172]=80; itemdelaydays[30172]=0; starkl[30172]=2963; itemvperf[30173]=0; itemcpuperf[30173]=0; itemramperf[30173]=0; itempcislots[30173]=0; itemdelta[30173]=0; itemdelaydays[30173]=0; starkl[30173]=9281; itemvperf[30151]=0; itemcpuperf[30151]=0; itemramperf[30151]=0; itempcislots[30151]=0; itemdelta[30151]=0; itemdelaydays[30151]=0; starkl[30151]=8286; itemvperf[30178]=0; itemcpuperf[30178]=0; itemramperf[30178]=0; itempcislots[30178]=0; itemdelta[30178]=760; itemdelaydays[30178]=0; starkl[30178]=7576; itemvperf[30177]=0; itemcpuperf[30177]=0; itemramperf[30177]=0; itempcislots[30177]=0; itemdelta[30177]=0; itemdelaydays[30177]=0; starkl[30177]=5994; itemvperf[30198]=0; itemcpuperf[30198]=0; itemramperf[30198]=0; itempcislots[30198]=0; itemdelta[30198]=0; itemdelaydays[30198]=0; starkl[30198]=7716; itemvperf[30143]=0; itemcpuperf[30143]=0; itemramperf[30143]=0; itempcislots[30143]=0; itemdelta[30143]=0; itemdelaydays[30143]=0; starkl[30143]=4857; itemvperf[30194]=0; itemcpuperf[30194]=0; itemramperf[30194]=0; itempcislots[30194]=0; itemdelta[30194]=39; itemdelaydays[30194]=0; starkl[30194]=9590; itemvperf[30195]=0; itemcpuperf[30195]=0; itemramperf[30195]=0; itempcislots[30195]=0; itemdelta[30195]=19; itemdelaydays[30195]=0; starkl[30195]=7507; itemvperf[30196]=0; itemcpuperf[30196]=0; itemramperf[30196]=0; itempcislots[30196]=0; itemdelta[30196]=0; itemdelaydays[30196]=0; starkl[30196]=2000; itemvperf[30165]=0; itemcpuperf[30165]=0; itemramperf[30165]=0; itempcislots[30165]=0; itemdelta[30165]=430; itemdelaydays[30165]=0; starkl[30165]=8757; itemvperf[30166]=0; itemcpuperf[30166]=0; itemramperf[30166]=0; itempcislots[30166]=0; itemdelta[30166]=200; itemdelaydays[30166]=0; starkl[30166]=9497; itemvperf[30167]=0; itemcpuperf[30167]=0; itemramperf[30167]=0; itempcislots[30167]=0; itemdelta[30167]=70; itemdelaydays[30167]=0; starkl[30167]=7446; itemvperf[30169]=0; itemcpuperf[30169]=0; itemramperf[30169]=0; itempcislots[30169]=0; itemdelta[30169]=50; itemdelaydays[30169]=0; starkl[30169]=816; itemvperf[30170]=0; itemcpuperf[30170]=0; itemramperf[30170]=0; itempcislots[30170]=0; itemdelta[30170]=30; itemdelaydays[30170]=0; starkl[30170]=9275; itemvperf[30171]=0; itemcpuperf[30171]=0; itemramperf[30171]=0; itempcislots[30171]=0; itemdelta[30171]=0; itemdelaydays[30171]=0; starkl[30171]=1898; itemvperf[30154]=0; itemcpuperf[30154]=0; itemramperf[30154]=0; itempcislots[30154]=0; itemdelta[30154]=270; itemdelaydays[30154]=0; starkl[30154]=3475; itemvperf[30153]=0; itemcpuperf[30153]=0; itemramperf[30153]=0; itempcislots[30153]=0; itemdelta[30153]=130; itemdelaydays[30153]=0; starkl[30153]=8848; itemvperf[30152]=0; itemcpuperf[30152]=0; itemramperf[30152]=0; itempcislots[30152]=0; itemdelta[30152]=0; itemdelaydays[30152]=0; starkl[30152]=5536; itemvperf[30156]=0; itemcpuperf[30156]=0; itemramperf[30156]=0; itempcislots[30156]=0; itemdelta[30156]=35; itemdelaydays[30156]=0; starkl[30156]=7213; itemvperf[30157]=0; itemcpuperf[30157]=0; itemramperf[30157]=0; itempcislots[30157]=0; itemdelta[30157]=0; itemdelaydays[30157]=0; starkl[30157]=5393; itemvperf[30164]=0; itemcpuperf[30164]=0; itemramperf[30164]=0; itempcislots[30164]=0; itemdelta[30164]=0; itemdelaydays[30164]=0; starkl[30164]=6757; itemvperf[30159]=0; itemcpuperf[30159]=0; itemramperf[30159]=0; itempcislots[30159]=0; itemdelta[30159]=0; itemdelaydays[30159]=0; starkl[30159]=349; itemvperf[30160]=0; itemcpuperf[30160]=0; itemramperf[30160]=0; itempcislots[30160]=0; itemdelta[30160]=0; itemdelaydays[30160]=0; starkl[30160]=7930; itemvperf[30161]=0; itemcpuperf[30161]=0; itemramperf[30161]=0; itempcislots[30161]=0; itemdelta[30161]=0; itemdelaydays[30161]=0; starkl[30161]=2140; itemvperf[30155]=0; itemcpuperf[30155]=0; itemramperf[30155]=0; itempcislots[30155]=0; itemdelta[30155]=0; itemdelaydays[30155]=0; starkl[30155]=6219; itemvperf[30199]=0; itemcpuperf[30199]=0; itemramperf[30199]=0; itempcislots[30199]=0; itemdelta[30199]=0; itemdelaydays[30199]=0; starkl[30199]=9067; itemvperf[30144]=0; itemcpuperf[30144]=0; itemramperf[30144]=0; itempcislots[30144]=0; itemdelta[30144]=0; itemdelaydays[30144]=0; starkl[30144]=3495; itemvperf[30179]=0; itemcpuperf[30179]=0; itemramperf[30179]=0; itempcislots[30179]=0; itemdelta[30179]=0; itemdelaydays[30179]=0; starkl[30179]=7820; itemvperf[30174]=0; itemcpuperf[30174]=0; itemramperf[30174]=0; itempcislots[30174]=0; itemdelta[30174]=130; itemdelaydays[30174]=0; starkl[30174]=2643; itemvperf[30175]=0; itemcpuperf[30175]=0; itemramperf[30175]=0; itempcislots[30175]=0; itemdelta[30175]=70; itemdelaydays[30175]=0; starkl[30175]=2550; itemvperf[30176]=0; itemcpuperf[30176]=0; itemramperf[30176]=0; itempcislots[30176]=0; itemdelta[30176]=0; itemdelaydays[30176]=0; starkl[30176]=6466; itemvperf[31319]=0; itemcpuperf[31319]=0; itemramperf[31319]=0; itempcislots[31319]=0; itemdelta[31319]=349; itemdelaydays[31319]=0; starkl[31319]=7990; itemvperf[31320]=0; itemcpuperf[31320]=0; itemramperf[31320]=0; itempcislots[31320]=0; itemdelta[31320]=199; itemdelaydays[31320]=0; starkl[31320]=5526; itemvperf[31321]=0; itemcpuperf[31321]=0; itemramperf[31321]=0; itempcislots[31321]=0; itemdelta[31321]=149; itemdelaydays[31321]=0; starkl[31321]=5012; itemvperf[30184]=0; itemcpuperf[30184]=0; itemramperf[30184]=0; itempcislots[30184]=0; itemdelta[30184]=0; itemdelaydays[30184]=0; starkl[30184]=8675; itemvperf[30192]=0; itemcpuperf[30192]=0; itemramperf[30192]=0; itempcislots[30192]=0; itemdelta[30192]=0; itemdelaydays[30192]=0; starkl[30192]=519; itemvperf[30193]=0; itemcpuperf[30193]=0; itemramperf[30193]=0; itempcislots[30193]=0; itemdelta[30193]=0; itemdelaydays[30193]=0; starkl[30193]=7003; itemvperf[30189]=0; itemcpuperf[30189]=0; itemramperf[30189]=0; itempcislots[30189]=0; itemdelta[30189]=39; itemdelaydays[30189]=0; starkl[30189]=878; itemvperf[30190]=0; itemcpuperf[30190]=0; itemramperf[30190]=0; itempcislots[30190]=0; itemdelta[30190]=10; itemdelaydays[30190]=0; starkl[30190]=958; itemvperf[30191]=0; itemcpuperf[30191]=0; itemramperf[30191]=0; itempcislots[30191]=0; itemdelta[30191]=0; itemdelaydays[30191]=0; starkl[30191]=3438; itemvperf[30158]=0; itemcpuperf[30158]=0; itemramperf[30158]=0; itempcislots[30158]=0; itemdelta[30158]=0; itemdelaydays[30158]=0; starkl[30158]=4951; itemvperf[30162]=0; itemcpuperf[30162]=0; itemramperf[30162]=0; itempcislots[30162]=0; itemdelta[30162]=0; itemdelaydays[30162]=0; starkl[30162]=2881; itemvperf[30163]=0; itemcpuperf[30163]=0; itemramperf[30163]=0; itempcislots[30163]=0; itemdelta[30163]=55; itemdelaydays[30163]=0; starkl[30163]=4052; itemvperf[30146]=0; itemcpuperf[30146]=0; itemramperf[30146]=0; itempcislots[30146]=0; itemdelta[30146]=0; itemdelaydays[30146]=0; starkl[30146]=5338; itemvperf[30148]=0; itemcpuperf[30148]=0; itemramperf[30148]=0; itempcislots[30148]=0; itemdelta[30148]=0; itemdelaydays[30148]=0; starkl[30148]=5457; itemvperf[30142]=0; itemcpuperf[30142]=0; itemramperf[30142]=0; itempcislots[30142]=0; itemdelta[30142]=0; itemdelaydays[30142]=0; starkl[30142]=1370; itemvperf[30188]=0; itemcpuperf[30188]=0; itemramperf[30188]=0; itempcislots[30188]=0; itemdelta[30188]=0; itemdelaydays[30188]=0; starkl[30188]=372; itemvperf[30150]=0; itemcpuperf[30150]=0; itemramperf[30150]=0; itempcislots[30150]=0; itemdelta[30150]=0; itemdelaydays[30150]=0; starkl[30150]=842; itemvperf[30200]=0; itemcpuperf[30200]=0; itemramperf[30200]=0; itempcislots[30200]=0; itemdelta[30200]=299; itemdelaydays[30200]=0; starkl[30200]=2112; itemvperf[30201]=0; itemcpuperf[30201]=0; itemramperf[30201]=0; itempcislots[30201]=0; itemdelta[30201]=269; itemdelaydays[30201]=0; starkl[30201]=6151; itemvperf[30202]=0; itemcpuperf[30202]=0; itemramperf[30202]=0; itempcislots[30202]=0; itemdelta[30202]=199; itemdelaydays[30202]=0; starkl[30202]=8705; itemvperf[30203]=0; itemcpuperf[30203]=0; itemramperf[30203]=0; itempcislots[30203]=0; itemdelta[30203]=169; itemdelaydays[30203]=0; starkl[30203]=1957; itemvperf[30204]=0; itemcpuperf[30204]=0; itemramperf[30204]=0; itempcislots[30204]=0; itemdelta[30204]=99; itemdelaydays[30204]=0; starkl[30204]=964; itemvperf[30205]=0; itemcpuperf[30205]=0; itemramperf[30205]=0; itempcislots[30205]=0; itemdelta[30205]=0; itemdelaydays[30205]=0; starkl[30205]=7803; itemvperf[30197]=0; itemcpuperf[30197]=0; itemramperf[30197]=0; itempcislots[30197]=0; itemdelta[30197]=0; itemdelaydays[30197]=0; starkl[30197]=2439; caseImages[30145]=new Image(); caseImages[30145].src='/images/upload/x17.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()