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[33763]=0; itemcpuperf[33763]=0; itemramperf[33763]=0; itempcislots[33763]=0; itemdelta[33763]=0; itemdelaydays[33763]=0; starkl[33763]=5959; itemvperf[33839]=0; itemcpuperf[33839]=0; itemramperf[33839]=0; itempcislots[33839]=0; itemdelta[33839]=0; itemdelaydays[33839]=0; starkl[33839]=7178; itemvperf[33799]=0; itemcpuperf[33799]=0; itemramperf[33799]=0; itempcislots[33799]=0; itemdelta[33799]=20; itemdelaydays[33799]=0; starkl[33799]=8316; itemvperf[33800]=0; itemcpuperf[33800]=0; itemramperf[33800]=0; itempcislots[33800]=0; itemdelta[33800]=0; itemdelaydays[33800]=0; starkl[33800]=6498; itemvperf[33736]=0; itemcpuperf[33736]=0; itemramperf[33736]=0; itempcislots[33736]=0; itemdelta[33736]=35; itemdelaydays[33736]=0; starkl[33736]=5194; itemvperf[33316]=0; itemcpuperf[33316]=0; itemramperf[33316]=0; itempcislots[33316]=0; itemdelta[33316]=0; itemdelaydays[33316]=0; starkl[33316]=9906; itemvperf[33457]=0; itemcpuperf[33457]=0; itemramperf[33457]=0; itempcislots[33457]=0; itemdelta[33457]=0; itemdelaydays[33457]=0; starkl[33457]=3630; itemvperf[33853]=0; itemcpuperf[33853]=0; itemramperf[33853]=0; itempcislots[33853]=0; itemdelta[33853]=455; itemdelaydays[33853]=0; starkl[33853]=2702; itemvperf[33852]=0; itemcpuperf[33852]=0; itemramperf[33852]=0; itempcislots[33852]=0; itemdelta[33852]=250; itemdelaydays[33852]=0; starkl[33852]=3204; itemvperf[33834]=0; itemcpuperf[33834]=0; itemramperf[33834]=0; itempcislots[33834]=0; itemdelta[33834]=110; itemdelaydays[33834]=7; starkl[33834]=7503; itemvperf[33833]=0; itemcpuperf[33833]=0; itemramperf[33833]=0; itempcislots[33833]=0; itemdelta[33833]=0; itemdelaydays[33833]=0; starkl[33833]=8752; itemvperf[33843]=0; itemcpuperf[33843]=0; itemramperf[33843]=0; itempcislots[33843]=0; itemdelta[33843]=0; itemdelaydays[33843]=0; starkl[33843]=2418; itemvperf[33760]=0; itemcpuperf[33760]=0; itemramperf[33760]=0; itempcislots[33760]=0; itemdelta[33760]=25; itemdelaydays[33760]=0; starkl[33760]=3790; itemvperf[33761]=0; itemcpuperf[33761]=0; itemramperf[33761]=0; itempcislots[33761]=0; itemdelta[33761]=20; itemdelaydays[33761]=0; starkl[33761]=9394; itemvperf[33762]=0; itemcpuperf[33762]=0; itemramperf[33762]=0; itempcislots[33762]=0; itemdelta[33762]=0; itemdelaydays[33762]=0; starkl[33762]=9716; itemvperf[33854]=0; itemcpuperf[33854]=0; itemramperf[33854]=0; itempcislots[33854]=0; itemdelta[33854]=170; itemdelaydays[33854]=0; starkl[33854]=3986; itemvperf[33803]=0; itemcpuperf[33803]=0; itemramperf[33803]=0; itempcislots[33803]=0; itemdelta[33803]=0; itemdelaydays[33803]=0; starkl[33803]=5107; itemvperf[33743]=0; itemcpuperf[33743]=0; itemramperf[33743]=0; itempcislots[33743]=0; itemdelta[33743]=0; itemdelaydays[33743]=0; starkl[33743]=1788; itemvperf[33849]=190; itemcpuperf[33849]=0; itemramperf[33849]=0; itempcislots[33849]=0; itemdelta[33849]=555; itemdelaydays[33849]=0; starkl[33849]=6394; itemvperf[33844]=190; itemcpuperf[33844]=0; itemramperf[33844]=0; itempcislots[33844]=0; itemdelta[33844]=350; itemdelaydays[33844]=0; starkl[33844]=3848; itemvperf[33832]=0; itemcpuperf[33832]=0; itemramperf[33832]=0; itempcislots[33832]=0; itemdelta[33832]=140; itemdelaydays[33832]=0; starkl[33832]=4729; itemvperf[33720]=190; itemcpuperf[33720]=0; itemramperf[33720]=0; itempcislots[33720]=0; itemdelta[33720]=0; itemdelaydays[33720]=0; starkl[33720]=9717; itemvperf[33716]=0; itemcpuperf[33716]=0; itemramperf[33716]=0; itempcislots[33716]=0; itemdelta[33716]=679; itemdelaydays[33716]=0; starkl[33716]=7722; itemvperf[33820]=0; itemcpuperf[33820]=0; itemramperf[33820]=0; itempcislots[33820]=0; itemdelta[33820]=1009; itemdelaydays[33820]=0; starkl[33820]=2490; itemvperf[32581]=0; itemcpuperf[32581]=0; itemramperf[32581]=0; itempcislots[32581]=0; itemdelta[32581]=609; itemdelaydays[32581]=0; starkl[32581]=2481; itemvperf[32582]=0; itemcpuperf[32582]=0; itemramperf[32582]=0; itempcislots[32582]=0; itemdelta[32582]=509; itemdelaydays[32582]=0; starkl[32582]=2024; itemvperf[32583]=0; itemcpuperf[32583]=0; itemramperf[32583]=0; itempcislots[32583]=0; itemdelta[32583]=249; itemdelaydays[32583]=0; starkl[32583]=3057; itemvperf[32585]=0; itemcpuperf[32585]=0; itemramperf[32585]=0; itempcislots[32585]=0; itemdelta[32585]=0; itemdelaydays[32585]=0; starkl[32585]=944; itemvperf[32667]=0; itemcpuperf[32667]=0; itemramperf[32667]=0; itempcislots[32667]=0; itemdelta[32667]=0; itemdelaydays[32667]=0; starkl[32667]=5083; itemvperf[33731]=0; itemcpuperf[33731]=0; itemramperf[33731]=0; itempcislots[33731]=0; itemdelta[33731]=195; itemdelaydays[33731]=0; starkl[33731]=404; itemvperf[33730]=0; itemcpuperf[33730]=0; itemramperf[33730]=0; itempcislots[33730]=0; itemdelta[33730]=125; itemdelaydays[33730]=0; starkl[33730]=4618; itemvperf[33729]=0; itemcpuperf[33729]=0; itemramperf[33729]=0; itempcislots[33729]=0; itemdelta[33729]=120; itemdelaydays[33729]=0; starkl[33729]=1191; itemvperf[32633]=0; itemcpuperf[32633]=0; itemramperf[32633]=0; itempcislots[32633]=0; itemdelta[32633]=40; itemdelaydays[32633]=0; starkl[32633]=7975; itemvperf[32634]=0; itemcpuperf[32634]=0; itemramperf[32634]=0; itempcislots[32634]=0; itemdelta[32634]=25; itemdelaydays[32634]=0; starkl[32634]=8403; itemvperf[32635]=0; itemcpuperf[32635]=0; itemramperf[32635]=0; itempcislots[32635]=0; itemdelta[32635]=0; itemdelaydays[32635]=0; starkl[32635]=4184; itemvperf[33850]=0; itemcpuperf[33850]=0; itemramperf[33850]=0; itempcislots[33850]=0; itemdelta[33850]=895; itemdelaydays[33850]=0; starkl[33850]=8289; itemvperf[33811]=0; itemcpuperf[33811]=0; itemramperf[33811]=0; itempcislots[33811]=0; itemdelta[33811]=385; itemdelaydays[33811]=0; starkl[33811]=3430; itemvperf[33792]=0; itemcpuperf[33792]=0; itemramperf[33792]=0; itempcislots[33792]=0; itemdelta[33792]=180; itemdelaydays[33792]=0; starkl[33792]=4725; itemvperf[33470]=0; itemcpuperf[33470]=0; itemramperf[33470]=0; itempcislots[33470]=0; itemdelta[33470]=85; itemdelaydays[33470]=0; starkl[33470]=3791; itemvperf[33847]=0; itemcpuperf[33847]=0; itemramperf[33847]=0; itempcislots[33847]=0; itemdelta[33847]=265; itemdelaydays[33847]=0; starkl[33847]=6699; itemvperf[33812]=0; itemcpuperf[33812]=0; itemramperf[33812]=0; itempcislots[33812]=0; itemdelta[33812]=85; itemdelaydays[33812]=0; starkl[33812]=3576; itemvperf[33754]=0; itemcpuperf[33754]=0; itemramperf[33754]=0; itempcislots[33754]=0; itemdelta[33754]=0; itemdelaydays[33754]=0; starkl[33754]=4538; itemvperf[33851]=0; itemcpuperf[33851]=0; itemramperf[33851]=0; itempcislots[33851]=0; itemdelta[33851]=320; itemdelaydays[33851]=0; starkl[33851]=730; itemvperf[33810]=0; itemcpuperf[33810]=0; itemramperf[33810]=0; itempcislots[33810]=0; itemdelta[33810]=205; itemdelaydays[33810]=0; starkl[33810]=4025; itemvperf[33467]=0; itemcpuperf[33467]=0; itemramperf[33467]=0; itempcislots[33467]=0; itemdelta[33467]=455; itemdelaydays[33467]=0; starkl[33467]=2055; itemvperf[33469]=0; itemcpuperf[33469]=0; itemramperf[33469]=0; itempcislots[33469]=0; itemdelta[33469]=260; itemdelaydays[33469]=0; starkl[33469]=1802; itemvperf[32569]=0; itemcpuperf[32569]=0; itemramperf[32569]=0; itempcislots[32569]=0; itemdelta[32569]=0; itemdelaydays[32569]=0; starkl[32569]=2526; itemvperf[32661]=0; itemcpuperf[32661]=0; itemramperf[32661]=0; itempcislots[32661]=0; itemdelta[32661]=140; itemdelaydays[32661]=0; starkl[32661]=3332; itemvperf[32599]=0; itemcpuperf[32599]=0; itemramperf[32599]=0; itempcislots[32599]=0; itemdelta[32599]=50; itemdelaydays[32599]=0; starkl[32599]=5341; itemvperf[33840]=0; itemcpuperf[33840]=0; itemramperf[33840]=0; itempcislots[33840]=0; itemdelta[33840]=0; itemdelaydays[33840]=0; starkl[33840]=2314; itemvperf[33772]=0; itemcpuperf[33772]=0; itemramperf[33772]=0; itempcislots[33772]=0; itemdelta[33772]=55; itemdelaydays[33772]=0; starkl[33772]=9463; itemvperf[33773]=0; itemcpuperf[33773]=0; itemramperf[33773]=0; itempcislots[33773]=0; itemdelta[33773]=0; itemdelaydays[33773]=0; starkl[33773]=5589; itemvperf[32578]=0; itemcpuperf[32578]=0; itemramperf[32578]=0; itempcislots[32578]=0; itemdelta[32578]=0; itemdelaydays[32578]=0; starkl[32578]=841; itemvperf[33846]=0; itemcpuperf[33846]=0; itemramperf[33846]=0; itempcislots[33846]=0; itemdelta[33846]=50; itemdelaydays[33846]=0; starkl[33846]=6840; itemvperf[33845]=0; itemcpuperf[33845]=0; itemramperf[33845]=0; itempcislots[33845]=0; itemdelta[33845]=0; itemdelaydays[33845]=0; starkl[33845]=7739; itemvperf[32614]=0; itemcpuperf[32614]=0; itemramperf[32614]=0; itempcislots[32614]=0; itemdelta[32614]=289; itemdelaydays[32614]=0; starkl[32614]=4997; itemvperf[32615]=0; itemcpuperf[32615]=0; itemramperf[32615]=0; itempcislots[32615]=0; itemdelta[32615]=199; itemdelaydays[32615]=0; starkl[32615]=3248; itemvperf[32617]=0; itemcpuperf[32617]=0; itemramperf[32617]=0; itempcislots[32617]=0; itemdelta[32617]=0; itemdelaydays[32617]=0; starkl[32617]=2513; itemvperf[33755]=0; itemcpuperf[33755]=0; itemramperf[33755]=0; itempcislots[33755]=0; itemdelta[33755]=0; itemdelaydays[33755]=0; starkl[33755]=8829; itemvperf[33698]=0; itemcpuperf[33698]=0; itemramperf[33698]=0; itempcislots[33698]=0; itemdelta[33698]=0; itemdelaydays[33698]=0; starkl[33698]=3413; itemvperf[33830]=0; itemcpuperf[33830]=0; itemramperf[33830]=0; itempcislots[33830]=0; itemdelta[33830]=0; itemdelaydays[33830]=0; starkl[33830]=3791; itemvperf[33699]=0; itemcpuperf[33699]=0; itemramperf[33699]=0; itempcislots[33699]=0; itemdelta[33699]=0; itemdelaydays[33699]=0; starkl[33699]=8051; itemvperf[32574]=0; itemcpuperf[32574]=0; itemramperf[32574]=0; itempcislots[32574]=0; itemdelta[32574]=245; itemdelaydays[32574]=0; starkl[32574]=6862; itemvperf[32576]=0; itemcpuperf[32576]=0; itemramperf[32576]=0; itempcislots[32576]=0; itemdelta[32576]=20; itemdelaydays[32576]=0; starkl[32576]=861; itemvperf[32577]=0; itemcpuperf[32577]=0; itemramperf[32577]=0; itempcislots[32577]=0; itemdelta[32577]=0; itemdelaydays[32577]=0; starkl[32577]=2260; itemvperf[33795]=0; itemcpuperf[33795]=0; itemramperf[33795]=0; itempcislots[33795]=0; itemdelta[33795]=100; itemdelaydays[33795]=0; starkl[33795]=3555; itemvperf[32589]=0; itemcpuperf[32589]=0; itemramperf[32589]=0; itempcislots[32589]=0; itemdelta[32589]=95; itemdelaydays[32589]=0; starkl[32589]=5140; itemvperf[32591]=0; itemcpuperf[32591]=0; itemramperf[32591]=0; itempcislots[32591]=0; itemdelta[32591]=20; itemdelaydays[32591]=0; starkl[32591]=4126; itemvperf[32592]=0; itemcpuperf[32592]=0; itemramperf[32592]=0; itempcislots[32592]=0; itemdelta[32592]=0; itemdelaydays[32592]=0; starkl[32592]=5266; itemvperf[32624]=0; itemcpuperf[32624]=0; itemramperf[32624]=0; itempcislots[32624]=0; itemdelta[32624]=20; itemdelaydays[32624]=0; starkl[32624]=3092; itemvperf[32625]=0; itemcpuperf[32625]=0; itemramperf[32625]=0; itempcislots[32625]=0; itemdelta[32625]=0; itemdelaydays[32625]=0; starkl[32625]=2185; itemvperf[33848]=0; itemcpuperf[33848]=0; itemramperf[33848]=0; itempcislots[33848]=0; itemdelta[33848]=0; itemdelaydays[33848]=0; starkl[33848]=2625; itemvperf[33757]=0; itemcpuperf[33757]=0; itemramperf[33757]=0; itempcislots[33757]=0; itemdelta[33757]=0; itemdelaydays[33757]=0; starkl[33757]=2365; itemvperf[33758]=0; itemcpuperf[33758]=0; itemramperf[33758]=0; itempcislots[33758]=0; itemdelta[33758]=0; itemdelaydays[33758]=0; starkl[33758]=936; itemvperf[33759]=0; itemcpuperf[33759]=0; itemramperf[33759]=0; itempcislots[33759]=0; itemdelta[33759]=0; itemdelaydays[33759]=0; starkl[33759]=2023; itemvperf[32529]=0; itemcpuperf[32529]=0; itemramperf[32529]=0; itempcislots[32529]=0; itemdelta[32529]=0; itemdelaydays[32529]=0; starkl[32529]=302; itemvperf[32626]=0; itemcpuperf[32626]=0; itemramperf[32626]=0; itempcislots[32626]=0; itemdelta[32626]=0; itemdelaydays[32626]=0; starkl[32626]=8611; itemvperf[32546]=0; itemcpuperf[32546]=0; itemramperf[32546]=0; itempcislots[32546]=0; itemdelta[32546]=0; itemdelaydays[32546]=0; starkl[32546]=6609; itemvperf[32650]=0; itemcpuperf[32650]=0; itemramperf[32650]=0; itempcislots[32650]=0; itemdelta[32650]=299; itemdelaydays[32650]=0; starkl[32650]=911; itemvperf[32652]=0; itemcpuperf[32652]=0; itemramperf[32652]=0; itempcislots[32652]=0; itemdelta[32652]=199; itemdelaydays[32652]=0; starkl[32652]=8862; itemvperf[32654]=0; itemcpuperf[32654]=0; itemramperf[32654]=0; itempcislots[32654]=0; itemdelta[32654]=0; itemdelaydays[32654]=0; starkl[32654]=4474; itemvperf[32640]=0; itemcpuperf[32640]=0; itemramperf[32640]=0; itempcislots[32640]=0; itemdelta[32640]=0; itemdelaydays[32640]=0; starkl[32640]=5215; itemvperf[33741]=0; itemcpuperf[33741]=0; itemramperf[33741]=0; itempcislots[33741]=0; itemdelta[33741]=-50; itemdelaydays[33741]=0; starkl[33741]=5490; itemvperf[33781]=0; itemcpuperf[33781]=0; itemramperf[33781]=0; itempcislots[33781]=0; itemdelta[33781]=-50; itemdelaydays[33781]=0; starkl[33781]=4840; itemvperf[33838]=0; itemcpuperf[33838]=0; itemramperf[33838]=0; itempcislots[33838]=0; itemdelta[33838]=-50; itemdelaydays[33838]=0; starkl[33838]=7704; itemvperf[33742]=0; itemcpuperf[33742]=0; itemramperf[33742]=0; itempcislots[33742]=0; itemdelta[33742]=0; itemdelaydays[33742]=0; starkl[33742]=8958; caseImages[33763]=new Image(); caseImages[33763].src='/img/category-thumbnails/nx2-category-thumbnail.png'; caseImages[33839]=new Image(); caseImages[33839].src='/img/category-thumbnails/vxi-category-thumbnail.png'; 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()