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[22637]=0; itemcpuperf[22637]=0; itemramperf[22637]=0; itempcislots[22637]=0; itemdelta[22637]=0; itemdelaydays[22637]=0; starkl[22637]=3222; itemvperf[24879]=0; itemcpuperf[24879]=0; itemramperf[24879]=0; itempcislots[24879]=0; itemdelta[24879]=0; itemdelaydays[24879]=0; starkl[24879]=500; itemvperf[22649]=0; itemcpuperf[22649]=0; itemramperf[22649]=0; itempcislots[22649]=0; itemdelta[22649]=0; itemdelaydays[22649]=0; starkl[22649]=4265; itemvperf[27018]=0; itemcpuperf[27018]=128; itemramperf[27018]=0; itempcislots[27018]=0; itemdelta[27018]=0; itemdelaydays[27018]=0; starkl[27018]=2288; itemvperf[22651]=0; itemcpuperf[22651]=0; itemramperf[22651]=0; itempcislots[22651]=0; itemdelta[22651]=0; itemdelaydays[22651]=0; starkl[22651]=3433; itemvperf[22652]=0; itemcpuperf[22652]=0; itemramperf[22652]=0; itempcislots[22652]=0; itemdelta[22652]=0; itemdelaydays[22652]=0; starkl[22652]=8858; itemvperf[23466]=0; itemcpuperf[23466]=0; itemramperf[23466]=0; itempcislots[23466]=0; itemdelta[23466]=0; itemdelaydays[23466]=0; starkl[23466]=8693; itemvperf[22053]=0; itemcpuperf[22053]=0; itemramperf[22053]=0; itempcislots[22053]=0; itemdelta[22053]=299; itemdelaydays[22053]=0; starkl[22053]=6754; itemvperf[22054]=0; itemcpuperf[22054]=0; itemramperf[22054]=0; itempcislots[22054]=0; itemdelta[22054]=110; itemdelaydays[22054]=0; starkl[22054]=1177; itemvperf[22055]=0; itemcpuperf[22055]=0; itemramperf[22055]=0; itempcislots[22055]=0; itemdelta[22055]=0; itemdelaydays[22055]=0; starkl[22055]=4150; itemvperf[22056]=0; itemcpuperf[22056]=0; itemramperf[22056]=0; itempcislots[22056]=0; itemdelta[22056]=299; itemdelaydays[22056]=0; starkl[22056]=3232; itemvperf[22057]=0; itemcpuperf[22057]=0; itemramperf[22057]=0; itempcislots[22057]=0; itemdelta[22057]=110; itemdelaydays[22057]=0; starkl[22057]=7282; itemvperf[22058]=0; itemcpuperf[22058]=0; itemramperf[22058]=0; itempcislots[22058]=0; itemdelta[22058]=0; itemdelaydays[22058]=0; starkl[22058]=8292; itemvperf[22624]=0; itemcpuperf[22624]=0; itemramperf[22624]=0; itempcislots[22624]=0; itemdelta[22624]=0; itemdelaydays[22624]=0; starkl[22624]=4294; itemvperf[22698]=0; itemcpuperf[22698]=0; itemramperf[22698]=0; itempcislots[22698]=0; itemdelta[22698]=249; itemdelaydays[22698]=0; starkl[22698]=5595; itemvperf[22654]=0; itemcpuperf[22654]=0; itemramperf[22654]=0; itempcislots[22654]=0; itemdelta[22654]=159; itemdelaydays[22654]=0; starkl[22654]=2356; itemvperf[22699]=0; itemcpuperf[22699]=0; itemramperf[22699]=0; itempcislots[22699]=0; itemdelta[22699]=45; itemdelaydays[22699]=0; starkl[22699]=4472; itemvperf[22701]=0; itemcpuperf[22701]=0; itemramperf[22701]=0; itempcislots[22701]=0; itemdelta[22701]=0; itemdelaydays[22701]=0; starkl[22701]=5161; itemvperf[22656]=0; itemcpuperf[22656]=0; itemramperf[22656]=0; itempcislots[22656]=0; itemdelta[22656]=399; itemdelaydays[22656]=0; starkl[22656]=9255; itemvperf[22657]=0; itemcpuperf[22657]=0; itemramperf[22657]=0; itempcislots[22657]=0; itemdelta[22657]=0; itemdelaydays[22657]=0; starkl[22657]=1809; itemvperf[22180]=0; itemcpuperf[22180]=0; itemramperf[22180]=0; itempcislots[22180]=0; itemdelta[22180]=0; itemdelaydays[22180]=0; starkl[22180]=5839; itemvperf[22004]=0; itemcpuperf[22004]=0; itemramperf[22004]=0; itempcislots[22004]=0; itemdelta[22004]=0; itemdelaydays[22004]=0; starkl[22004]=9589; itemvperf[21987]=0; itemcpuperf[21987]=0; itemramperf[21987]=0; itempcislots[21987]=0; itemdelta[21987]=0; itemdelaydays[21987]=0; starkl[21987]=8959; itemvperf[23467]=0; itemcpuperf[23467]=0; itemramperf[23467]=0; itempcislots[23467]=0; itemdelta[23467]=0; itemdelaydays[23467]=0; starkl[23467]=9798; itemvperf[22660]=0; itemcpuperf[22660]=0; itemramperf[22660]=0; itempcislots[22660]=0; itemdelta[22660]=0; itemdelaydays[22660]=0; starkl[22660]=6214; itemvperf[21999]=0; itemcpuperf[21999]=0; itemramperf[21999]=0; itempcislots[21999]=0; itemdelta[21999]=165; itemdelaydays[21999]=0; starkl[21999]=7687; itemvperf[22000]=0; itemcpuperf[22000]=0; itemramperf[22000]=0; itempcislots[22000]=0; itemdelta[22000]=45; itemdelaydays[22000]=0; starkl[22000]=7531; itemvperf[22001]=0; itemcpuperf[22001]=0; itemramperf[22001]=0; itempcislots[22001]=0; itemdelta[22001]=35; itemdelaydays[22001]=0; starkl[22001]=7606; itemvperf[32214]=0; itemcpuperf[32214]=0; itemramperf[32214]=0; itempcislots[32214]=0; itemdelta[32214]=20; itemdelaydays[32214]=0; starkl[32214]=2472; itemvperf[22003]=0; itemcpuperf[22003]=0; itemramperf[22003]=0; itempcislots[22003]=0; itemdelta[22003]=0; itemdelaydays[22003]=0; starkl[22003]=8830; itemvperf[22012]=0; itemcpuperf[22012]=0; itemramperf[22012]=0; itempcislots[22012]=0; itemdelta[22012]=30; itemdelaydays[22012]=0; starkl[22012]=7102; itemvperf[22013]=0; itemcpuperf[22013]=0; itemramperf[22013]=0; itempcislots[22013]=0; itemdelta[22013]=30; itemdelaydays[22013]=0; starkl[22013]=9582; itemvperf[32215]=0; itemcpuperf[32215]=0; itemramperf[32215]=0; itempcislots[32215]=0; itemdelta[32215]=15; itemdelaydays[32215]=0; starkl[32215]=4638; itemvperf[22015]=0; itemcpuperf[22015]=0; itemramperf[22015]=0; itempcislots[22015]=0; itemdelta[22015]=0; itemdelaydays[22015]=0; starkl[22015]=9471; itemvperf[22658]=0; itemcpuperf[22658]=0; itemramperf[22658]=0; itempcislots[22658]=0; itemdelta[22658]=0; itemdelaydays[22658]=0; starkl[22658]=7055; itemvperf[22017]=0; itemcpuperf[22017]=0; itemramperf[22017]=0; itempcislots[22017]=0; itemdelta[22017]=14; itemdelaydays[22017]=0; starkl[22017]=8353; itemvperf[22018]=0; itemcpuperf[22018]=0; itemramperf[22018]=0; itempcislots[22018]=0; itemdelta[22018]=0; itemdelaydays[22018]=0; starkl[22018]=3983; itemvperf[21974]=0; itemcpuperf[21974]=0; itemramperf[21974]=0; itempcislots[21974]=0; itemdelta[21974]=45; itemdelaydays[21974]=0; starkl[21974]=8113; itemvperf[21973]=0; itemcpuperf[21973]=0; itemramperf[21973]=0; itempcislots[21973]=0; itemdelta[21973]=0; itemdelaydays[21973]=0; starkl[21973]=9572; itemvperf[22043]=0; itemcpuperf[22043]=0; itemramperf[22043]=0; itempcislots[22043]=0; itemdelta[22043]=0; itemdelaydays[22043]=0; starkl[22043]=8897; itemvperf[22044]=0; itemcpuperf[22044]=0; itemramperf[22044]=0; itempcislots[22044]=0; itemdelta[22044]=15; itemdelaydays[22044]=0; starkl[22044]=4639; itemvperf[22182]=0; itemcpuperf[22182]=0; itemramperf[22182]=0; itempcislots[22182]=0; itemdelta[22182]=0; itemdelaydays[22182]=0; starkl[22182]=6879; itemvperf[21975]=0; itemcpuperf[21975]=0; itemramperf[21975]=0; itempcislots[21975]=0; itemdelta[21975]=0; itemdelaydays[21975]=0; starkl[21975]=4815; itemvperf[22045]=0; itemcpuperf[22045]=0; itemramperf[22045]=0; itempcislots[22045]=0; itemdelta[22045]=0; itemdelaydays[22045]=0; starkl[22045]=7388; itemvperf[21986]=0; itemcpuperf[21986]=0; itemramperf[21986]=0; itempcislots[21986]=0; itemdelta[21986]=0; itemdelaydays[21986]=0; starkl[21986]=8436; itemvperf[22067]=0; itemcpuperf[22067]=0; itemramperf[22067]=0; itempcislots[22067]=0; itemdelta[22067]=399; itemdelaydays[22067]=0; starkl[22067]=5658; itemvperf[22068]=0; itemcpuperf[22068]=0; itemramperf[22068]=0; itempcislots[22068]=0; itemdelta[22068]=299; itemdelaydays[22068]=0; starkl[22068]=2381; itemvperf[22069]=0; itemcpuperf[22069]=0; itemramperf[22069]=0; itempcislots[22069]=0; itemdelta[22069]=199; itemdelaydays[22069]=0; starkl[22069]=8362; itemvperf[22070]=0; itemcpuperf[22070]=0; itemramperf[22070]=0; itempcislots[22070]=0; itemdelta[22070]=0; itemdelaydays[22070]=0; starkl[22070]=2556; itemvperf[22063]=0; itemcpuperf[22063]=0; itemramperf[22063]=0; itempcislots[22063]=0; itemdelta[22063]=0; itemdelaydays[22063]=0; starkl[22063]=6435; caseImages[22637]=new Image(); caseImages[22637].src='/images/upload/ex-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); 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()