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[4892]=0; itemcpuperf[4892]=0; itemramperf[4892]=0; itempcislots[4892]=0; itemdelta[4892]=0; itemdelaydays[4892]=0; starkl[4892]=2340; itemvperf[4893]=0; itemcpuperf[4893]=0; itemramperf[4893]=0; itempcislots[4893]=0; itemdelta[4893]=0; itemdelaydays[4893]=0; starkl[4893]=1121; itemvperf[4896]=0; itemcpuperf[4896]=0; itemramperf[4896]=0; itempcislots[4896]=0; itemdelta[4896]=0; itemdelaydays[4896]=0; starkl[4896]=982; itemvperf[22887]=0; itemcpuperf[22887]=0; itemramperf[22887]=0; itempcislots[22887]=0; itemdelta[22887]=0; itemdelaydays[22887]=0; starkl[22887]=4341; itemvperf[22888]=0; itemcpuperf[22888]=151; itemramperf[22888]=0; itempcislots[22888]=0; itemdelta[22888]=0; itemdelaydays[22888]=0; starkl[22888]=238; itemvperf[22661]=0; itemcpuperf[22661]=0; itemramperf[22661]=0; itempcislots[22661]=0; itemdelta[22661]=0; itemdelaydays[22661]=0; starkl[22661]=6222; itemvperf[22889]=0; itemcpuperf[22889]=0; itemramperf[22889]=0; itempcislots[22889]=0; itemdelta[22889]=0; itemdelaydays[22889]=0; starkl[22889]=8253; itemvperf[23468]=0; itemcpuperf[23468]=0; itemramperf[23468]=0; itempcislots[23468]=0; itemdelta[23468]=0; itemdelaydays[23468]=0; starkl[23468]=7801; itemvperf[4912]=0; itemcpuperf[4912]=0; itemramperf[4912]=0; itempcislots[4912]=0; itemdelta[4912]=0; itemdelaydays[4912]=0; starkl[4912]=9147; itemvperf[4914]=0; itemcpuperf[4914]=0; itemramperf[4914]=0; itempcislots[4914]=0; itemdelta[4914]=-165; itemdelaydays[4914]=0; starkl[4914]=8285; itemvperf[22662]=0; itemcpuperf[22662]=0; itemramperf[22662]=0; itempcislots[22662]=0; itemdelta[22662]=0; itemdelaydays[22662]=0; starkl[22662]=6313; itemvperf[4916]=0; itemcpuperf[4916]=0; itemramperf[4916]=0; itempcislots[4916]=0; itemdelta[4916]=-165; itemdelaydays[4916]=0; starkl[4916]=3467; itemvperf[4919]=0; itemcpuperf[4919]=0; itemramperf[4919]=0; itempcislots[4919]=0; itemdelta[4919]=0; itemdelaydays[4919]=0; starkl[4919]=3248; itemvperf[4920]=0; itemcpuperf[4920]=0; itemramperf[4920]=0; itempcislots[4920]=0; itemdelta[4920]=150; itemdelaydays[4920]=0; starkl[4920]=1667; itemvperf[4921]=0; itemcpuperf[4921]=0; itemramperf[4921]=0; itempcislots[4921]=0; itemdelta[4921]=0; itemdelaydays[4921]=0; starkl[4921]=2422; itemvperf[4922]=0; itemcpuperf[4922]=0; itemramperf[4922]=0; itempcislots[4922]=0; itemdelta[4922]=150; itemdelaydays[4922]=0; starkl[4922]=4328; itemvperf[22665]=0; itemcpuperf[22665]=0; itemramperf[22665]=0; itempcislots[22665]=0; itemdelta[22665]=399; itemdelaydays[22665]=0; starkl[22665]=5373; itemvperf[22663]=0; itemcpuperf[22663]=0; itemramperf[22663]=0; itempcislots[22663]=0; itemdelta[22663]=0; itemdelaydays[22663]=0; starkl[22663]=6074; itemvperf[22892]=0; itemcpuperf[22892]=0; itemramperf[22892]=0; itempcislots[22892]=0; itemdelta[22892]=299; itemdelaydays[22892]=0; starkl[22892]=8995; itemvperf[22890]=0; itemcpuperf[22890]=0; itemramperf[22890]=0; itempcislots[22890]=0; itemdelta[22890]=0; itemdelaydays[22890]=0; starkl[22890]=7033; itemvperf[22666]=0; itemcpuperf[22666]=0; itemramperf[22666]=0; itempcislots[22666]=0; itemdelta[22666]=0; itemdelaydays[22666]=0; starkl[22666]=4351; itemvperf[4942]=0; itemcpuperf[4942]=0; itemramperf[4942]=0; itempcislots[4942]=0; itemdelta[4942]=0; itemdelaydays[4942]=0; starkl[4942]=457; itemvperf[4943]=0; itemcpuperf[4943]=0; itemramperf[4943]=0; itempcislots[4943]=0; itemdelta[4943]=0; itemdelaydays[4943]=0; starkl[4943]=5393; itemvperf[4948]=0; itemcpuperf[4948]=0; itemramperf[4948]=0; itempcislots[4948]=0; itemdelta[4948]=0; itemdelaydays[4948]=0; starkl[4948]=2431; itemvperf[23469]=0; itemcpuperf[23469]=0; itemramperf[23469]=0; itempcislots[23469]=0; itemdelta[23469]=0; itemdelaydays[23469]=0; starkl[23469]=8223; itemvperf[4950]=0; itemcpuperf[4950]=0; itemramperf[4950]=0; itempcislots[4950]=0; itemdelta[4950]=0; itemdelaydays[4950]=0; starkl[4950]=2845; itemvperf[4951]=0; itemcpuperf[4951]=0; itemramperf[4951]=0; itempcislots[4951]=0; itemdelta[4951]=0; itemdelaydays[4951]=0; starkl[4951]=3376; itemvperf[4963]=0; itemcpuperf[4963]=0; itemramperf[4963]=0; itempcislots[4963]=0; itemdelta[4963]=165; itemdelaydays[4963]=0; starkl[4963]=8746; itemvperf[4964]=0; itemcpuperf[4964]=0; itemramperf[4964]=0; itempcislots[4964]=0; itemdelta[4964]=45; itemdelaydays[4964]=0; starkl[4964]=2236; itemvperf[4965]=0; itemcpuperf[4965]=0; itemramperf[4965]=0; itempcislots[4965]=0; itemdelta[4965]=0; itemdelaydays[4965]=0; starkl[4965]=7566; itemvperf[4966]=0; itemcpuperf[4966]=0; itemramperf[4966]=0; itempcislots[4966]=0; itemdelta[4966]=20; itemdelaydays[4966]=0; starkl[4966]=960; itemvperf[4967]=0; itemcpuperf[4967]=0; itemramperf[4967]=0; itempcislots[4967]=0; itemdelta[4967]=0; itemdelaydays[4967]=0; starkl[4967]=983; itemvperf[4968]=0; itemcpuperf[4968]=0; itemramperf[4968]=0; itempcislots[4968]=0; itemdelta[4968]=30; itemdelaydays[4968]=0; starkl[4968]=5282; itemvperf[4969]=0; itemcpuperf[4969]=0; itemramperf[4969]=0; itempcislots[4969]=0; itemdelta[4969]=30; itemdelaydays[4969]=0; starkl[4969]=8148; itemvperf[4970]=0; itemcpuperf[4970]=0; itemramperf[4970]=0; itempcislots[4970]=0; itemdelta[4970]=15; itemdelaydays[4970]=0; starkl[4970]=9784; itemvperf[4971]=0; itemcpuperf[4971]=0; itemramperf[4971]=0; itempcislots[4971]=0; itemdelta[4971]=0; itemdelaydays[4971]=0; starkl[4971]=5277; itemvperf[22667]=0; itemcpuperf[22667]=0; itemramperf[22667]=0; itempcislots[22667]=0; itemdelta[22667]=0; itemdelaydays[22667]=0; starkl[22667]=6671; itemvperf[4973]=0; itemcpuperf[4973]=0; itemramperf[4973]=0; itempcislots[4973]=0; itemdelta[4973]=14; itemdelaydays[4973]=0; starkl[4973]=6650; itemvperf[4974]=0; itemcpuperf[4974]=0; itemramperf[4974]=0; itempcislots[4974]=0; itemdelta[4974]=0; itemdelaydays[4974]=0; starkl[4974]=5964; itemvperf[4975]=0; itemcpuperf[4975]=0; itemramperf[4975]=0; itempcislots[4975]=0; itemdelta[4975]=0; itemdelaydays[4975]=0; starkl[4975]=6272; itemvperf[4976]=0; itemcpuperf[4976]=0; itemramperf[4976]=0; itempcislots[4976]=0; itemdelta[4976]=0; itemdelaydays[4976]=0; starkl[4976]=7893; itemvperf[4977]=0; itemcpuperf[4977]=0; itemramperf[4977]=0; itempcislots[4977]=0; itemdelta[4977]=0; itemdelaydays[4977]=0; starkl[4977]=412; itemvperf[4978]=0; itemcpuperf[4978]=0; itemramperf[4978]=0; itempcislots[4978]=0; itemdelta[4978]=45; itemdelaydays[4978]=0; starkl[4978]=8131; itemvperf[4979]=0; itemcpuperf[4979]=0; itemramperf[4979]=0; itempcislots[4979]=0; itemdelta[4979]=0; itemdelaydays[4979]=0; starkl[4979]=8466; itemvperf[4980]=0; itemcpuperf[4980]=0; itemramperf[4980]=0; itempcislots[4980]=0; itemdelta[4980]=15; itemdelaydays[4980]=0; starkl[4980]=2962; itemvperf[4982]=0; itemcpuperf[4982]=0; itemramperf[4982]=0; itempcislots[4982]=0; itemdelta[4982]=0; itemdelaydays[4982]=0; starkl[4982]=7669; itemvperf[4983]=0; itemcpuperf[4983]=0; itemramperf[4983]=0; itempcislots[4983]=0; itemdelta[4983]=0; itemdelaydays[4983]=0; starkl[4983]=8159; itemvperf[4984]=0; itemcpuperf[4984]=0; itemramperf[4984]=0; itempcislots[4984]=0; itemdelta[4984]=0; itemdelaydays[4984]=0; starkl[4984]=6320; itemvperf[4985]=0; itemcpuperf[4985]=0; itemramperf[4985]=0; itempcislots[4985]=0; itemdelta[4985]=399; itemdelaydays[4985]=0; starkl[4985]=8366; itemvperf[4986]=0; itemcpuperf[4986]=0; itemramperf[4986]=0; itempcislots[4986]=0; itemdelta[4986]=299; itemdelaydays[4986]=0; starkl[4986]=7964; itemvperf[4987]=0; itemcpuperf[4987]=0; itemramperf[4987]=0; itempcislots[4987]=0; itemdelta[4987]=199; itemdelaydays[4987]=0; starkl[4987]=6925; itemvperf[4988]=0; itemcpuperf[4988]=0; itemramperf[4988]=0; itempcislots[4988]=0; itemdelta[4988]=0; itemdelaydays[4988]=0; starkl[4988]=3305; itemvperf[4989]=0; itemcpuperf[4989]=0; itemramperf[4989]=0; itempcislots[4989]=0; itemdelta[4989]=0; itemdelaydays[4989]=0; starkl[4989]=4030; itemvperf[4990]=0; itemcpuperf[4990]=0; itemramperf[4990]=0; itempcislots[4990]=0; itemdelta[4990]=0; itemdelaydays[4990]=0; starkl[4990]=4713; caseImages[4892]=new Image(); caseImages[4892].src='/images/upload/TX_silver.jpg'; caseImages[4893]=new Image(); caseImages[4893].src='/images/upload/TX_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()