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[32406]=0; itemcpuperf[32406]=0; itemramperf[32406]=0; itempcislots[32406]=0; itemdelta[32406]=0; itemdelaydays[32406]=0; starkl[32406]=8866; itemvperf[32411]=0; itemcpuperf[32411]=0; itemramperf[32411]=0; itempcislots[32411]=0; itemdelta[32411]=0; itemdelaydays[32411]=0; starkl[32411]=994; itemvperf[32417]=0; itemcpuperf[32417]=0; itemramperf[32417]=0; itempcislots[32417]=0; itemdelta[32417]=1180; itemdelaydays[32417]=0; starkl[32417]=2106; itemvperf[29408]=0; itemcpuperf[29408]=176; itemramperf[29408]=0; itempcislots[29408]=0; itemdelta[29408]=465; itemdelaydays[29408]=0; starkl[29408]=2282; itemvperf[29409]=0; itemcpuperf[29409]=176; itemramperf[29409]=0; itempcislots[29409]=0; itemdelta[29409]=205; itemdelaydays[29409]=0; starkl[29409]=7253; itemvperf[32418]=0; itemcpuperf[32418]=0; itemramperf[32418]=0; itempcislots[32418]=0; itemdelta[32418]=0; itemdelaydays[32418]=0; starkl[32418]=5133; itemvperf[21380]=0; itemcpuperf[21380]=0; itemramperf[21380]=0; itempcislots[21380]=0; itemdelta[21380]=0; itemdelaydays[21380]=0; starkl[21380]=4844; itemvperf[29412]=0; itemcpuperf[29412]=0; itemramperf[29412]=0; itempcislots[29412]=0; itemdelta[29412]=65; itemdelaydays[29412]=0; starkl[29412]=7138; itemvperf[29413]=0; itemcpuperf[29413]=0; itemramperf[29413]=0; itempcislots[29413]=0; itemdelta[29413]=0; itemdelaydays[29413]=0; starkl[29413]=6997; itemvperf[32415]=0; itemcpuperf[32415]=0; itemramperf[32415]=0; itempcislots[32415]=0; itemdelta[32415]=0; itemdelaydays[32415]=0; starkl[32415]=9304; itemvperf[32414]=0; itemcpuperf[32414]=0; itemramperf[32414]=0; itempcislots[32414]=0; itemdelta[32414]=400; itemdelaydays[32414]=0; starkl[32414]=7666; itemvperf[32413]=0; itemcpuperf[32413]=0; itemramperf[32413]=0; itempcislots[32413]=0; itemdelta[32413]=0; itemdelaydays[32413]=0; starkl[32413]=8000; itemvperf[21439]=0; itemcpuperf[21439]=0; itemramperf[21439]=0; itempcislots[21439]=0; itemdelta[21439]=0; itemdelaydays[21439]=0; starkl[21439]=6263; itemvperf[21372]=0; itemcpuperf[21372]=0; itemramperf[21372]=0; itempcislots[21372]=0; itemdelta[21372]=99; itemdelaydays[21372]=0; starkl[21372]=1533; itemvperf[32427]=0; itemcpuperf[32427]=0; itemramperf[32427]=0; itempcislots[32427]=0; itemdelta[32427]=0; itemdelaydays[32427]=0; starkl[32427]=9457; itemvperf[21425]=0; itemcpuperf[21425]=0; itemramperf[21425]=0; itempcislots[21425]=0; itemdelta[21425]=39; itemdelaydays[21425]=0; starkl[21425]=9676; itemvperf[21426]=0; itemcpuperf[21426]=0; itemramperf[21426]=0; itempcislots[21426]=0; itemdelta[21426]=19; itemdelaydays[21426]=0; starkl[21426]=6824; itemvperf[21427]=0; itemcpuperf[21427]=0; itemramperf[21427]=0; itempcislots[21427]=0; itemdelta[21427]=0; itemdelaydays[21427]=0; starkl[21427]=9300; itemvperf[23204]=0; itemcpuperf[23204]=0; itemramperf[23204]=0; itempcislots[23204]=0; itemdelta[23204]=430; itemdelaydays[23204]=0; starkl[23204]=1945; itemvperf[23203]=0; itemcpuperf[23203]=0; itemramperf[23203]=0; itempcislots[23203]=0; itemdelta[23203]=200; itemdelaydays[23203]=0; starkl[23203]=4244; itemvperf[32407]=0; itemcpuperf[32407]=0; itemramperf[32407]=0; itempcislots[32407]=0; itemdelta[32407]=40; itemdelaydays[32407]=0; starkl[32407]=3495; itemvperf[32408]=0; itemcpuperf[32408]=0; itemramperf[32408]=0; itempcislots[32408]=0; itemdelta[32408]=0; itemdelaydays[32408]=0; starkl[32408]=6682; itemvperf[32409]=0; itemcpuperf[32409]=0; itemramperf[32409]=0; itempcislots[32409]=0; itemdelta[32409]=225; itemdelaydays[32409]=0; starkl[32409]=9912; itemvperf[32410]=0; itemcpuperf[32410]=0; itemramperf[32410]=0; itempcislots[32410]=0; itemdelta[32410]=110; itemdelaydays[32410]=0; starkl[32410]=6376; itemvperf[23176]=0; itemcpuperf[23176]=0; itemramperf[23176]=0; itempcislots[23176]=0; itemdelta[23176]=0; itemdelaydays[23176]=0; starkl[23176]=6100; itemvperf[21389]=0; itemcpuperf[21389]=0; itemramperf[21389]=0; itempcislots[21389]=0; itemdelta[21389]=35; itemdelaydays[21389]=0; starkl[21389]=9630; itemvperf[21390]=0; itemcpuperf[21390]=0; itemramperf[21390]=0; itempcislots[21390]=0; itemdelta[21390]=0; itemdelaydays[21390]=0; starkl[21390]=386; itemvperf[32426]=0; itemcpuperf[32426]=0; itemramperf[32426]=0; itempcislots[32426]=0; itemdelta[32426]=0; itemdelaydays[32426]=0; starkl[32426]=9690; itemvperf[21432]=0; itemcpuperf[21432]=0; itemramperf[21432]=0; itempcislots[21432]=0; itemdelta[21432]=69; itemdelaydays[21432]=0; starkl[21432]=4522; itemvperf[21433]=0; itemcpuperf[21433]=0; itemramperf[21433]=0; itempcislots[21433]=0; itemdelta[21433]=39; itemdelaydays[21433]=0; starkl[21433]=6891; itemvperf[21434]=0; itemcpuperf[21434]=0; itemramperf[21434]=0; itempcislots[21434]=0; itemdelta[21434]=25; itemdelaydays[21434]=0; starkl[21434]=8046; itemvperf[21437]=0; itemcpuperf[21437]=0; itemramperf[21437]=0; itempcislots[21437]=0; itemdelta[21437]=0; itemdelaydays[21437]=0; starkl[21437]=1091; itemvperf[21392]=0; itemcpuperf[21392]=0; itemramperf[21392]=0; itempcislots[21392]=0; itemdelta[21392]=0; itemdelaydays[21392]=0; starkl[21392]=3396; itemvperf[23205]=0; itemcpuperf[23205]=0; itemramperf[23205]=0; itempcislots[23205]=0; itemdelta[23205]=0; itemdelaydays[23205]=0; starkl[23205]=3539; itemvperf[23177]=0; itemcpuperf[23177]=0; itemramperf[23177]=0; itempcislots[23177]=0; itemdelta[23177]=0; itemdelaydays[23177]=0; starkl[23177]=4351; itemvperf[21394]=0; itemcpuperf[21394]=0; itemramperf[21394]=0; itempcislots[21394]=0; itemdelta[21394]=0; itemdelaydays[21394]=0; starkl[21394]=211; itemvperf[21388]=0; itemcpuperf[21388]=0; itemramperf[21388]=0; itempcislots[21388]=0; itemdelta[21388]=0; itemdelaydays[21388]=0; starkl[21388]=6116; itemvperf[32428]=0; itemcpuperf[32428]=0; itemramperf[32428]=0; itempcislots[32428]=0; itemdelta[32428]=0; itemdelaydays[32428]=0; starkl[32428]=7702; itemvperf[32416]=0; itemcpuperf[32416]=0; itemramperf[32416]=0; itempcislots[32416]=0; itemdelta[32416]=0; itemdelaydays[32416]=0; starkl[32416]=1860; itemvperf[28501]=0; itemcpuperf[28501]=0; itemramperf[28501]=0; itempcislots[28501]=0; itemdelta[28501]=130; itemdelaydays[28501]=0; starkl[28501]=5526; itemvperf[28502]=0; itemcpuperf[28502]=0; itemramperf[28502]=0; itempcislots[28502]=0; itemdelta[28502]=70; itemdelaydays[28502]=0; starkl[28502]=9435; itemvperf[28503]=0; itemcpuperf[28503]=0; itemramperf[28503]=0; itempcislots[28503]=0; itemdelta[28503]=0; itemdelaydays[28503]=0; starkl[28503]=2138; itemvperf[31322]=0; itemcpuperf[31322]=0; itemramperf[31322]=0; itempcislots[31322]=0; itemdelta[31322]=349; itemdelaydays[31322]=0; starkl[31322]=8585; itemvperf[31323]=0; itemcpuperf[31323]=0; itemramperf[31323]=0; itempcislots[31323]=0; itemdelta[31323]=199; itemdelaydays[31323]=0; starkl[31323]=1268; itemvperf[31324]=0; itemcpuperf[31324]=0; itemramperf[31324]=0; itempcislots[31324]=0; itemdelta[31324]=149; itemdelaydays[31324]=0; starkl[31324]=6013; itemvperf[23206]=0; itemcpuperf[23206]=0; itemramperf[23206]=0; itempcislots[23206]=0; itemdelta[23206]=0; itemdelaydays[23206]=0; starkl[23206]=3962; itemvperf[21423]=0; itemcpuperf[21423]=0; itemramperf[21423]=0; itempcislots[21423]=0; itemdelta[21423]=0; itemdelaydays[21423]=0; starkl[21423]=3946; itemvperf[21424]=0; itemcpuperf[21424]=0; itemramperf[21424]=0; itempcislots[21424]=0; itemdelta[21424]=29; itemdelaydays[21424]=0; starkl[21424]=7192; itemvperf[32696]=0; itemcpuperf[32696]=0; itemramperf[32696]=0; itempcislots[32696]=0; itemdelta[32696]=39; itemdelaydays[32696]=0; starkl[32696]=7604; itemvperf[29389]=0; itemcpuperf[29389]=0; itemramperf[29389]=0; itempcislots[29389]=0; itemdelta[29389]=10; itemdelaydays[29389]=0; starkl[29389]=4843; itemvperf[23188]=0; itemcpuperf[23188]=0; itemramperf[23188]=0; itempcislots[23188]=0; itemdelta[23188]=0; itemdelaydays[23188]=0; starkl[23188]=9392; itemvperf[21391]=0; itemcpuperf[21391]=0; itemramperf[21391]=0; itempcislots[21391]=0; itemdelta[21391]=0; itemdelaydays[21391]=0; starkl[21391]=4927; itemvperf[21395]=0; itemcpuperf[21395]=0; itemramperf[21395]=0; itempcislots[21395]=0; itemdelta[21395]=0; itemdelaydays[21395]=0; starkl[21395]=5990; itemvperf[21396]=0; itemcpuperf[21396]=0; itemramperf[21396]=0; itempcislots[21396]=0; itemdelta[21396]=55; itemdelaydays[21396]=0; starkl[21396]=8705; itemvperf[29458]=0; itemcpuperf[29458]=0; itemramperf[29458]=0; itempcislots[29458]=0; itemdelta[29458]=0; itemdelaydays[29458]=0; starkl[29458]=1217; itemvperf[21376]=0; itemcpuperf[21376]=0; itemramperf[21376]=0; itempcislots[21376]=0; itemdelta[21376]=0; itemdelaydays[21376]=0; starkl[21376]=5470; itemvperf[21377]=0; itemcpuperf[21377]=0; itemramperf[21377]=0; itempcislots[21377]=0; itemdelta[21377]=49; itemdelaydays[21377]=0; starkl[21377]=6309; itemvperf[21378]=0; itemcpuperf[21378]=0; itemramperf[21378]=0; itempcislots[21378]=0; itemdelta[21378]=49; itemdelaydays[21378]=0; starkl[21378]=3863; itemvperf[21379]=0; itemcpuperf[21379]=0; itemramperf[21379]=0; itempcislots[21379]=0; itemdelta[21379]=69; itemdelaydays[21379]=0; starkl[21379]=8424; itemvperf[21407]=0; itemcpuperf[21407]=0; itemramperf[21407]=0; itempcislots[21407]=0; itemdelta[21407]=99; itemdelaydays[21407]=0; starkl[21407]=5099; itemvperf[21408]=0; itemcpuperf[21408]=0; itemramperf[21408]=0; itempcislots[21408]=0; itemdelta[21408]=0; itemdelaydays[21408]=0; starkl[21408]=3045; itemvperf[23216]=0; itemcpuperf[23216]=0; itemramperf[23216]=0; itempcislots[23216]=0; itemdelta[23216]=0; itemdelaydays[23216]=0; starkl[23216]=2377; itemvperf[23210]=0; itemcpuperf[23210]=0; itemramperf[23210]=0; itempcislots[23210]=0; itemdelta[23210]=120; itemdelaydays[23210]=0; starkl[23210]=3361; itemvperf[23211]=0; itemcpuperf[23211]=0; itemramperf[23211]=0; itempcislots[23211]=0; itemdelta[23211]=60; itemdelaydays[23211]=0; starkl[23211]=4589; itemvperf[21452]=0; itemcpuperf[21452]=0; itemramperf[21452]=0; itempcislots[21452]=0; itemdelta[21452]=0; itemdelaydays[21452]=0; starkl[21452]=2933; itemvperf[21371]=0; itemcpuperf[21371]=0; itemramperf[21371]=0; itempcislots[21371]=0; itemdelta[21371]=0; itemdelaydays[21371]=0; starkl[21371]=9944; itemvperf[21419]=0; itemcpuperf[21419]=0; itemramperf[21419]=0; itempcislots[21419]=0; itemdelta[21419]=0; itemdelaydays[21419]=0; starkl[21419]=1654; itemvperf[21384]=0; itemcpuperf[21384]=0; itemramperf[21384]=0; itempcislots[21384]=0; itemdelta[21384]=0; itemdelaydays[21384]=0; starkl[21384]=5645; itemvperf[21444]=0; itemcpuperf[21444]=0; itemramperf[21444]=0; itempcislots[21444]=0; itemdelta[21444]=299; itemdelaydays[21444]=0; starkl[21444]=4634; itemvperf[21445]=0; itemcpuperf[21445]=0; itemramperf[21445]=0; itempcislots[21445]=0; itemdelta[21445]=269; itemdelaydays[21445]=0; starkl[21445]=2487; itemvperf[21446]=0; itemcpuperf[21446]=0; itemramperf[21446]=0; itempcislots[21446]=0; itemdelta[21446]=199; itemdelaydays[21446]=0; starkl[21446]=6247; itemvperf[21447]=0; itemcpuperf[21447]=0; itemramperf[21447]=0; itempcislots[21447]=0; itemdelta[21447]=169; itemdelaydays[21447]=0; starkl[21447]=4597; itemvperf[21448]=0; itemcpuperf[21448]=0; itemramperf[21448]=0; itempcislots[21448]=0; itemdelta[21448]=99; itemdelaydays[21448]=0; starkl[21448]=639; itemvperf[21449]=0; itemcpuperf[21449]=0; itemramperf[21449]=0; itempcislots[21449]=0; itemdelta[21449]=0; itemdelaydays[21449]=0; starkl[21449]=8853; itemvperf[21431]=0; itemcpuperf[21431]=0; itemramperf[21431]=0; itempcislots[21431]=0; itemdelta[21431]=0; itemdelaydays[21431]=0; starkl[21431]=6351; caseImages[32406]=new Image(); caseImages[32406].src='http://www.velocitymicro.com/images/upload/m17-2.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()