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[32791]=0; itemcpuperf[32791]=0; itemramperf[32791]=0; itempcislots[32791]=0; itemdelta[32791]=0; itemdelaydays[32791]=0; starkl[32791]=4015; itemvperf[32907]=0; itemcpuperf[32907]=0; itemramperf[32907]=0; itempcislots[32907]=0; itemdelta[32907]=0; itemdelaydays[32907]=0; starkl[32907]=9984; itemvperf[32817]=0; itemcpuperf[32817]=0; itemramperf[32817]=0; itempcislots[32817]=0; itemdelta[32817]=0; itemdelaydays[32817]=0; starkl[32817]=585; itemvperf[33700]=0; itemcpuperf[33700]=0; itemramperf[33700]=0; itempcislots[33700]=0; itemdelta[33700]=18665; itemdelaydays[33700]=0; starkl[33700]=5733; itemvperf[33645]=0; itemcpuperf[33645]=0; itemramperf[33645]=0; itempcislots[33645]=0; itemdelta[33645]=4470; itemdelaydays[33645]=0; starkl[33645]=5196; itemvperf[32871]=0; itemcpuperf[32871]=0; itemramperf[32871]=0; itempcislots[32871]=0; itemdelta[32871]=3575; itemdelaydays[32871]=0; starkl[32871]=7224; itemvperf[32872]=0; itemcpuperf[32872]=0; itemramperf[32872]=0; itempcislots[32872]=0; itemdelta[32872]=1715; itemdelaydays[32872]=0; starkl[32872]=5079; itemvperf[33639]=0; itemcpuperf[33639]=0; itemramperf[33639]=0; itempcislots[33639]=0; itemdelta[33639]=1060; itemdelaydays[33639]=0; starkl[33639]=9248; itemvperf[32874]=0; itemcpuperf[32874]=0; itemramperf[32874]=0; itempcislots[32874]=0; itemdelta[32874]=0; itemdelaydays[32874]=0; starkl[32874]=5070; itemvperf[32792]=0; itemcpuperf[32792]=0; itemramperf[32792]=0; itempcislots[32792]=0; itemdelta[32792]=0; itemdelaydays[32792]=0; starkl[32792]=1896; itemvperf[32813]=0; itemcpuperf[32813]=0; itemramperf[32813]=0; itempcislots[32813]=0; itemdelta[32813]=0; itemdelaydays[32813]=0; starkl[32813]=1889; itemvperf[32857]=0; itemcpuperf[32857]=0; itemramperf[32857]=0; itempcislots[32857]=0; itemdelta[32857]=0; itemdelaydays[32857]=0; starkl[32857]=1934; itemvperf[32793]=0; itemcpuperf[32793]=0; itemramperf[32793]=0; itempcislots[32793]=0; itemdelta[32793]=5990; itemdelaydays[32793]=0; starkl[32793]=6006; itemvperf[32797]=0; itemcpuperf[32797]=0; itemramperf[32797]=0; itempcislots[32797]=0; itemdelta[32797]=2450; itemdelaydays[32797]=0; starkl[32797]=5708; itemvperf[32795]=0; itemcpuperf[32795]=0; itemramperf[32795]=0; itempcislots[32795]=0; itemdelta[32795]=1100; itemdelaydays[32795]=0; starkl[32795]=353; itemvperf[32798]=0; itemcpuperf[32798]=0; itemramperf[32798]=0; itempcislots[32798]=0; itemdelta[32798]=2450; itemdelaydays[32798]=0; starkl[32798]=7336; itemvperf[33694]=0; itemcpuperf[33694]=0; itemramperf[33694]=0; itempcislots[33694]=0; itemdelta[33694]=680; itemdelaydays[33694]=0; starkl[33694]=7607; itemvperf[33695]=0; itemcpuperf[33695]=0; itemramperf[33695]=0; itempcislots[33695]=0; itemdelta[33695]=0; itemdelaydays[33695]=0; starkl[33695]=1261; itemvperf[33663]=0; itemcpuperf[33663]=0; itemramperf[33663]=0; itempcislots[33663]=0; itemdelta[33663]=0; itemdelaydays[33663]=0; starkl[33663]=6360; itemvperf[32830]=0; itemcpuperf[32830]=0; itemramperf[32830]=0; itempcislots[32830]=0; itemdelta[32830]=0; itemdelaydays[32830]=0; starkl[32830]=8573; itemvperf[33675]=0; itemcpuperf[33675]=0; itemramperf[33675]=0; itempcislots[33675]=0; itemdelta[33675]=81450; itemdelaydays[33675]=0; starkl[33675]=6366; itemvperf[33661]=0; itemcpuperf[33661]=0; itemramperf[33661]=0; itempcislots[33661]=0; itemdelta[33661]=40720; itemdelaydays[33661]=0; starkl[33661]=2777; itemvperf[32831]=0; itemcpuperf[32831]=0; itemramperf[32831]=0; itempcislots[32831]=0; itemdelta[32831]=20360; itemdelaydays[32831]=0; starkl[32831]=8678; itemvperf[32832]=0; itemcpuperf[32832]=0; itemramperf[32832]=0; itempcislots[32832]=0; itemdelta[32832]=10180; itemdelaydays[32832]=0; starkl[32832]=7102; itemvperf[33597]=0; itemcpuperf[33597]=0; itemramperf[33597]=0; itempcislots[33597]=0; itemdelta[33597]=48200; itemdelaydays[33597]=0; starkl[33597]=7862; itemvperf[32838]=0; itemcpuperf[32838]=0; itemramperf[32838]=0; itempcislots[32838]=0; itemdelta[32838]=24100; itemdelaydays[32838]=0; starkl[32838]=885; itemvperf[32839]=0; itemcpuperf[32839]=0; itemramperf[32839]=0; itempcislots[32839]=0; itemdelta[32839]=12055; itemdelaydays[32839]=0; starkl[32839]=8786; itemvperf[32841]=0; itemcpuperf[32841]=0; itemramperf[32841]=0; itempcislots[32841]=0; itemdelta[32841]=6025; itemdelaydays[32841]=0; starkl[32841]=5806; itemvperf[33696]=0; itemcpuperf[33696]=0; itemramperf[33696]=0; itempcislots[33696]=0; itemdelta[33696]=0; itemdelaydays[33696]=0; starkl[33696]=8564; itemvperf[33598]=0; itemcpuperf[33598]=0; itemramperf[33598]=0; itempcislots[33598]=0; itemdelta[33598]=439; itemdelaydays[33598]=0; starkl[33598]=8216; itemvperf[33599]=0; itemcpuperf[33599]=0; itemramperf[33599]=0; itempcislots[33599]=0; itemdelta[33599]=219; itemdelaydays[33599]=0; starkl[33599]=2063; itemvperf[32816]=0; itemcpuperf[32816]=0; itemramperf[32816]=0; itempcislots[32816]=0; itemdelta[32816]=0; itemdelaydays[32816]=0; starkl[32816]=7084; itemvperf[33682]=0; itemcpuperf[33682]=0; itemramperf[33682]=0; itempcislots[33682]=0; itemdelta[33682]=610; itemdelaydays[33682]=0; starkl[33682]=965; itemvperf[33628]=0; itemcpuperf[33628]=0; itemramperf[33628]=0; itempcislots[33628]=0; itemdelta[33628]=340; itemdelaydays[33628]=0; starkl[33628]=9727; itemvperf[33606]=0; itemcpuperf[33606]=0; itemramperf[33606]=0; itempcislots[33606]=0; itemdelta[33606]=190; itemdelaydays[33606]=0; starkl[33606]=5811; itemvperf[33607]=0; itemcpuperf[33607]=0; itemramperf[33607]=0; itempcislots[33607]=0; itemdelta[33607]=95; itemdelaydays[33607]=0; starkl[33607]=6116; itemvperf[33697]=0; itemcpuperf[33697]=0; itemramperf[33697]=0; itempcislots[33697]=0; itemdelta[33697]=40; itemdelaydays[33697]=0; starkl[33697]=5820; itemvperf[33698]=0; itemcpuperf[33698]=0; itemramperf[33698]=0; itempcislots[33698]=0; itemdelta[33698]=70; itemdelaydays[33698]=0; starkl[33698]=8823; itemvperf[33699]=0; itemcpuperf[33699]=0; itemramperf[33699]=0; itempcislots[33699]=0; itemdelta[33699]=0; itemdelaydays[33699]=0; starkl[33699]=9652; itemvperf[33629]=0; itemcpuperf[33629]=0; itemramperf[33629]=0; itempcislots[33629]=0; itemdelta[33629]=730; itemdelaydays[33629]=0; starkl[33629]=3210; itemvperf[33686]=0; itemcpuperf[33686]=0; itemramperf[33686]=0; itempcislots[33686]=0; itemdelta[33686]=335; itemdelaydays[33686]=0; starkl[33686]=7175; itemvperf[33624]=0; itemcpuperf[33624]=0; itemramperf[33624]=0; itempcislots[33624]=0; itemdelta[33624]=165; itemdelaydays[33624]=0; starkl[33624]=1557; itemvperf[32804]=0; itemcpuperf[32804]=0; itemramperf[32804]=0; itempcislots[32804]=0; itemdelta[32804]=120; itemdelaydays[32804]=0; starkl[32804]=7622; itemvperf[32805]=0; itemcpuperf[32805]=0; itemramperf[32805]=0; itempcislots[32805]=0; itemdelta[32805]=305; itemdelaydays[32805]=0; starkl[32805]=9887; itemvperf[33684]=0; itemcpuperf[33684]=0; itemramperf[33684]=0; itempcislots[33684]=0; itemdelta[33684]=170; itemdelaydays[33684]=0; starkl[33684]=9753; itemvperf[33683]=0; itemcpuperf[33683]=0; itemramperf[33683]=0; itempcislots[33683]=0; itemdelta[33683]=80; itemdelaydays[33683]=0; starkl[33683]=920; itemvperf[32809]=0; itemcpuperf[32809]=0; itemramperf[32809]=0; itempcislots[32809]=0; itemdelta[32809]=0; itemdelaydays[32809]=0; starkl[32809]=5863; itemvperf[33690]=0; itemcpuperf[33690]=0; itemramperf[33690]=0; itempcislots[33690]=0; itemdelta[33690]=510; itemdelaydays[33690]=0; starkl[33690]=8262; itemvperf[33662]=0; itemcpuperf[33662]=0; itemramperf[33662]=0; itempcislots[33662]=0; itemdelta[33662]=280; itemdelaydays[33662]=0; starkl[33662]=3343; itemvperf[33609]=0; itemcpuperf[33609]=0; itemramperf[33609]=0; itempcislots[33609]=0; itemdelta[33609]=65; itemdelaydays[33609]=0; starkl[33609]=9457; itemvperf[33610]=0; itemcpuperf[33610]=0; itemramperf[33610]=0; itempcislots[33610]=0; itemdelta[33610]=170; itemdelaydays[33610]=0; starkl[33610]=4680; itemvperf[33689]=0; itemcpuperf[33689]=0; itemramperf[33689]=0; itempcislots[33689]=0; itemdelta[33689]=130; itemdelaydays[33689]=0; starkl[33689]=1872; itemvperf[33688]=0; itemcpuperf[33688]=0; itemramperf[33688]=0; itempcislots[33688]=0; itemdelta[33688]=230; itemdelaydays[33688]=0; starkl[33688]=2412; itemvperf[33612]=0; itemcpuperf[33612]=0; itemramperf[33612]=0; itempcislots[33612]=0; itemdelta[33612]=120; itemdelaydays[33612]=0; starkl[33612]=8525; itemvperf[33630]=0; itemcpuperf[33630]=0; itemramperf[33630]=0; itempcislots[33630]=0; itemdelta[33630]=85; itemdelaydays[33630]=0; starkl[33630]=1894; itemvperf[33613]=0; itemcpuperf[33613]=0; itemramperf[33613]=0; itempcislots[33613]=0; itemdelta[33613]=0; itemdelaydays[33613]=0; starkl[33613]=9044; itemvperf[33616]=0; itemcpuperf[33616]=0; itemramperf[33616]=0; itempcislots[33616]=0; itemdelta[33616]=305; itemdelaydays[33616]=0; starkl[33616]=1853; itemvperf[33693]=0; itemcpuperf[33693]=0; itemramperf[33693]=0; itempcislots[33693]=0; itemdelta[33693]=170; itemdelaydays[33693]=0; starkl[33693]=3062; itemvperf[33626]=0; itemcpuperf[33626]=0; itemramperf[33626]=0; itempcislots[33626]=0; itemdelta[33626]=85; itemdelaydays[33626]=0; starkl[33626]=839; itemvperf[33615]=0; itemcpuperf[33615]=0; itemramperf[33615]=0; itempcislots[33615]=0; itemdelta[33615]=65; itemdelaydays[33615]=0; starkl[33615]=9132; itemvperf[33692]=0; itemcpuperf[33692]=0; itemramperf[33692]=0; itempcislots[33692]=0; itemdelta[33692]=230; itemdelaydays[33692]=0; starkl[33692]=2119; itemvperf[33691]=0; itemcpuperf[33691]=0; itemramperf[33691]=0; itempcislots[33691]=0; itemdelta[33691]=120; itemdelaydays[33691]=0; starkl[33691]=7502; itemvperf[33631]=0; itemcpuperf[33631]=0; itemramperf[33631]=0; itempcislots[33631]=0; itemdelta[33631]=85; itemdelaydays[33631]=0; starkl[33631]=933; itemvperf[33618]=0; itemcpuperf[33618]=0; itemramperf[33618]=0; itempcislots[33618]=0; itemdelta[33618]=0; itemdelaydays[33618]=0; starkl[33618]=2988; itemvperf[33619]=0; itemcpuperf[33619]=0; itemramperf[33619]=0; itempcislots[33619]=0; itemdelta[33619]=145; itemdelaydays[33619]=0; starkl[33619]=8479; itemvperf[33621]=0; itemcpuperf[33621]=0; itemramperf[33621]=0; itempcislots[33621]=0; itemdelta[33621]=50; itemdelaydays[33621]=0; starkl[33621]=9264; itemvperf[33622]=0; itemcpuperf[33622]=0; itemramperf[33622]=0; itempcislots[33622]=0; itemdelta[33622]=0; itemdelaydays[33622]=0; starkl[33622]=4491; itemvperf[32812]=0; itemcpuperf[32812]=0; itemramperf[32812]=0; itempcislots[32812]=0; itemdelta[32812]=0; itemdelaydays[32812]=0; starkl[32812]=542; itemvperf[33702]=0; itemcpuperf[33702]=0; itemramperf[33702]=0; itempcislots[33702]=0; itemdelta[33702]=5005; itemdelaydays[33702]=0; starkl[33702]=1429; itemvperf[33701]=0; itemcpuperf[33701]=0; itemramperf[33701]=0; itempcislots[33701]=0; itemdelta[33701]=4355; itemdelaydays[33701]=0; starkl[33701]=608; itemvperf[33672]=0; itemcpuperf[33672]=0; itemramperf[33672]=0; itempcislots[33672]=0; itemdelta[33672]=3015; itemdelaydays[33672]=0; starkl[33672]=8279; itemvperf[32824]=0; itemcpuperf[32824]=0; itemramperf[32824]=0; itempcislots[32824]=0; itemdelta[32824]=2435; itemdelaydays[32824]=0; starkl[32824]=2524; itemvperf[32825]=0; itemcpuperf[32825]=0; itemramperf[32825]=0; itempcislots[32825]=0; itemdelta[32825]=1745; itemdelaydays[32825]=0; starkl[32825]=819; itemvperf[32826]=0; itemcpuperf[32826]=0; itemramperf[32826]=0; itempcislots[32826]=0; itemdelta[32826]=70; itemdelaydays[32826]=0; starkl[32826]=2669; itemvperf[32827]=0; itemcpuperf[32827]=0; itemramperf[32827]=0; itempcislots[32827]=0; itemdelta[32827]=0; itemdelaydays[32827]=0; starkl[32827]=3964; itemvperf[32903]=0; itemcpuperf[32903]=0; itemramperf[32903]=0; itempcislots[32903]=0; itemdelta[32903]=15; itemdelaydays[32903]=0; starkl[32903]=7843; itemvperf[32811]=0; itemcpuperf[32811]=0; itemramperf[32811]=0; itempcislots[32811]=0; itemdelta[32811]=0; itemdelaydays[32811]=0; starkl[32811]=5334; itemvperf[32904]=0; itemcpuperf[32904]=0; itemramperf[32904]=0; itempcislots[32904]=0; itemdelta[32904]=15; itemdelaydays[32904]=0; starkl[32904]=7235; itemvperf[32819]=0; itemcpuperf[32819]=0; itemramperf[32819]=0; itempcislots[32819]=0; itemdelta[32819]=0; itemdelaydays[32819]=0; starkl[32819]=6594; itemvperf[32820]=0; itemcpuperf[32820]=0; itemramperf[32820]=0; itempcislots[32820]=0; itemdelta[32820]=15; itemdelaydays[32820]=0; starkl[32820]=7384; itemvperf[32821]=0; itemcpuperf[32821]=0; itemramperf[32821]=0; itempcislots[32821]=0; itemdelta[32821]=0; itemdelaydays[32821]=0; starkl[32821]=8869; itemvperf[32787]=0; itemcpuperf[32787]=0; itemramperf[32787]=0; itempcislots[32787]=0; itemdelta[32787]=0; itemdelaydays[32787]=0; starkl[32787]=6338; itemvperf[32799]=0; itemcpuperf[32799]=0; itemramperf[32799]=0; itempcislots[32799]=0; itemdelta[32799]=0; itemdelaydays[32799]=0; starkl[32799]=9849; itemvperf[32862]=0; itemcpuperf[32862]=0; itemramperf[32862]=0; itempcislots[32862]=0; itemdelta[32862]=1099; itemdelaydays[32862]=0; starkl[32862]=9873; itemvperf[32864]=0; itemcpuperf[32864]=0; itemramperf[32864]=0; itempcislots[32864]=0; itemdelta[32864]=0; itemdelaydays[32864]=0; starkl[32864]=5783; itemvperf[32865]=0; itemcpuperf[32865]=0; itemramperf[32865]=0; itempcislots[32865]=0; itemdelta[32865]=0; itemdelaydays[32865]=0; starkl[32865]=5674; itemvperf[32859]=0; itemcpuperf[32859]=0; itemramperf[32859]=0; itempcislots[32859]=0; itemdelta[32859]=0; itemdelaydays[32859]=0; starkl[32859]=2760; itemvperf[33705]=0; itemcpuperf[33705]=0; itemramperf[33705]=0; itempcislots[33705]=0; itemdelta[33705]=-500; itemdelaydays[33705]=0; starkl[33705]=2770; itemvperf[33704]=0; itemcpuperf[33704]=0; itemramperf[33704]=0; itempcislots[33704]=0; itemdelta[33704]=-500; itemdelaydays[33704]=0; starkl[33704]=5858; itemvperf[33703]=0; itemcpuperf[33703]=0; itemramperf[33703]=0; itempcislots[33703]=0; itemdelta[33703]=0; itemdelaydays[33703]=0; starkl[33703]=6054; caseImages[32791]=new Image(); caseImages[32791].src='/img/category-thumbnails/G480i-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()