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[8963]=0; itemcpuperf[8963]=0; itemramperf[8963]=0; itempcislots[8963]=0; itemdelta[8963]=0; itemdelaydays[8963]=0; starkl[8963]=4970; itemvperf[8964]=0; itemcpuperf[8964]=0; itemramperf[8964]=0; itempcislots[8964]=0; itemdelta[8964]=0; itemdelaydays[8964]=0; starkl[8964]=1810; itemvperf[8965]=0; itemcpuperf[8965]=91; itemramperf[8965]=0; itempcislots[8965]=0; itemdelta[8965]=85; itemdelaydays[8965]=0; starkl[8965]=4249; itemvperf[8967]=0; itemcpuperf[8967]=0; itemramperf[8967]=0; itempcislots[8967]=0; itemdelta[8967]=0; itemdelaydays[8967]=0; starkl[8967]=7552; itemvperf[17607]=0; itemcpuperf[17607]=0; itemramperf[17607]=0; itempcislots[17607]=0; itemdelta[17607]=60; itemdelaydays[17607]=0; starkl[17607]=5793; itemvperf[17608]=0; itemcpuperf[17608]=0; itemramperf[17608]=0; itempcislots[17608]=0; itemdelta[17608]=0; itemdelaydays[17608]=0; starkl[17608]=8172; itemvperf[21723]=0; itemcpuperf[21723]=0; itemramperf[21723]=0; itempcislots[21723]=0; itemdelta[21723]=95; itemdelaydays[21723]=0; starkl[21723]=6397; itemvperf[8975]=0; itemcpuperf[8975]=0; itemramperf[8975]=0; itempcislots[8975]=0; itemdelta[8975]=0; itemdelaydays[8975]=0; starkl[8975]=6544; itemvperf[20633]=0; itemcpuperf[20633]=0; itemramperf[20633]=0; itempcislots[20633]=0; itemdelta[20633]=299; itemdelaydays[20633]=0; starkl[20633]=5852; itemvperf[8978]=0; itemcpuperf[8978]=0; itemramperf[8978]=0; itempcislots[8978]=0; itemdelta[8978]=0; itemdelaydays[8978]=0; starkl[8978]=7798; itemvperf[8979]=0; itemcpuperf[8979]=0; itemramperf[8979]=0; itempcislots[8979]=0; itemdelta[8979]=55; itemdelaydays[8979]=0; starkl[8979]=9238; itemvperf[8980]=0; itemcpuperf[8980]=0; itemramperf[8980]=0; itempcislots[8980]=0; itemdelta[8980]=0; itemdelaydays[8980]=0; starkl[8980]=2759; itemvperf[8983]=0; itemcpuperf[8983]=0; itemramperf[8983]=0; itempcislots[8983]=0; itemdelta[8983]=49; itemdelaydays[8983]=0; starkl[8983]=3333; itemvperf[8984]=0; itemcpuperf[8984]=0; itemramperf[8984]=0; itempcislots[8984]=0; itemdelta[8984]=15; itemdelaydays[8984]=0; starkl[8984]=6257; itemvperf[8985]=0; itemcpuperf[8985]=0; itemramperf[8985]=0; itempcislots[8985]=0; itemdelta[8985]=0; itemdelaydays[8985]=0; starkl[8985]=866; itemvperf[8986]=0; itemcpuperf[8986]=0; itemramperf[8986]=0; itempcislots[8986]=0; itemdelta[8986]=30; itemdelaydays[8986]=0; starkl[8986]=4849; itemvperf[21724]=0; itemcpuperf[21724]=0; itemramperf[21724]=0; itempcislots[21724]=0; itemdelta[21724]=0; itemdelaydays[21724]=0; starkl[21724]=9052; itemvperf[17831]=0; itemcpuperf[17831]=0; itemramperf[17831]=0; itempcislots[17831]=0; itemdelta[17831]=35; itemdelaydays[17831]=0; starkl[17831]=1791; itemvperf[8991]=0; itemcpuperf[8991]=0; itemramperf[8991]=0; itempcislots[8991]=0; itemdelta[8991]=15; itemdelaydays[8991]=0; starkl[8991]=2254; itemvperf[8992]=0; itemcpuperf[8992]=0; itemramperf[8992]=0; itempcislots[8992]=0; itemdelta[8992]=0; itemdelaydays[8992]=0; starkl[8992]=3181; itemvperf[8993]=0; itemcpuperf[8993]=0; itemramperf[8993]=0; itempcislots[8993]=0; itemdelta[8993]=0; itemdelaydays[8993]=0; starkl[8993]=6542; itemvperf[15417]=0; itemcpuperf[15417]=0; itemramperf[15417]=0; itempcislots[15417]=0; itemdelta[15417]=199; itemdelaydays[15417]=0; starkl[15417]=8614; itemvperf[15418]=0; itemcpuperf[15418]=0; itemramperf[15418]=0; itempcislots[15418]=0; itemdelta[15418]=129; itemdelaydays[15418]=0; starkl[15418]=8896; itemvperf[15419]=0; itemcpuperf[15419]=0; itemramperf[15419]=0; itempcislots[15419]=0; itemdelta[15419]=39; itemdelaydays[15419]=0; starkl[15419]=719; itemvperf[15422]=0; itemcpuperf[15422]=0; itemramperf[15422]=0; itempcislots[15422]=0; itemdelta[15422]=0; itemdelaydays[15422]=0; starkl[15422]=8391; itemvperf[8999]=0; itemcpuperf[8999]=0; itemramperf[8999]=0; itempcislots[8999]=0; itemdelta[8999]=0; itemdelaydays[8999]=0; starkl[8999]=1796; itemvperf[12306]=0; itemcpuperf[12306]=0; itemramperf[12306]=0; itempcislots[12306]=0; itemdelta[12306]=0; itemdelaydays[12306]=0; starkl[12306]=6170; itemvperf[9000]=0; itemcpuperf[9000]=0; itemramperf[9000]=0; itempcislots[9000]=3; itemdelta[9000]=30; itemdelaydays[9000]=0; starkl[9000]=737; itemvperf[28525]=0; itemcpuperf[28525]=0; itemramperf[28525]=0; itempcislots[28525]=0; itemdelta[28525]=75; itemdelaydays[28525]=0; starkl[28525]=4654; itemvperf[28526]=0; itemcpuperf[28526]=0; itemramperf[28526]=0; itempcislots[28526]=0; itemdelta[28526]=0; itemdelaydays[28526]=0; starkl[28526]=5379; itemvperf[9001]=0; itemcpuperf[9001]=0; itemramperf[9001]=0; itempcislots[9001]=0; itemdelta[9001]=50; itemdelaydays[9001]=0; starkl[9001]=2213; itemvperf[9002]=0; itemcpuperf[9002]=0; itemramperf[9002]=0; itempcislots[9002]=0; itemdelta[9002]=0; itemdelaydays[9002]=0; starkl[9002]=3676; itemvperf[18965]=0; itemcpuperf[18965]=0; itemramperf[18965]=0; itempcislots[18965]=0; itemdelta[18965]=0; itemdelaydays[18965]=0; starkl[18965]=6669; itemvperf[9004]=0; itemcpuperf[9004]=0; itemramperf[9004]=0; itempcislots[9004]=0; itemdelta[9004]=349; itemdelaydays[9004]=0; starkl[9004]=640; itemvperf[9005]=0; itemcpuperf[9005]=0; itemramperf[9005]=0; itempcislots[9005]=0; itemdelta[9005]=279; itemdelaydays[9005]=0; starkl[9005]=4483; itemvperf[9006]=0; itemcpuperf[9006]=0; itemramperf[9006]=0; itempcislots[9006]=0; itemdelta[9006]=199; itemdelaydays[9006]=0; starkl[9006]=5944; itemvperf[22209]=0; itemcpuperf[22209]=0; itemramperf[22209]=0; itempcislots[22209]=0; itemdelta[22209]=149; itemdelaydays[22209]=0; starkl[22209]=6706; itemvperf[9008]=0; itemcpuperf[9008]=0; itemramperf[9008]=0; itempcislots[9008]=0; itemdelta[9008]=0; itemdelaydays[9008]=0; starkl[9008]=2393; itemvperf[9009]=0; itemcpuperf[9009]=0; itemramperf[9009]=0; itempcislots[9009]=0; itemdelta[9009]=0; itemdelaydays[9009]=0; starkl[9009]=2964; itemvperf[21817]=0; itemcpuperf[21817]=0; itemramperf[21817]=0; itempcislots[21817]=0; itemdelta[21817]=0; itemdelaydays[21817]=0; starkl[21817]=8407; itemvperf[9010]=0; itemcpuperf[9010]=0; itemramperf[9010]=0; itempcislots[9010]=0; itemdelta[9010]=0; itemdelaydays[9010]=0; starkl[9010]=9498; itemvperf[9011]=0; itemcpuperf[9011]=0; itemramperf[9011]=0; itempcislots[9011]=0; itemdelta[9011]=0; itemdelaydays[9011]=0; starkl[9011]=2024; itemvperf[15800]=0; itemcpuperf[15800]=0; itemramperf[15800]=0; itempcislots[15800]=0; itemdelta[15800]=0; itemdelaydays[15800]=0; starkl[15800]=6614; itemvperf[9013]=0; itemcpuperf[9013]=0; itemramperf[9013]=0; itempcislots[9013]=0; itemdelta[9013]=20; itemdelaydays[9013]=0; starkl[9013]=5623; itemvperf[9014]=0; itemcpuperf[9014]=0; itemramperf[9014]=0; itempcislots[9014]=0; itemdelta[9014]=0; itemdelaydays[9014]=0; starkl[9014]=2369; itemvperf[19732]=0; itemcpuperf[19732]=0; itemramperf[19732]=0; itempcislots[19732]=0; itemdelta[19732]=65; itemdelaydays[19732]=0; starkl[19732]=3932; itemvperf[28940]=0; itemcpuperf[28940]=0; itemramperf[28940]=0; itempcislots[28940]=0; itemdelta[28940]=0; itemdelaydays[28940]=0; starkl[28940]=2809; itemvperf[9018]=0; itemcpuperf[9018]=0; itemramperf[9018]=0; itempcislots[9018]=0; itemdelta[9018]=-15; itemdelaydays[9018]=0; starkl[9018]=2402; itemvperf[19733]=0; itemcpuperf[19733]=0; itemramperf[19733]=0; itempcislots[19733]=0; itemdelta[19733]=35; itemdelaydays[19733]=0; starkl[19733]=5206; itemvperf[29506]=0; itemcpuperf[29506]=0; itemramperf[29506]=0; itempcislots[29506]=0; itemdelta[29506]=0; itemdelaydays[29506]=0; starkl[29506]=4621; itemvperf[9021]=0; itemcpuperf[9021]=0; itemramperf[9021]=0; itempcislots[9021]=0; itemdelta[9021]=-10; itemdelaydays[9021]=0; starkl[9021]=4763; itemvperf[9022]=0; itemcpuperf[9022]=0; itemramperf[9022]=0; itempcislots[9022]=0; itemdelta[9022]=0; itemdelaydays[9022]=0; starkl[9022]=737; itemvperf[9023]=0; itemcpuperf[9023]=0; itemramperf[9023]=0; itempcislots[9023]=0; itemdelta[9023]=175; itemdelaydays[9023]=0; starkl[9023]=5690; itemvperf[9024]=0; itemcpuperf[9024]=0; itemramperf[9024]=0; itempcislots[9024]=0; itemdelta[9024]=0; itemdelaydays[9024]=0; starkl[9024]=1774; itemvperf[9025]=0; itemcpuperf[9025]=0; itemramperf[9025]=0; itempcislots[9025]=0; itemdelta[9025]=269; itemdelaydays[9025]=0; starkl[9025]=9141; itemvperf[9026]=0; itemcpuperf[9026]=0; itemramperf[9026]=0; itempcislots[9026]=0; itemdelta[9026]=199; itemdelaydays[9026]=0; starkl[9026]=9036; itemvperf[9027]=0; itemcpuperf[9027]=0; itemramperf[9027]=0; itempcislots[9027]=0; itemdelta[9027]=169; itemdelaydays[9027]=0; starkl[9027]=3624; itemvperf[9028]=0; itemcpuperf[9028]=0; itemramperf[9028]=0; itempcislots[9028]=0; itemdelta[9028]=99; itemdelaydays[9028]=0; starkl[9028]=4663; itemvperf[9029]=0; itemcpuperf[9029]=0; itemramperf[9029]=0; itempcislots[9029]=0; itemdelta[9029]=69; itemdelaydays[9029]=0; starkl[9029]=1018; itemvperf[9030]=0; itemcpuperf[9030]=0; itemramperf[9030]=0; itempcislots[9030]=0; itemdelta[9030]=0; itemdelaydays[9030]=0; starkl[9030]=1032; itemvperf[9031]=0; itemcpuperf[9031]=0; itemramperf[9031]=0; itempcislots[9031]=0; itemdelta[9031]=0; itemdelaydays[9031]=0; starkl[9031]=7534; itemvperf[21789]=0; itemcpuperf[21789]=0; itemramperf[21789]=0; itempcislots[21789]=0; itemdelta[21789]=0; itemdelaydays[21789]=0; starkl[21789]=8403; itemvperf[20459]=0; itemcpuperf[20459]=0; itemramperf[20459]=0; itempcislots[20459]=0; itemdelta[20459]=-25; itemdelaydays[20459]=0; starkl[20459]=1849; caseImages[8963]=new Image(); caseImages[8963].src='/images/upload/mx_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()