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[32348]=0; itemcpuperf[32348]=0; itemramperf[32348]=0; itempcislots[32348]=0; itemdelta[32348]=0; itemdelaydays[32348]=0; starkl[32348]=3374; itemvperf[33368]=0; itemcpuperf[33368]=0; itemramperf[33368]=0; itempcislots[33368]=0; itemdelta[33368]=20; itemdelaydays[33368]=0; starkl[33368]=9919; itemvperf[33358]=0; itemcpuperf[33358]=0; itemramperf[33358]=0; itempcislots[33358]=0; itemdelta[33358]=0; itemdelaydays[33358]=0; starkl[33358]=1579; itemvperf[32876]=0; itemcpuperf[32876]=0; itemramperf[32876]=0; itempcislots[32876]=0; itemdelta[32876]=0; itemdelaydays[32876]=0; starkl[32876]=5187; itemvperf[33325]=0; itemcpuperf[33325]=0; itemramperf[33325]=0; itempcislots[33325]=0; itemdelta[33325]=55; itemdelaydays[33325]=0; starkl[33325]=6482; itemvperf[33340]=0; itemcpuperf[33340]=0; itemramperf[33340]=0; itempcislots[33340]=0; itemdelta[33340]=25; itemdelaydays[33340]=0; starkl[33340]=9911; itemvperf[33354]=0; itemcpuperf[33354]=0; itemramperf[33354]=0; itempcislots[33354]=0; itemdelta[33354]=0; itemdelaydays[33354]=0; starkl[33354]=8355; itemvperf[32352]=0; itemcpuperf[32352]=0; itemramperf[32352]=0; itempcislots[32352]=0; itemdelta[32352]=45; itemdelaydays[32352]=0; starkl[32352]=7495; itemvperf[10776]=0; itemcpuperf[10776]=0; itemramperf[10776]=0; itempcislots[10776]=0; itemdelta[10776]=0; itemdelaydays[10776]=0; starkl[10776]=8756; itemvperf[33327]=0; itemcpuperf[33327]=0; itemramperf[33327]=0; itempcislots[33327]=0; itemdelta[33327]=120; itemdelaydays[33327]=0; starkl[33327]=8737; itemvperf[33334]=0; itemcpuperf[33334]=0; itemramperf[33334]=0; itempcislots[33334]=0; itemdelta[33334]=0; itemdelaydays[33334]=0; starkl[33334]=2987; itemvperf[32340]=190; itemcpuperf[32340]=0; itemramperf[32340]=0; itempcislots[32340]=0; itemdelta[32340]=345; itemdelaydays[32340]=0; starkl[32340]=6493; itemvperf[33396]=190; itemcpuperf[33396]=0; itemramperf[33396]=0; itempcislots[33396]=0; itemdelta[33396]=200; itemdelaydays[33396]=0; starkl[33396]=8202; itemvperf[33355]=190; itemcpuperf[33355]=0; itemramperf[33355]=0; itempcislots[33355]=0; itemdelta[33355]=165; itemdelaydays[33355]=0; starkl[33355]=9304; itemvperf[33322]=0; itemcpuperf[33322]=0; itemramperf[33322]=0; itempcislots[33322]=0; itemdelta[33322]=0; itemdelaydays[33322]=0; starkl[33322]=687; itemvperf[10784]=0; itemcpuperf[10784]=0; itemramperf[10784]=0; itempcislots[10784]=0; itemdelta[10784]=0; itemdelaydays[10784]=0; starkl[10784]=7253; itemvperf[33360]=0; itemcpuperf[33360]=0; itemramperf[33360]=0; itempcislots[33360]=0; itemdelta[33360]=205; itemdelaydays[33360]=0; starkl[33360]=8982; itemvperf[33361]=0; itemcpuperf[33361]=0; itemramperf[33361]=0; itempcislots[33361]=0; itemdelta[33361]=0; itemdelaydays[33361]=0; starkl[33361]=4701; itemvperf[33376]=0; itemcpuperf[33376]=0; itemramperf[33376]=0; itempcislots[33376]=0; itemdelta[33376]=-35; itemdelaydays[33376]=0; starkl[33376]=562; itemvperf[33382]=0; itemcpuperf[33382]=0; itemramperf[33382]=0; itempcislots[33382]=0; itemdelta[33382]=-25; itemdelaydays[33382]=0; starkl[33382]=3820; itemvperf[31260]=0; itemcpuperf[31260]=0; itemramperf[31260]=0; itempcislots[31260]=0; itemdelta[31260]=-40; itemdelaydays[31260]=0; starkl[31260]=939; itemvperf[26992]=0; itemcpuperf[26992]=0; itemramperf[26992]=0; itempcislots[26992]=0; itemdelta[26992]=-60; itemdelaydays[26992]=0; starkl[26992]=6547; itemvperf[32528]=0; itemcpuperf[32528]=0; itemramperf[32528]=0; itempcislots[32528]=0; itemdelta[32528]=70; itemdelaydays[32528]=0; starkl[32528]=9598; itemvperf[31264]=0; itemcpuperf[31264]=0; itemramperf[31264]=0; itempcislots[31264]=0; itemdelta[31264]=55; itemdelaydays[31264]=0; starkl[31264]=1602; itemvperf[10795]=0; itemcpuperf[10795]=0; itemramperf[10795]=0; itempcislots[10795]=0; itemdelta[10795]=0; itemdelaydays[10795]=0; starkl[10795]=1464; itemvperf[27001]=0; itemcpuperf[27001]=0; itemramperf[27001]=0; itempcislots[27001]=0; itemdelta[27001]=0; itemdelaydays[27001]=0; starkl[27001]=3922; itemvperf[18772]=0; itemcpuperf[18772]=0; itemramperf[18772]=0; itempcislots[18772]=0; itemdelta[18772]=25; itemdelaydays[18772]=0; starkl[18772]=503; itemvperf[10804]=0; itemcpuperf[10804]=0; itemramperf[10804]=0; itempcislots[10804]=0; itemdelta[10804]=0; itemdelaydays[10804]=0; starkl[10804]=2949; itemvperf[33336]=0; itemcpuperf[33336]=0; itemramperf[33336]=0; itempcislots[33336]=0; itemdelta[33336]=25; itemdelaydays[33336]=0; starkl[33336]=1987; itemvperf[33337]=0; itemcpuperf[33337]=0; itemramperf[33337]=0; itempcislots[33337]=0; itemdelta[33337]=0; itemdelaydays[33337]=0; starkl[33337]=2618; itemvperf[33393]=0; itemcpuperf[33393]=0; itemramperf[33393]=0; itempcislots[33393]=0; itemdelta[33393]=70; itemdelaydays[33393]=0; starkl[33393]=960; itemvperf[33394]=0; itemcpuperf[33394]=0; itemramperf[33394]=0; itempcislots[33394]=0; itemdelta[33394]=0; itemdelaydays[33394]=0; starkl[33394]=326; itemvperf[30554]=0; itemcpuperf[30554]=0; itemramperf[30554]=0; itempcislots[30554]=0; itemdelta[30554]=259; itemdelaydays[30554]=0; starkl[30554]=9266; itemvperf[30555]=0; itemcpuperf[30555]=0; itemramperf[30555]=0; itempcislots[30555]=0; itemdelta[30555]=179; itemdelaydays[30555]=0; starkl[30555]=5391; itemvperf[10818]=0; itemcpuperf[10818]=0; itemramperf[10818]=0; itempcislots[10818]=0; itemdelta[10818]=0; itemdelaydays[10818]=0; starkl[10818]=7107; itemvperf[33384]=0; itemcpuperf[33384]=0; itemramperf[33384]=0; itempcislots[33384]=0; itemdelta[33384]=0; itemdelaydays[33384]=0; starkl[33384]=6799; itemvperf[33385]=0; itemcpuperf[33385]=0; itemramperf[33385]=0; itempcislots[33385]=0; itemdelta[33385]=0; itemdelaydays[33385]=0; starkl[33385]=4165; itemvperf[33248]=0; itemcpuperf[33248]=0; itemramperf[33248]=0; itempcislots[33248]=0; itemdelta[33248]=15; itemdelaydays[33248]=0; starkl[33248]=4555; itemvperf[33365]=0; itemcpuperf[33365]=0; itemramperf[33365]=0; itempcislots[33365]=0; itemdelta[33365]=0; itemdelaydays[33365]=0; starkl[33365]=6980; itemvperf[33249]=0; itemcpuperf[33249]=0; itemramperf[33249]=0; itempcislots[33249]=0; itemdelta[33249]=15; itemdelaydays[33249]=0; starkl[33249]=1629; itemvperf[33364]=0; itemcpuperf[33364]=0; itemramperf[33364]=0; itempcislots[33364]=0; itemdelta[33364]=0; itemdelaydays[33364]=0; starkl[33364]=8099; itemvperf[33404]=0; itemcpuperf[33404]=0; itemramperf[33404]=0; itempcislots[33404]=0; itemdelta[33404]=0; itemdelaydays[33404]=0; starkl[33404]=4378; itemvperf[33405]=0; itemcpuperf[33405]=0; itemramperf[33405]=0; itempcislots[33405]=0; itemdelta[33405]=0; itemdelaydays[33405]=0; starkl[33405]=2749; itemvperf[10831]=0; itemcpuperf[10831]=0; itemramperf[10831]=0; itempcislots[10831]=0; itemdelta[10831]=19; itemdelaydays[10831]=0; starkl[10831]=6883; itemvperf[10832]=0; itemcpuperf[10832]=0; itemramperf[10832]=0; itempcislots[10832]=0; itemdelta[10832]=0; itemdelaydays[10832]=0; starkl[10832]=1421; itemvperf[33386]=0; itemcpuperf[33386]=0; itemramperf[33386]=0; itempcislots[33386]=0; itemdelta[33386]=0; itemdelaydays[33386]=0; starkl[33386]=7433; itemvperf[33387]=0; itemcpuperf[33387]=0; itemramperf[33387]=0; itempcislots[33387]=0; itemdelta[33387]=0; itemdelaydays[33387]=0; starkl[33387]=3886; itemvperf[33388]=0; itemcpuperf[33388]=0; itemramperf[33388]=0; itempcislots[33388]=0; itemdelta[33388]=0; itemdelaydays[33388]=0; starkl[33388]=6271; itemvperf[10835]=0; itemcpuperf[10835]=0; itemramperf[10835]=0; itempcislots[10835]=0; itemdelta[10835]=0; itemdelaydays[10835]=0; starkl[10835]=1543; itemvperf[10836]=0; itemcpuperf[10836]=0; itemramperf[10836]=0; itempcislots[10836]=0; itemdelta[10836]=0; itemdelaydays[10836]=0; starkl[10836]=1970; itemvperf[10837]=0; itemcpuperf[10837]=0; itemramperf[10837]=0; itempcislots[10837]=0; itemdelta[10837]=0; itemdelaydays[10837]=0; starkl[10837]=7480; itemvperf[10839]=0; itemcpuperf[10839]=0; itemramperf[10839]=0; itempcislots[10839]=0; itemdelta[10839]=149; itemdelaydays[10839]=0; starkl[10839]=506; itemvperf[10838]=0; itemcpuperf[10838]=0; itemramperf[10838]=0; itempcislots[10838]=0; itemdelta[10838]=0; itemdelaydays[10838]=0; starkl[10838]=5866; itemvperf[10844]=0; itemcpuperf[10844]=0; itemramperf[10844]=0; itempcislots[10844]=0; itemdelta[10844]=169; itemdelaydays[10844]=0; starkl[10844]=2054; itemvperf[10845]=0; itemcpuperf[10845]=0; itemramperf[10845]=0; itempcislots[10845]=0; itemdelta[10845]=99; itemdelaydays[10845]=0; starkl[10845]=6449; itemvperf[10846]=0; itemcpuperf[10846]=0; itemramperf[10846]=0; itempcislots[10846]=0; itemdelta[10846]=49; itemdelaydays[10846]=0; starkl[10846]=8414; itemvperf[10847]=0; itemcpuperf[10847]=0; itemramperf[10847]=0; itempcislots[10847]=0; itemdelta[10847]=0; itemdelaydays[10847]=0; starkl[10847]=9297; itemvperf[10848]=0; itemcpuperf[10848]=0; itemramperf[10848]=0; itempcislots[10848]=0; itemdelta[10848]=0; itemdelaydays[10848]=0; starkl[10848]=1128; itemvperf[33401]=0; itemcpuperf[33401]=0; itemramperf[33401]=0; itempcislots[33401]=0; itemdelta[33401]=0; itemdelaydays[33401]=0; starkl[33401]=2663; caseImages[32348]=new Image(); caseImages[32348].src='/images/upload/nx_main.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()