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[28432]=0; itemcpuperf[28432]=0; itemramperf[28432]=0; itempcislots[28432]=0; itemdelta[28432]=0; itemdelaydays[28432]=0; starkl[28432]=9629; itemvperf[28599]=0; itemcpuperf[28599]=0; itemramperf[28599]=0; itempcislots[28599]=0; itemdelta[28599]=0; itemdelaydays[28599]=0; starkl[28599]=7730; itemvperf[32910]=0; itemcpuperf[32910]=0; itemramperf[32910]=0; itempcislots[32910]=0; itemdelta[32910]=745; itemdelaydays[32910]=0; starkl[32910]=2966; itemvperf[32911]=0; itemcpuperf[32911]=0; itemramperf[32911]=0; itempcislots[32911]=0; itemdelta[32911]=405; itemdelaydays[32911]=0; starkl[32911]=9469; itemvperf[32912]=0; itemcpuperf[32912]=0; itemramperf[32912]=0; itempcislots[32912]=0; itemdelta[32912]=0; itemdelaydays[32912]=0; starkl[32912]=6571; itemvperf[28434]=0; itemcpuperf[28434]=0; itemramperf[28434]=0; itempcislots[28434]=0; itemdelta[28434]=0; itemdelaydays[28434]=0; starkl[28434]=4622; itemvperf[29973]=0; itemcpuperf[29973]=0; itemramperf[29973]=0; itempcislots[29973]=0; itemdelta[29973]=2990; itemdelaydays[29973]=0; starkl[29973]=3685; itemvperf[29974]=0; itemcpuperf[29974]=0; itemramperf[29974]=0; itempcislots[29974]=0; itemdelta[29974]=2560; itemdelaydays[29974]=0; starkl[29974]=8347; itemvperf[29975]=0; itemcpuperf[29975]=0; itemramperf[29975]=0; itempcislots[29975]=0; itemdelta[29975]=1960; itemdelaydays[29975]=0; starkl[29975]=6460; itemvperf[29976]=0; itemcpuperf[29976]=0; itemramperf[29976]=0; itempcislots[29976]=0; itemdelta[29976]=1355; itemdelaydays[29976]=0; starkl[29976]=1359; itemvperf[29977]=0; itemcpuperf[29977]=0; itemramperf[29977]=0; itempcislots[29977]=0; itemdelta[29977]=905; itemdelaydays[29977]=0; starkl[29977]=2240; itemvperf[29978]=0; itemcpuperf[29978]=0; itemramperf[29978]=0; itempcislots[29978]=0; itemdelta[29978]=605; itemdelaydays[29978]=0; starkl[29978]=212; itemvperf[29979]=0; itemcpuperf[29979]=0; itemramperf[29979]=0; itempcislots[29979]=0; itemdelta[29979]=305; itemdelaydays[29979]=0; starkl[29979]=561; itemvperf[29980]=0; itemcpuperf[29980]=0; itemramperf[29980]=0; itempcislots[29980]=0; itemdelta[29980]=0; itemdelaydays[29980]=0; starkl[29980]=7598; itemvperf[28610]=0; itemcpuperf[28610]=0; itemramperf[28610]=0; itempcislots[28610]=0; itemdelta[28610]=0; itemdelaydays[28610]=0; starkl[28610]=9281; itemvperf[28362]=0; itemcpuperf[28362]=0; itemramperf[28362]=0; itempcislots[28362]=0; itemdelta[28362]=0; itemdelaydays[28362]=0; starkl[28362]=7565; itemvperf[30115]=0; itemcpuperf[30115]=0; itemramperf[30115]=0; itempcislots[30115]=0; itemdelta[30115]=23845; itemdelaydays[30115]=0; starkl[30115]=4154; itemvperf[30116]=0; itemcpuperf[30116]=0; itemramperf[30116]=0; itempcislots[30116]=0; itemdelta[30116]=20865; itemdelaydays[30116]=0; starkl[30116]=5384; itemvperf[30117]=0; itemcpuperf[30117]=0; itemramperf[30117]=0; itempcislots[30117]=0; itemdelta[30117]=17885; itemdelaydays[30117]=0; starkl[30117]=6695; itemvperf[30118]=0; itemcpuperf[30118]=0; itemramperf[30118]=0; itempcislots[30118]=0; itemdelta[30118]=14905; itemdelaydays[30118]=0; starkl[30118]=7092; itemvperf[30119]=0; itemcpuperf[30119]=0; itemramperf[30119]=0; itempcislots[30119]=0; itemdelta[30119]=11925; itemdelaydays[30119]=0; starkl[30119]=5271; itemvperf[30120]=0; itemcpuperf[30120]=0; itemramperf[30120]=0; itempcislots[30120]=0; itemdelta[30120]=19000; itemdelaydays[30120]=0; starkl[30120]=706; itemvperf[30121]=0; itemcpuperf[30121]=0; itemramperf[30121]=0; itempcislots[30121]=0; itemdelta[30121]=16600; itemdelaydays[30121]=0; starkl[30121]=9997; itemvperf[30122]=0; itemcpuperf[30122]=0; itemramperf[30122]=0; itempcislots[30122]=0; itemdelta[30122]=14300; itemdelaydays[30122]=0; starkl[30122]=1501; itemvperf[30123]=0; itemcpuperf[30123]=0; itemramperf[30123]=0; itempcislots[30123]=0; itemdelta[30123]=11800; itemdelaydays[30123]=0; starkl[30123]=412; itemvperf[30124]=0; itemcpuperf[30124]=0; itemramperf[30124]=0; itempcislots[30124]=0; itemdelta[30124]=9500; itemdelaydays[30124]=0; starkl[30124]=2692; itemvperf[32898]=0; itemcpuperf[32898]=0; itemramperf[32898]=0; itempcislots[32898]=0; itemdelta[32898]=35500; itemdelaydays[32898]=0; starkl[32898]=8798; itemvperf[32899]=0; itemcpuperf[32899]=0; itemramperf[32899]=0; itempcislots[32899]=0; itemdelta[32899]=31065; itemdelaydays[32899]=0; starkl[32899]=646; itemvperf[32900]=0; itemcpuperf[32900]=0; itemramperf[32900]=0; itempcislots[32900]=0; itemdelta[32900]=26625; itemdelaydays[32900]=0; starkl[32900]=2350; itemvperf[32901]=0; itemcpuperf[32901]=0; itemramperf[32901]=0; itempcislots[32901]=0; itemdelta[32901]=22185; itemdelaydays[32901]=0; starkl[32901]=5281; itemvperf[32902]=0; itemcpuperf[32902]=0; itemramperf[32902]=0; itempcislots[32902]=0; itemdelta[32902]=17750; itemdelaydays[32902]=0; starkl[32902]=8775; itemvperf[30114]=0; itemcpuperf[30114]=0; itemramperf[30114]=0; itempcislots[30114]=0; itemdelta[30114]=0; itemdelaydays[30114]=0; starkl[30114]=5551; itemvperf[28440]=0; itemcpuperf[28440]=0; itemramperf[28440]=0; itempcislots[28440]=0; itemdelta[28440]=2915; itemdelaydays[28440]=0; starkl[28440]=3563; itemvperf[28441]=0; itemcpuperf[28441]=0; itemramperf[28441]=0; itempcislots[28441]=0; itemdelta[28441]=1745; itemdelaydays[28441]=0; starkl[28441]=4415; itemvperf[28442]=0; itemcpuperf[28442]=0; itemramperf[28442]=0; itempcislots[28442]=0; itemdelta[28442]=565; itemdelaydays[28442]=0; starkl[28442]=4404; itemvperf[28435]=0; itemcpuperf[28435]=0; itemramperf[28435]=0; itempcislots[28435]=0; itemdelta[28435]=1220; itemdelaydays[28435]=0; starkl[28435]=9683; itemvperf[28436]=0; itemcpuperf[28436]=0; itemramperf[28436]=0; itempcislots[28436]=0; itemdelta[28436]=610; itemdelaydays[28436]=0; starkl[28436]=4125; itemvperf[28437]=0; itemcpuperf[28437]=0; itemramperf[28437]=0; itempcislots[28437]=0; itemdelta[28437]=0; itemdelaydays[28437]=0; starkl[28437]=5902; itemvperf[32124]=0; itemcpuperf[32124]=0; itemramperf[32124]=0; itempcislots[32124]=0; itemdelta[32124]=4350; itemdelaydays[32124]=0; starkl[32124]=5247; itemvperf[32125]=0; itemcpuperf[32125]=0; itemramperf[32125]=0; itempcislots[32125]=0; itemdelta[32125]=2429; itemdelaydays[32125]=0; starkl[32125]=2134; itemvperf[32126]=0; itemcpuperf[32126]=0; itemramperf[32126]=0; itempcislots[32126]=0; itemdelta[32126]=1045; itemdelaydays[32126]=0; starkl[32126]=2948; itemvperf[32128]=0; itemcpuperf[32128]=0; itemramperf[32128]=0; itempcislots[32128]=0; itemdelta[32128]=3549; itemdelaydays[32128]=0; starkl[32128]=2121; itemvperf[32129]=0; itemcpuperf[32129]=0; itemramperf[32129]=0; itempcislots[32129]=0; itemdelta[32129]=3035; itemdelaydays[32129]=0; starkl[32129]=5334; itemvperf[32130]=0; itemcpuperf[32130]=0; itemramperf[32130]=0; itempcislots[32130]=0; itemdelta[32130]=1085; itemdelaydays[32130]=0; starkl[32130]=3334; itemvperf[33590]=0; itemcpuperf[33590]=0; itemramperf[33590]=0; itempcislots[33590]=0; itemdelta[33590]=595; itemdelaydays[33590]=0; starkl[33590]=1932; itemvperf[33591]=0; itemcpuperf[33591]=0; itemramperf[33591]=0; itempcislots[33591]=0; itemdelta[33591]=575; itemdelaydays[33591]=0; starkl[33591]=6670; itemvperf[33592]=0; itemcpuperf[33592]=0; itemramperf[33592]=0; itempcislots[33592]=0; itemdelta[33592]=615; itemdelaydays[33592]=0; starkl[33592]=6758; itemvperf[33593]=0; itemcpuperf[33593]=0; itemramperf[33593]=0; itempcislots[33593]=0; itemdelta[33593]=195; itemdelaydays[33593]=0; starkl[33593]=389; itemvperf[33594]=0; itemcpuperf[33594]=0; itemramperf[33594]=0; itempcislots[33594]=0; itemdelta[33594]=239; itemdelaydays[33594]=0; starkl[33594]=8105; itemvperf[33595]=0; itemcpuperf[33595]=0; itemramperf[33595]=0; itempcislots[33595]=0; itemdelta[33595]=165; itemdelaydays[33595]=0; starkl[33595]=8422; itemvperf[33596]=280; itemcpuperf[33596]=0; itemramperf[33596]=0; itempcislots[33596]=0; itemdelta[33596]=665; itemdelaydays[33596]=4; starkl[33596]=5930; itemvperf[28393]=0; itemcpuperf[28393]=0; itemramperf[28393]=0; itempcislots[28393]=0; itemdelta[28393]=0; itemdelaydays[28393]=0; starkl[28393]=2227; itemvperf[28363]=0; itemcpuperf[28363]=0; itemramperf[28363]=0; itempcislots[28363]=0; itemdelta[28363]=499; itemdelaydays[28363]=0; starkl[28363]=3243; itemvperf[28364]=0; itemcpuperf[28364]=0; itemramperf[28364]=0; itempcislots[28364]=0; itemdelta[28364]=299; itemdelaydays[28364]=0; starkl[28364]=1846; itemvperf[28365]=0; itemcpuperf[28365]=0; itemramperf[28365]=0; itempcislots[28365]=0; itemdelta[28365]=0; itemdelaydays[28365]=0; starkl[28365]=4435; itemvperf[28340]=0; itemcpuperf[28340]=0; itemramperf[28340]=0; itempcislots[28340]=0; itemdelta[28340]=-105; itemdelaydays[28340]=0; starkl[28340]=8314; itemvperf[28341]=0; itemcpuperf[28341]=0; itemramperf[28341]=0; itempcislots[28341]=0; itemdelta[28341]=-80; itemdelaydays[28341]=0; starkl[28341]=9904; itemvperf[29990]=0; itemcpuperf[29990]=0; itemramperf[29990]=0; itempcislots[29990]=0; itemdelta[29990]=0; itemdelaydays[29990]=0; starkl[29990]=9656; itemvperf[28351]=0; itemcpuperf[28351]=0; itemramperf[28351]=0; itempcislots[28351]=0; itemdelta[28351]=495; itemdelaydays[28351]=10; starkl[28351]=2481; itemvperf[28352]=0; itemcpuperf[28352]=0; itemramperf[28352]=0; itempcislots[28352]=0; itemdelta[28352]=475; itemdelaydays[28352]=0; starkl[28352]=7710; itemvperf[28353]=0; itemcpuperf[28353]=0; itemramperf[28353]=0; itempcislots[28353]=0; itemdelta[28353]=310; itemdelaydays[28353]=0; starkl[28353]=8335; itemvperf[28460]=0; itemcpuperf[28460]=0; itemramperf[28460]=0; itempcislots[28460]=0; itemdelta[28460]=260; itemdelaydays[28460]=0; starkl[28460]=2058; itemvperf[28355]=0; itemcpuperf[28355]=0; itemramperf[28355]=0; itempcislots[28355]=0; itemdelta[28355]=0; itemdelaydays[28355]=0; starkl[28355]=2715; itemvperf[28359]=0; itemcpuperf[28359]=0; itemramperf[28359]=0; itempcislots[28359]=0; itemdelta[28359]=0; itemdelaydays[28359]=0; starkl[28359]=5784; itemvperf[28410]=0; itemcpuperf[28410]=0; itemramperf[28410]=0; itempcislots[28410]=0; itemdelta[28410]=0; itemdelaydays[28410]=0; starkl[28410]=4439; itemvperf[28608]=0; itemcpuperf[28608]=0; itemramperf[28608]=0; itempcislots[28608]=0; itemdelta[28608]=240; itemdelaydays[28608]=0; starkl[28608]=2892; itemvperf[29725]=0; itemcpuperf[29725]=0; itemramperf[29725]=0; itempcislots[29725]=0; itemdelta[29725]=239; itemdelaydays[29725]=0; starkl[29725]=8018; itemvperf[29727]=0; itemcpuperf[29727]=0; itemramperf[29727]=0; itempcislots[29727]=0; itemdelta[29727]=170; itemdelaydays[29727]=0; starkl[29727]=1078; itemvperf[29726]=0; itemcpuperf[29726]=0; itemramperf[29726]=0; itempcislots[29726]=0; itemdelta[29726]=170; itemdelaydays[29726]=0; starkl[29726]=1847; itemvperf[28605]=0; itemcpuperf[28605]=0; itemramperf[28605]=0; itempcislots[28605]=0; itemdelta[28605]=70; itemdelaydays[28605]=0; starkl[28605]=8208; itemvperf[28378]=0; itemcpuperf[28378]=0; itemramperf[28378]=0; itempcislots[28378]=0; itemdelta[28378]=0; itemdelaydays[28378]=0; starkl[28378]=3758; itemvperf[28400]=0; itemcpuperf[28400]=0; itemramperf[28400]=0; itempcislots[28400]=0; itemdelta[28400]=0; itemdelaydays[28400]=0; starkl[28400]=9408; itemvperf[32905]=0; itemcpuperf[32905]=0; itemramperf[32905]=0; itempcislots[32905]=0; itemdelta[32905]=0; itemdelaydays[32905]=0; starkl[32905]=4236; itemvperf[28358]=0; itemcpuperf[28358]=0; itemramperf[28358]=0; itempcislots[28358]=0; itemdelta[28358]=-15; itemdelaydays[28358]=0; starkl[28358]=5519; itemvperf[32906]=0; itemcpuperf[32906]=0; itemramperf[32906]=0; itempcislots[32906]=0; itemdelta[32906]=0; itemdelaydays[32906]=0; starkl[32906]=4009; itemvperf[28369]=0; itemcpuperf[28369]=0; itemramperf[28369]=0; itempcislots[28369]=0; itemdelta[28369]=-15; itemdelaydays[28369]=0; starkl[28369]=4529; itemvperf[28372]=0; itemcpuperf[28372]=0; itemramperf[28372]=0; itempcislots[28372]=0; itemdelta[28372]=15; itemdelaydays[28372]=0; starkl[28372]=8676; itemvperf[28373]=0; itemcpuperf[28373]=0; itemramperf[28373]=0; itempcislots[28373]=0; itemdelta[28373]=0; itemdelaydays[28373]=0; starkl[28373]=9842; itemvperf[28398]=0; itemcpuperf[28398]=0; itemramperf[28398]=0; itempcislots[28398]=0; itemdelta[28398]=15; itemdelaydays[28398]=0; starkl[28398]=6841; itemvperf[28399]=0; itemcpuperf[28399]=0; itemramperf[28399]=0; itempcislots[28399]=0; itemdelta[28399]=0; itemdelaydays[28399]=0; starkl[28399]=587; itemvperf[28306]=0; itemcpuperf[28306]=0; itemramperf[28306]=0; itempcislots[28306]=0; itemdelta[28306]=275; itemdelaydays[28306]=0; starkl[28306]=2843; itemvperf[28307]=0; itemcpuperf[28307]=0; itemramperf[28307]=0; itempcislots[28307]=0; itemdelta[28307]=0; itemdelaydays[28307]=0; starkl[28307]=1277; itemvperf[28408]=0; itemcpuperf[28408]=0; itemramperf[28408]=0; itempcislots[28408]=0; itemdelta[28408]=0; itemdelaydays[28408]=0; starkl[28408]=3182; itemvperf[28304]=0; itemcpuperf[28304]=0; itemramperf[28304]=0; itempcislots[28304]=0; itemdelta[28304]=0; itemdelaydays[28304]=0; starkl[28304]=4708; itemvperf[28317]=0; itemcpuperf[28317]=0; itemramperf[28317]=0; itempcislots[28317]=0; itemdelta[28317]=0; itemdelaydays[28317]=0; starkl[28317]=1760; itemvperf[28411]=0; itemcpuperf[28411]=0; itemramperf[28411]=0; itempcislots[28411]=0; itemdelta[28411]=749; itemdelaydays[28411]=0; starkl[28411]=5629; itemvperf[28412]=0; itemcpuperf[28412]=0; itemramperf[28412]=0; itempcislots[28412]=0; itemdelta[28412]=649; itemdelaydays[28412]=0; starkl[28412]=1561; itemvperf[28413]=0; itemcpuperf[28413]=0; itemramperf[28413]=0; itempcislots[28413]=0; itemdelta[28413]=549; itemdelaydays[28413]=0; starkl[28413]=7391; itemvperf[28414]=0; itemcpuperf[28414]=0; itemramperf[28414]=0; itempcislots[28414]=0; itemdelta[28414]=449; itemdelaydays[28414]=0; starkl[28414]=1467; itemvperf[28415]=0; itemcpuperf[28415]=0; itemramperf[28415]=0; itempcislots[28415]=0; itemdelta[28415]=249; itemdelaydays[28415]=0; starkl[28415]=9406; itemvperf[28416]=0; itemcpuperf[28416]=0; itemramperf[28416]=0; itempcislots[28416]=0; itemdelta[28416]=0; itemdelaydays[28416]=0; starkl[28416]=6853; itemvperf[28409]=0; itemcpuperf[28409]=0; itemramperf[28409]=0; itempcislots[28409]=0; itemdelta[28409]=0; itemdelaydays[28409]=0; starkl[28409]=9912; caseImages[28432]=new Image(); caseImages[28432].src='/images/upload/g480_main.jpg'; caseImages[28599]=new Image(); caseImages[28599].src='/images/upload/jrti-vsc255v8.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()