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[15620]=0; itemcpuperf[15620]=0; itemramperf[15620]=0; itempcislots[15620]=0; itemdelta[15620]=0; itemdelaydays[15620]=0; starkl[15620]=5146; itemvperf[33837]=0; itemcpuperf[33837]=0; itemramperf[33837]=0; itempcislots[33837]=0; itemdelta[33837]=20; itemdelaydays[33837]=0; starkl[33837]=2754; itemvperf[33838]=0; itemcpuperf[33838]=0; itemramperf[33838]=0; itempcislots[33838]=0; itemdelta[33838]=0; itemdelaydays[33838]=0; starkl[33838]=8416; itemvperf[5635]=0; itemcpuperf[5635]=0; itemramperf[5635]=0; itempcislots[5635]=0; itemdelta[5635]=60; itemdelaydays[5635]=0; starkl[5635]=5941; itemvperf[33761]=0; itemcpuperf[33761]=0; itemramperf[33761]=0; itempcislots[33761]=0; itemdelta[33761]=40; itemdelaydays[33761]=0; starkl[33761]=3637; itemvperf[33317]=0; itemcpuperf[33317]=0; itemramperf[33317]=0; itempcislots[33317]=0; itemdelta[33317]=0; itemdelaydays[33317]=0; starkl[33317]=2039; itemvperf[33787]=0; itemcpuperf[33787]=0; itemramperf[33787]=0; itempcislots[33787]=0; itemdelta[33787]=0; itemdelaydays[33787]=0; starkl[33787]=3338; itemvperf[33827]=0; itemcpuperf[33827]=0; itemramperf[33827]=0; itempcislots[33827]=0; itemdelta[33827]=175; itemdelaydays[33827]=0; starkl[33827]=3891; itemvperf[33845]=0; itemcpuperf[33845]=0; itemramperf[33845]=0; itempcislots[33845]=0; itemdelta[33845]=125; itemdelaydays[33845]=0; starkl[33845]=2084; itemvperf[33790]=0; itemcpuperf[33790]=0; itemramperf[33790]=0; itempcislots[33790]=0; itemdelta[33790]=30; itemdelaydays[33790]=0; starkl[33790]=2645; itemvperf[33876]=0; itemcpuperf[33876]=0; itemramperf[33876]=0; itempcislots[33876]=0; itemdelta[33876]=0; itemdelaydays[33876]=0; starkl[33876]=6965; itemvperf[33815]=0; itemcpuperf[33815]=0; itemramperf[33815]=0; itempcislots[33815]=0; itemdelta[33815]=145; itemdelaydays[33815]=0; starkl[33815]=6636; itemvperf[33803]=0; itemcpuperf[33803]=0; itemramperf[33803]=0; itempcislots[33803]=0; itemdelta[33803]=120; itemdelaydays[33803]=0; starkl[33803]=309; itemvperf[33805]=0; itemcpuperf[33805]=0; itemramperf[33805]=0; itempcislots[33805]=0; itemdelta[33805]=30; itemdelaydays[33805]=0; starkl[33805]=3387; itemvperf[33806]=0; itemcpuperf[33806]=0; itemramperf[33806]=0; itempcislots[33806]=0; itemdelta[33806]=0; itemdelaydays[33806]=0; starkl[33806]=3502; itemvperf[33807]=0; itemcpuperf[33807]=0; itemramperf[33807]=0; itempcislots[33807]=0; itemdelta[33807]=-20; itemdelaydays[33807]=0; starkl[33807]=6897; itemvperf[33800]=0; itemcpuperf[33800]=0; itemramperf[33800]=0; itempcislots[33800]=0; itemdelta[33800]=25; itemdelaydays[33800]=0; starkl[33800]=2831; itemvperf[33801]=0; itemcpuperf[33801]=0; itemramperf[33801]=0; itempcislots[33801]=0; itemdelta[33801]=20; itemdelaydays[33801]=0; starkl[33801]=8359; itemvperf[33802]=0; itemcpuperf[33802]=0; itemramperf[33802]=0; itempcislots[33802]=0; itemdelta[33802]=0; itemdelaydays[33802]=0; starkl[33802]=1211; itemvperf[33710]=0; itemcpuperf[33710]=0; itemramperf[33710]=0; itempcislots[33710]=0; itemdelta[33710]=225; itemdelaydays[33710]=0; starkl[33710]=1557; itemvperf[33783]=0; itemcpuperf[33783]=0; itemramperf[33783]=0; itempcislots[33783]=0; itemdelta[33783]=0; itemdelaydays[33783]=0; starkl[33783]=7883; itemvperf[33709]=0; itemcpuperf[33709]=0; itemramperf[33709]=0; itempcislots[33709]=0; itemdelta[33709]=-35; itemdelaydays[33709]=0; starkl[33709]=2315; itemvperf[33777]=0; itemcpuperf[33777]=0; itemramperf[33777]=0; itempcislots[33777]=0; itemdelta[33777]=0; itemdelaydays[33777]=0; starkl[33777]=4592; itemvperf[33857]=190; itemcpuperf[33857]=0; itemramperf[33857]=0; itempcislots[33857]=0; itemdelta[33857]=405; itemdelaydays[33857]=0; starkl[33857]=7749; itemvperf[33731]=190; itemcpuperf[33731]=0; itemramperf[33731]=0; itempcislots[33731]=0; itemdelta[33731]=160; itemdelaydays[33731]=0; starkl[33731]=4480; itemvperf[33869]=190; itemcpuperf[33869]=0; itemramperf[33869]=0; itempcislots[33869]=0; itemdelta[33869]=0; itemdelaydays[33869]=0; starkl[33869]=9670; itemvperf[33782]=0; itemcpuperf[33782]=0; itemramperf[33782]=0; itempcislots[33782]=0; itemdelta[33782]=35; itemdelaydays[33782]=0; starkl[33782]=286; itemvperf[5664]=0; itemcpuperf[5664]=0; itemramperf[5664]=0; itempcislots[5664]=0; itemdelta[5664]=0; itemdelaydays[5664]=0; starkl[5664]=8363; itemvperf[5665]=0; itemcpuperf[5665]=0; itemramperf[5665]=0; itempcislots[5665]=0; itemdelta[5665]=0; itemdelaydays[5665]=0; starkl[5665]=4812; itemvperf[5674]=0; itemcpuperf[5674]=0; itemramperf[5674]=0; itempcislots[5674]=0; itemdelta[5674]=0; itemdelaydays[5674]=0; starkl[5674]=8375; itemvperf[33751]=0; itemcpuperf[33751]=0; itemramperf[33751]=0; itempcislots[33751]=0; itemdelta[33751]=210; itemdelaydays[33751]=0; starkl[33751]=6008; itemvperf[29532]=0; itemcpuperf[29532]=0; itemramperf[29532]=0; itempcislots[29532]=0; itemdelta[29532]=70; itemdelaydays[29532]=0; starkl[29532]=2472; itemvperf[33747]=0; itemcpuperf[33747]=0; itemramperf[33747]=0; itempcislots[33747]=0; itemdelta[33747]=70; itemdelaydays[33747]=0; starkl[33747]=6896; itemvperf[29552]=0; itemcpuperf[29552]=0; itemramperf[29552]=0; itempcislots[29552]=0; itemdelta[29552]=40; itemdelaydays[29552]=0; starkl[29552]=3959; itemvperf[5683]=0; itemcpuperf[5683]=0; itemramperf[5683]=0; itempcislots[5683]=0; itemdelta[5683]=0; itemdelaydays[5683]=0; starkl[5683]=1520; itemvperf[33750]=0; itemcpuperf[33750]=0; itemramperf[33750]=0; itempcislots[33750]=0; itemdelta[33750]=0; itemdelaydays[33750]=0; starkl[33750]=7847; itemvperf[29543]=0; itemcpuperf[29543]=0; itemramperf[29543]=0; itempcislots[29543]=0; itemdelta[29543]=-30; itemdelaydays[29543]=0; starkl[29543]=2966; itemvperf[33875]=0; itemcpuperf[33875]=0; itemramperf[33875]=0; itempcislots[33875]=0; itemdelta[33875]=30; itemdelaydays[33875]=0; starkl[33875]=5601; itemvperf[32385]=0; itemcpuperf[32385]=0; itemramperf[32385]=0; itempcislots[32385]=0; itemdelta[32385]=0; itemdelaydays[32385]=0; starkl[32385]=6541; itemvperf[32387]=0; itemcpuperf[32387]=0; itemramperf[32387]=0; itempcislots[32387]=0; itemdelta[32387]=-20; itemdelaydays[32387]=0; starkl[32387]=4838; itemvperf[33870]=0; itemcpuperf[33870]=0; itemramperf[33870]=0; itempcislots[33870]=0; itemdelta[33870]=0; itemdelaydays[33870]=0; starkl[33870]=6936; itemvperf[33871]=0; itemcpuperf[33871]=0; itemramperf[33871]=0; itempcislots[33871]=0; itemdelta[33871]=0; itemdelaydays[33871]=0; starkl[33871]=3756; itemvperf[33872]=0; itemcpuperf[33872]=0; itemramperf[33872]=0; itempcislots[33872]=0; itemdelta[33872]=0; itemdelaydays[33872]=0; starkl[33872]=7012; itemvperf[31951]=0; itemcpuperf[31951]=0; itemramperf[31951]=0; itempcislots[31951]=0; itemdelta[31951]=75; itemdelaydays[31951]=0; starkl[31951]=2015; itemvperf[31949]=0; itemcpuperf[31949]=0; itemramperf[31949]=0; itempcislots[31949]=0; itemdelta[31949]=55; itemdelaydays[31949]=0; starkl[31949]=811; itemvperf[31950]=0; itemcpuperf[31950]=0; itemramperf[31950]=0; itempcislots[31950]=0; itemdelta[31950]=0; itemdelaydays[31950]=0; starkl[31950]=4753; itemvperf[24966]=0; itemcpuperf[24966]=0; itemramperf[24966]=0; itempcislots[24966]=0; itemdelta[24966]=0; itemdelaydays[24966]=0; starkl[24966]=4413; itemvperf[33839]=0; itemcpuperf[33839]=0; itemramperf[33839]=0; itempcislots[33839]=0; itemdelta[33839]=40; itemdelaydays[33839]=0; starkl[33839]=7045; itemvperf[33741]=0; itemcpuperf[33741]=0; itemramperf[33741]=0; itempcislots[33741]=0; itemdelta[33741]=25; itemdelaydays[33741]=0; starkl[33741]=8590; itemvperf[33742]=0; itemcpuperf[33742]=0; itemramperf[33742]=0; itempcislots[33742]=0; itemdelta[33742]=0; itemdelaydays[33742]=0; starkl[33742]=6313; itemvperf[25250]=0; itemcpuperf[25250]=0; itemramperf[25250]=0; itempcislots[25250]=0; itemdelta[25250]=25; itemdelaydays[25250]=0; starkl[25250]=7138; itemvperf[25249]=0; itemcpuperf[25249]=0; itemramperf[25249]=0; itempcislots[25249]=0; itemdelta[25249]=0; itemdelaydays[25249]=0; starkl[25249]=4777; itemvperf[33830]=0; itemcpuperf[33830]=0; itemramperf[33830]=0; itempcislots[33830]=0; itemdelta[33830]=70; itemdelaydays[33830]=0; starkl[33830]=1519; itemvperf[33831]=0; itemcpuperf[33831]=0; itemramperf[33831]=0; itempcislots[33831]=0; itemdelta[33831]=0; itemdelaydays[33831]=0; starkl[33831]=8606; itemvperf[31296]=0; itemcpuperf[31296]=0; itemramperf[31296]=0; itempcislots[31296]=0; itemdelta[31296]=259; itemdelaydays[31296]=0; starkl[31296]=3444; itemvperf[31297]=0; itemcpuperf[31297]=0; itemramperf[31297]=0; itempcislots[31297]=0; itemdelta[31297]=179; itemdelaydays[31297]=0; starkl[31297]=433; itemvperf[5738]=0; itemcpuperf[5738]=0; itemramperf[5738]=0; itempcislots[5738]=0; itemdelta[5738]=0; itemdelaydays[5738]=0; starkl[5738]=9857; itemvperf[33727]=0; itemcpuperf[33727]=0; itemramperf[33727]=0; itempcislots[33727]=0; itemdelta[33727]=0; itemdelaydays[33727]=0; starkl[33727]=3587; itemvperf[33739]=0; itemcpuperf[33739]=0; itemramperf[33739]=0; itempcislots[33739]=0; itemdelta[33739]=0; itemdelaydays[33739]=0; starkl[33739]=9370; itemvperf[33701]=0; itemcpuperf[33701]=0; itemramperf[33701]=0; itempcislots[33701]=0; itemdelta[33701]=0; itemdelaydays[33701]=0; starkl[33701]=4473; itemvperf[33242]=0; itemcpuperf[33242]=0; itemramperf[33242]=0; itempcislots[33242]=0; itemdelta[33242]=15; itemdelaydays[33242]=0; starkl[33242]=7800; itemvperf[5751]=0; itemcpuperf[5751]=0; itemramperf[5751]=0; itempcislots[5751]=0; itemdelta[5751]=0; itemdelaydays[5751]=0; starkl[5751]=7843; itemvperf[33243]=0; itemcpuperf[33243]=0; itemramperf[33243]=0; itempcislots[33243]=0; itemdelta[33243]=15; itemdelaydays[33243]=0; starkl[33243]=5735; itemvperf[5756]=0; itemcpuperf[5756]=0; itemramperf[5756]=0; itempcislots[5756]=0; itemdelta[5756]=0; itemdelaydays[5756]=0; starkl[5756]=7218; itemvperf[33833]=0; itemcpuperf[33833]=0; itemramperf[33833]=0; itempcislots[33833]=0; itemdelta[33833]=0; itemdelaydays[33833]=0; starkl[33833]=5534; itemvperf[33834]=0; itemcpuperf[33834]=0; itemramperf[33834]=0; itempcislots[33834]=0; itemdelta[33834]=0; itemdelaydays[33834]=0; starkl[33834]=3263; itemvperf[33797]=0; itemcpuperf[33797]=0; itemramperf[33797]=0; itempcislots[33797]=0; itemdelta[33797]=0; itemdelaydays[33797]=0; starkl[33797]=4628; itemvperf[33798]=0; itemcpuperf[33798]=0; itemramperf[33798]=0; itempcislots[33798]=0; itemdelta[33798]=0; itemdelaydays[33798]=0; starkl[33798]=6019; itemvperf[33799]=0; itemcpuperf[33799]=0; itemramperf[33799]=0; itempcislots[33799]=0; itemdelta[33799]=0; itemdelaydays[33799]=0; starkl[33799]=3257; itemvperf[5781]=0; itemcpuperf[5781]=0; itemramperf[5781]=0; itempcislots[5781]=0; itemdelta[5781]=0; itemdelaydays[5781]=0; starkl[5781]=7595; itemvperf[5782]=0; itemcpuperf[5782]=0; itemramperf[5782]=0; itempcislots[5782]=0; itemdelta[5782]=0; itemdelaydays[5782]=0; starkl[5782]=684; itemvperf[5783]=0; itemcpuperf[5783]=0; itemramperf[5783]=0; itempcislots[5783]=0; itemdelta[5783]=0; itemdelaydays[5783]=0; starkl[5783]=5648; itemvperf[5785]=0; itemcpuperf[5785]=0; itemramperf[5785]=0; itempcislots[5785]=0; itemdelta[5785]=0; itemdelaydays[5785]=0; starkl[5785]=5938; itemvperf[5784]=0; itemcpuperf[5784]=0; itemramperf[5784]=0; itempcislots[5784]=0; itemdelta[5784]=149; itemdelaydays[5784]=0; starkl[5784]=1990; itemvperf[5788]=0; itemcpuperf[5788]=0; itemramperf[5788]=0; itempcislots[5788]=0; itemdelta[5788]=269; itemdelaydays[5788]=0; starkl[5788]=8361; itemvperf[5789]=0; itemcpuperf[5789]=0; itemramperf[5789]=0; itempcislots[5789]=0; itemdelta[5789]=199; itemdelaydays[5789]=0; starkl[5789]=5683; itemvperf[5790]=0; itemcpuperf[5790]=0; itemramperf[5790]=0; itempcislots[5790]=0; itemdelta[5790]=169; itemdelaydays[5790]=0; starkl[5790]=8468; itemvperf[5791]=0; itemcpuperf[5791]=0; itemramperf[5791]=0; itempcislots[5791]=0; itemdelta[5791]=99; itemdelaydays[5791]=0; starkl[5791]=6187; itemvperf[5792]=0; itemcpuperf[5792]=0; itemramperf[5792]=0; itempcislots[5792]=0; itemdelta[5792]=69; itemdelaydays[5792]=0; starkl[5792]=9124; itemvperf[5793]=0; itemcpuperf[5793]=0; itemramperf[5793]=0; itempcislots[5793]=0; itemdelta[5793]=0; itemdelaydays[5793]=0; starkl[5793]=3394; itemvperf[5794]=0; itemcpuperf[5794]=0; itemramperf[5794]=0; itempcislots[5794]=0; itemdelta[5794]=0; itemdelaydays[5794]=0; starkl[5794]=2950; itemvperf[33877]=0; itemcpuperf[33877]=0; itemramperf[33877]=0; itempcislots[33877]=0; itemdelta[33877]=0; itemdelaydays[33877]=0; starkl[33877]=8852; itemvperf[33878]=0; itemcpuperf[33878]=0; itemramperf[33878]=0; itempcislots[33878]=0; itemdelta[33878]=0; itemdelaydays[33878]=0; starkl[33878]=9740; caseImages[15620]=new Image(); caseImages[15620].src='/images/upload/main_mx3.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()