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[15411]=0; itemcpuperf[15411]=0; itemramperf[15411]=0; itempcislots[15411]=0; itemdelta[15411]=0; itemdelaydays[15411]=0; starkl[15411]=2476; itemvperf[15412]=0; itemcpuperf[15412]=0; itemramperf[15412]=0; itempcislots[15412]=0; itemdelta[15412]=0; itemdelaydays[15412]=0; starkl[15412]=5807; itemvperf[15962]=0; itemcpuperf[15962]=0; itemramperf[15962]=0; itempcislots[15962]=0; itemdelta[15962]=35; itemdelaydays[15962]=0; starkl[15962]=6432; itemvperf[15963]=0; itemcpuperf[15963]=0; itemramperf[15963]=0; itempcislots[15963]=0; itemdelta[15963]=0; itemdelaydays[15963]=0; starkl[15963]=6064; itemvperf[33158]=0; itemcpuperf[33158]=0; itemramperf[33158]=0; itempcislots[33158]=0; itemdelta[33158]=0; itemdelaydays[33158]=0; starkl[33158]=6578; itemvperf[33169]=0; itemcpuperf[33169]=0; itemramperf[33169]=0; itempcislots[33169]=0; itemdelta[33169]=105; itemdelaydays[33169]=0; starkl[33169]=6465; itemvperf[33170]=0; itemcpuperf[33170]=0; itemramperf[33170]=0; itempcislots[33170]=0; itemdelta[33170]=75; itemdelaydays[33170]=0; starkl[33170]=7233; itemvperf[33161]=0; itemcpuperf[33161]=0; itemramperf[33161]=0; itempcislots[33161]=0; itemdelta[33161]=0; itemdelaydays[33161]=0; starkl[33161]=4863; itemvperf[11372]=0; itemcpuperf[11372]=0; itemramperf[11372]=0; itempcislots[11372]=0; itemdelta[11372]=35; itemdelaydays[11372]=0; starkl[11372]=1871; itemvperf[11373]=0; itemcpuperf[11373]=0; itemramperf[11373]=0; itempcislots[11373]=0; itemdelta[11373]=0; itemdelaydays[11373]=0; starkl[11373]=6012; itemvperf[33162]=0; itemcpuperf[33162]=0; itemramperf[33162]=0; itempcislots[33162]=0; itemdelta[33162]=90; itemdelaydays[33162]=0; starkl[33162]=8879; itemvperf[33163]=0; itemcpuperf[33163]=0; itemramperf[33163]=0; itempcislots[33163]=0; itemdelta[33163]=0; itemdelaydays[33163]=0; starkl[33163]=4062; itemvperf[33160]=0; itemcpuperf[33160]=0; itemramperf[33160]=0; itempcislots[33160]=0; itemdelta[33160]=80; itemdelaydays[33160]=0; starkl[33160]=8627; itemvperf[33175]=0; itemcpuperf[33175]=0; itemramperf[33175]=0; itempcislots[33175]=0; itemdelta[33175]=0; itemdelaydays[33175]=0; starkl[33175]=5801; itemvperf[20631]=0; itemcpuperf[20631]=0; itemramperf[20631]=0; itempcislots[20631]=0; itemdelta[20631]=499; itemdelaydays[20631]=0; starkl[20631]=491; itemvperf[20632]=0; itemcpuperf[20632]=0; itemramperf[20632]=0; itempcislots[20632]=0; itemdelta[20632]=299; itemdelaydays[20632]=0; starkl[20632]=5776; itemvperf[11382]=0; itemcpuperf[11382]=0; itemramperf[11382]=0; itempcislots[11382]=0; itemdelta[11382]=0; itemdelaydays[11382]=0; starkl[11382]=9703; itemvperf[11383]=0; itemcpuperf[11383]=0; itemramperf[11383]=0; itempcislots[11383]=0; itemdelta[11383]=55; itemdelaydays[11383]=0; starkl[11383]=2337; itemvperf[33181]=0; itemcpuperf[33181]=0; itemramperf[33181]=0; itempcislots[33181]=0; itemdelta[33181]=0; itemdelaydays[33181]=0; starkl[33181]=3253; itemvperf[11387]=0; itemcpuperf[11387]=0; itemramperf[11387]=0; itempcislots[11387]=0; itemdelta[11387]=49; itemdelaydays[11387]=0; starkl[11387]=544; itemvperf[11388]=0; itemcpuperf[11388]=0; itemramperf[11388]=0; itempcislots[11388]=0; itemdelta[11388]=19; itemdelaydays[11388]=0; starkl[11388]=8661; itemvperf[11389]=0; itemcpuperf[11389]=0; itemramperf[11389]=0; itempcislots[11389]=0; itemdelta[11389]=0; itemdelaydays[11389]=0; starkl[11389]=4524; itemvperf[33171]=0; itemcpuperf[33171]=0; itemramperf[33171]=0; itempcislots[33171]=0; itemdelta[33171]=195; itemdelaydays[33171]=0; starkl[33171]=4784; itemvperf[33165]=0; itemcpuperf[33165]=0; itemramperf[33165]=0; itempcislots[33165]=0; itemdelta[33165]=40; itemdelaydays[33165]=0; starkl[33165]=3111; itemvperf[33166]=0; itemcpuperf[33166]=0; itemramperf[33166]=0; itempcislots[33166]=0; itemdelta[33166]=0; itemdelaydays[33166]=0; starkl[33166]=5179; itemvperf[33172]=0; itemcpuperf[33172]=0; itemramperf[33172]=0; itempcislots[33172]=0; itemdelta[33172]=265; itemdelaydays[33172]=0; starkl[33172]=8814; itemvperf[33167]=0; itemcpuperf[33167]=0; itemramperf[33167]=0; itempcislots[33167]=0; itemdelta[33167]=90; itemdelaydays[33167]=0; starkl[33167]=7381; itemvperf[33168]=0; itemcpuperf[33168]=0; itemramperf[33168]=0; itempcislots[33168]=0; itemdelta[33168]=60; itemdelaydays[33168]=0; starkl[33168]=5993; itemvperf[11400]=0; itemcpuperf[11400]=0; itemramperf[11400]=0; itempcislots[11400]=0; itemdelta[11400]=0; itemdelaydays[11400]=0; starkl[11400]=4225; itemvperf[33174]=0; itemcpuperf[33174]=0; itemramperf[33174]=0; itempcislots[33174]=0; itemdelta[33174]=75; itemdelaydays[33174]=0; starkl[33174]=4995; itemvperf[17830]=0; itemcpuperf[17830]=0; itemramperf[17830]=0; itempcislots[17830]=0; itemdelta[17830]=0; itemdelaydays[17830]=0; starkl[17830]=1670; itemvperf[33184]=0; itemcpuperf[33184]=0; itemramperf[33184]=0; itempcislots[33184]=0; itemdelta[33184]=105; itemdelaydays[33184]=0; starkl[33184]=5839; itemvperf[33183]=0; itemcpuperf[33183]=0; itemramperf[33183]=0; itempcislots[33183]=0; itemdelta[33183]=55; itemdelaydays[33183]=0; starkl[33183]=1303; itemvperf[11410]=0; itemcpuperf[11410]=0; itemramperf[11410]=0; itempcislots[11410]=0; itemdelta[11410]=0; itemdelaydays[11410]=0; starkl[11410]=5056; itemvperf[15415]=0; itemcpuperf[15415]=0; itemramperf[15415]=0; itempcislots[15415]=0; itemdelta[15415]=0; itemdelaydays[15415]=0; starkl[15415]=6064; itemvperf[11419]=0; itemcpuperf[11419]=0; itemramperf[11419]=0; itempcislots[11419]=0; itemdelta[11419]=0; itemdelaydays[11419]=0; starkl[11419]=1942; itemvperf[33176]=0; itemcpuperf[33176]=0; itemramperf[33176]=0; itempcislots[33176]=0; itemdelta[33176]=39; itemdelaydays[33176]=0; starkl[33176]=8038; itemvperf[11421]=0; itemcpuperf[11421]=0; itemramperf[11421]=0; itempcislots[11421]=0; itemdelta[11421]=0; itemdelaydays[11421]=0; starkl[11421]=9427; itemvperf[12444]=0; itemcpuperf[12444]=0; itemramperf[12444]=0; itempcislots[12444]=0; itemdelta[12444]=95; itemdelaydays[12444]=0; starkl[12444]=8831; itemvperf[11422]=0; itemcpuperf[11422]=0; itemramperf[11422]=0; itempcislots[11422]=0; itemdelta[11422]=0; itemdelaydays[11422]=0; starkl[11422]=4738; itemvperf[12445]=0; itemcpuperf[12445]=0; itemramperf[12445]=0; itempcislots[12445]=0; itemdelta[12445]=0; itemdelaydays[12445]=0; starkl[12445]=1532; itemvperf[11423]=0; itemcpuperf[11423]=0; itemramperf[11423]=0; itempcislots[11423]=3; itemdelta[11423]=30; itemdelaydays[11423]=0; starkl[11423]=5597; itemvperf[11424]=0; itemcpuperf[11424]=0; itemramperf[11424]=0; itempcislots[11424]=0; itemdelta[11424]=0; itemdelaydays[11424]=0; starkl[11424]=7951; itemvperf[11425]=0; itemcpuperf[11425]=0; itemramperf[11425]=0; itempcislots[11425]=0; itemdelta[11425]=0; itemdelaydays[11425]=0; starkl[11425]=5100; itemvperf[28521]=0; itemcpuperf[28521]=0; itemramperf[28521]=0; itempcislots[28521]=0; itemdelta[28521]=75; itemdelaydays[28521]=0; starkl[28521]=6334; itemvperf[28522]=0; itemcpuperf[28522]=0; itemramperf[28522]=0; itempcislots[28522]=0; itemdelta[28522]=0; itemdelaydays[28522]=0; starkl[28522]=1419; itemvperf[33173]=0; itemcpuperf[33173]=0; itemramperf[33173]=0; itempcislots[33173]=0; itemdelta[33173]=0; itemdelaydays[33173]=0; starkl[33173]=550; itemvperf[33178]=0; itemcpuperf[33178]=0; itemramperf[33178]=0; itempcislots[33178]=0; itemdelta[33178]=349; itemdelaydays[33178]=0; starkl[33178]=6635; itemvperf[33179]=0; itemcpuperf[33179]=0; itemramperf[33179]=0; itempcislots[33179]=0; itemdelta[33179]=279; itemdelaydays[33179]=0; starkl[33179]=996; itemvperf[33180]=0; itemcpuperf[33180]=0; itemramperf[33180]=0; itempcislots[33180]=0; itemdelta[33180]=199; itemdelaydays[33180]=0; starkl[33180]=4271; itemvperf[11433]=0; itemcpuperf[11433]=0; itemramperf[11433]=0; itempcislots[11433]=0; itemdelta[11433]=0; itemdelaydays[11433]=0; starkl[11433]=6130; itemvperf[11435]=0; itemcpuperf[11435]=0; itemramperf[11435]=0; itempcislots[11435]=0; itemdelta[11435]=0; itemdelaydays[11435]=0; starkl[11435]=3000; itemvperf[33182]=0; itemcpuperf[33182]=0; itemramperf[33182]=0; itempcislots[33182]=0; itemdelta[33182]=20; itemdelaydays[33182]=0; starkl[33182]=1258; itemvperf[33177]=0; itemcpuperf[33177]=0; itemramperf[33177]=0; itempcislots[33177]=0; itemdelta[33177]=0; itemdelaydays[33177]=0; starkl[33177]=7809; itemvperf[11439]=0; itemcpuperf[11439]=0; itemramperf[11439]=0; itempcislots[11439]=0; itemdelta[11439]=85; itemdelaydays[11439]=0; starkl[11439]=9239; itemvperf[19730]=0; itemcpuperf[19730]=0; itemramperf[19730]=0; itempcislots[19730]=0; itemdelta[19730]=65; itemdelaydays[19730]=0; starkl[19730]=9247; itemvperf[32237]=0; itemcpuperf[32237]=0; itemramperf[32237]=0; itempcislots[32237]=0; itemdelta[32237]=0; itemdelaydays[32237]=0; starkl[32237]=7466; itemvperf[11444]=0; itemcpuperf[11444]=0; itemramperf[11444]=0; itempcislots[11444]=0; itemdelta[11444]=-15; itemdelaydays[11444]=0; starkl[11444]=4324; itemvperf[19731]=0; itemcpuperf[19731]=0; itemramperf[19731]=0; itempcislots[19731]=0; itemdelta[19731]=35; itemdelaydays[19731]=0; starkl[19731]=9229; itemvperf[32238]=0; itemcpuperf[32238]=0; itemramperf[32238]=0; itempcislots[32238]=0; itemdelta[32238]=0; itemdelaydays[32238]=0; starkl[32238]=9620; itemvperf[11448]=0; itemcpuperf[11448]=0; itemramperf[11448]=0; itempcislots[11448]=0; itemdelta[11448]=-15; itemdelaydays[11448]=0; starkl[11448]=3390; itemvperf[11449]=0; itemcpuperf[11449]=0; itemramperf[11449]=0; itempcislots[11449]=0; itemdelta[11449]=14; itemdelaydays[11449]=0; starkl[11449]=4872; itemvperf[11450]=0; itemcpuperf[11450]=0; itemramperf[11450]=0; itempcislots[11450]=0; itemdelta[11450]=0; itemdelaydays[11450]=0; starkl[11450]=7341; itemvperf[11452]=0; itemcpuperf[11452]=0; itemramperf[11452]=0; itempcislots[11452]=0; itemdelta[11452]=20; itemdelaydays[11452]=0; starkl[11452]=1356; itemvperf[11451]=0; itemcpuperf[11451]=0; itemramperf[11451]=0; itempcislots[11451]=0; itemdelta[11451]=0; itemdelaydays[11451]=0; starkl[11451]=6145; itemvperf[11453]=0; itemcpuperf[11453]=0; itemramperf[11453]=0; itempcislots[11453]=0; itemdelta[11453]=0; itemdelaydays[11453]=0; starkl[11453]=8516; itemvperf[11455]=0; itemcpuperf[11455]=0; itemramperf[11455]=0; itempcislots[11455]=0; itemdelta[11455]=175; itemdelaydays[11455]=0; starkl[11455]=290; itemvperf[11454]=0; itemcpuperf[11454]=0; itemramperf[11454]=0; itempcislots[11454]=0; itemdelta[11454]=0; itemdelaydays[11454]=0; starkl[11454]=758; itemvperf[11456]=0; itemcpuperf[11456]=0; itemramperf[11456]=0; itempcislots[11456]=0; itemdelta[11456]=269; itemdelaydays[11456]=0; starkl[11456]=3040; itemvperf[11457]=0; itemcpuperf[11457]=0; itemramperf[11457]=0; itempcislots[11457]=0; itemdelta[11457]=199; itemdelaydays[11457]=0; starkl[11457]=4308; itemvperf[11458]=0; itemcpuperf[11458]=0; itemramperf[11458]=0; itempcislots[11458]=0; itemdelta[11458]=169; itemdelaydays[11458]=0; starkl[11458]=8167; itemvperf[11459]=0; itemcpuperf[11459]=0; itemramperf[11459]=0; itempcislots[11459]=0; itemdelta[11459]=99; itemdelaydays[11459]=0; starkl[11459]=9069; itemvperf[11460]=0; itemcpuperf[11460]=0; itemramperf[11460]=0; itempcislots[11460]=0; itemdelta[11460]=69; itemdelaydays[11460]=0; starkl[11460]=6367; itemvperf[11461]=0; itemcpuperf[11461]=0; itemramperf[11461]=0; itempcislots[11461]=0; itemdelta[11461]=0; itemdelaydays[11461]=0; starkl[11461]=5162; itemvperf[21787]=0; itemcpuperf[21787]=0; itemramperf[21787]=0; itempcislots[21787]=0; itemdelta[21787]=-15; itemdelaydays[21787]=0; starkl[21787]=8339; itemvperf[20458]=0; itemcpuperf[20458]=0; itemramperf[20458]=0; itempcislots[20458]=0; itemdelta[20458]=-25; itemdelaydays[20458]=0; starkl[20458]=8544; caseImages[15411]=new Image(); caseImages[15411].src='/images/upload/mx2_black.jpg'; caseImages[15412]=new Image(); caseImages[15412].src='/images/upload/mx2_silver.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()