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[14236]=0; itemcpuperf[14236]=0; itemramperf[14236]=0; itempcislots[14236]=0; itemdelta[14236]=0; itemdelaydays[14236]=0; starkl[14236]=2938; itemvperf[21908]=0; itemcpuperf[21908]=0; itemramperf[21908]=0; itempcislots[21908]=0; itemdelta[21908]=0; itemdelaydays[21908]=0; starkl[21908]=5341; itemvperf[14240]=0; itemcpuperf[14240]=0; itemramperf[14240]=0; itempcislots[14240]=0; itemdelta[14240]=0; itemdelaydays[14240]=0; starkl[14240]=9845; itemvperf[14289]=0; itemcpuperf[14289]=0; itemramperf[14289]=0; itempcislots[14289]=0; itemdelta[14289]=0; itemdelaydays[14289]=0; starkl[14289]=8947; itemvperf[14296]=0; itemcpuperf[14296]=0; itemramperf[14296]=0; itempcislots[14296]=0; itemdelta[14296]=780; itemdelaydays[14296]=0; starkl[14296]=5728; itemvperf[14297]=0; itemcpuperf[14297]=0; itemramperf[14297]=0; itempcislots[14297]=0; itemdelta[14297]=565; itemdelaydays[14297]=0; starkl[14297]=7342; itemvperf[14298]=0; itemcpuperf[14298]=0; itemramperf[14298]=0; itempcislots[14298]=0; itemdelta[14298]=350; itemdelaydays[14298]=0; starkl[14298]=9525; itemvperf[14299]=0; itemcpuperf[14299]=0; itemramperf[14299]=0; itempcislots[14299]=0; itemdelta[14299]=260; itemdelaydays[14299]=0; starkl[14299]=5157; itemvperf[14300]=0; itemcpuperf[14300]=0; itemramperf[14300]=0; itempcislots[14300]=0; itemdelta[14300]=250; itemdelaydays[14300]=0; starkl[14300]=4666; itemvperf[14301]=0; itemcpuperf[14301]=0; itemramperf[14301]=0; itempcislots[14301]=0; itemdelta[14301]=85; itemdelaydays[14301]=0; starkl[14301]=2920; itemvperf[14302]=0; itemcpuperf[14302]=0; itemramperf[14302]=0; itempcislots[14302]=0; itemdelta[14302]=0; itemdelaydays[14302]=0; starkl[14302]=4346; itemvperf[16106]=0; itemcpuperf[16106]=0; itemramperf[16106]=0; itempcislots[16106]=0; itemdelta[16106]=0; itemdelaydays[16106]=0; starkl[16106]=6165; itemvperf[14277]=0; itemcpuperf[14277]=0; itemramperf[14277]=0; itempcislots[14277]=0; itemdelta[14277]=70; itemdelaydays[14277]=0; starkl[14277]=7049; itemvperf[14276]=0; itemcpuperf[14276]=0; itemramperf[14276]=0; itempcislots[14276]=0; itemdelta[14276]=0; itemdelaydays[14276]=0; starkl[14276]=993; itemvperf[14275]=0; itemcpuperf[14275]=0; itemramperf[14275]=0; itempcislots[14275]=0; itemdelta[14275]=0; itemdelaydays[14275]=0; starkl[14275]=7208; itemvperf[14304]=0; itemcpuperf[14304]=0; itemramperf[14304]=0; itempcislots[14304]=0; itemdelta[14304]=0; itemdelaydays[14304]=0; starkl[14304]=5899; itemvperf[14269]=0; itemcpuperf[14269]=0; itemramperf[14269]=0; itempcislots[14269]=0; itemdelta[14269]=0; itemdelaydays[14269]=0; starkl[14269]=2412; itemvperf[14265]=0; itemcpuperf[14265]=0; itemramperf[14265]=0; itempcislots[14265]=0; itemdelta[14265]=15; itemdelaydays[14265]=0; starkl[14265]=3363; itemvperf[14266]=0; itemcpuperf[14266]=0; itemramperf[14266]=0; itempcislots[14266]=0; itemdelta[14266]=0; itemdelaydays[14266]=0; starkl[14266]=9730; itemvperf[14271]=0; itemcpuperf[14271]=0; itemramperf[14271]=0; itempcislots[14271]=0; itemdelta[14271]=15; itemdelaydays[14271]=0; starkl[14271]=3624; itemvperf[14270]=0; itemcpuperf[14270]=0; itemramperf[14270]=0; itempcislots[14270]=0; itemdelta[14270]=0; itemdelaydays[14270]=0; starkl[14270]=2136; itemvperf[14273]=0; itemcpuperf[14273]=0; itemramperf[14273]=0; itempcislots[14273]=0; itemdelta[14273]=0; itemdelaydays[14273]=0; starkl[14273]=2564; itemvperf[14274]=0; itemcpuperf[14274]=0; itemramperf[14274]=0; itempcislots[14274]=0; itemdelta[14274]=0; itemdelaydays[14274]=0; starkl[14274]=7250; itemvperf[14239]=0; itemcpuperf[14239]=0; itemramperf[14239]=0; itempcislots[14239]=0; itemdelta[14239]=0; itemdelaydays[14239]=0; starkl[14239]=2752; itemvperf[14272]=0; itemcpuperf[14272]=0; itemramperf[14272]=0; itempcislots[14272]=0; itemdelta[14272]=0; itemdelaydays[14272]=0; starkl[14272]=1969; itemvperf[14241]=0; itemcpuperf[14241]=0; itemramperf[14241]=0; itempcislots[14241]=0; itemdelta[14241]=0; itemdelaydays[14241]=0; starkl[14241]=965; itemvperf[14247]=0; itemcpuperf[14247]=0; itemramperf[14247]=0; itempcislots[14247]=0; itemdelta[14247]=149; itemdelaydays[14247]=0; starkl[14247]=6778; itemvperf[14246]=0; itemcpuperf[14246]=0; itemramperf[14246]=0; itempcislots[14246]=0; itemdelta[14246]=0; itemdelaydays[14246]=0; starkl[14246]=2125; itemvperf[14278]=0; itemcpuperf[14278]=0; itemramperf[14278]=0; itempcislots[14278]=0; itemdelta[14278]=369; itemdelaydays[14278]=0; starkl[14278]=6792; itemvperf[14282]=0; itemcpuperf[14282]=0; itemramperf[14282]=0; itempcislots[14282]=0; itemdelta[14282]=299; itemdelaydays[14282]=0; starkl[14282]=6321; itemvperf[14281]=0; itemcpuperf[14281]=0; itemramperf[14281]=0; itempcislots[14281]=0; itemdelta[14281]=269; itemdelaydays[14281]=0; starkl[14281]=1316; itemvperf[14283]=0; itemcpuperf[14283]=0; itemramperf[14283]=0; itempcislots[14283]=0; itemdelta[14283]=199; itemdelaydays[14283]=0; starkl[14283]=2720; itemvperf[14284]=0; itemcpuperf[14284]=0; itemramperf[14284]=0; itempcislots[14284]=0; itemdelta[14284]=169; itemdelaydays[14284]=0; starkl[14284]=4980; itemvperf[14285]=0; itemcpuperf[14285]=0; itemramperf[14285]=0; itempcislots[14285]=0; itemdelta[14285]=99; itemdelaydays[14285]=0; starkl[14285]=3028; itemvperf[14286]=0; itemcpuperf[14286]=0; itemramperf[14286]=0; itempcislots[14286]=0; itemdelta[14286]=69; itemdelaydays[14286]=0; starkl[14286]=6514; itemvperf[14287]=0; itemcpuperf[14287]=0; itemramperf[14287]=0; itempcislots[14287]=0; itemdelta[14287]=0; itemdelaydays[14287]=0; starkl[14287]=7697; itemvperf[21783]=0; itemcpuperf[21783]=0; itemramperf[21783]=0; itempcislots[21783]=0; itemdelta[21783]=0; itemdelaydays[21783]=0; starkl[21783]=7964; caseImages[14236]=new Image(); caseImages[14236].src='/images/upload/nmchassis.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()