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[33580]=0; itemcpuperf[33580]=0; itemramperf[33580]=0; itempcislots[33580]=0; itemdelta[33580]=700; itemdelaydays[33580]=0; starkl[33580]=9770; itemvperf[33579]=0; itemcpuperf[33579]=0; itemramperf[33579]=0; itempcislots[33579]=0; itemdelta[33579]=0; itemdelaydays[33579]=0; starkl[33579]=7917; itemvperf[33475]=0; itemcpuperf[33475]=0; itemramperf[33475]=0; itempcislots[33475]=0; itemdelta[33475]=0; itemdelaydays[33475]=0; starkl[33475]=9715; itemvperf[33476]=0; itemcpuperf[33476]=0; itemramperf[33476]=0; itempcislots[33476]=0; itemdelta[33476]=0; itemdelaydays[33476]=0; starkl[33476]=4339; itemvperf[33575]=0; itemcpuperf[33575]=0; itemramperf[33575]=0; itempcislots[33575]=0; itemdelta[33575]=4475; itemdelaydays[33575]=0; starkl[33575]=6208; itemvperf[33478]=0; itemcpuperf[33478]=0; itemramperf[33478]=0; itempcislots[33478]=0; itemdelta[33478]=3105; itemdelaydays[33478]=0; starkl[33478]=9689; itemvperf[33479]=0; itemcpuperf[33479]=0; itemramperf[33479]=0; itempcislots[33479]=0; itemdelta[33479]=1900; itemdelaydays[33479]=0; starkl[33479]=208; itemvperf[33480]=0; itemcpuperf[33480]=0; itemramperf[33480]=0; itempcislots[33480]=0; itemdelta[33480]=1300; itemdelaydays[33480]=0; starkl[33480]=3805; itemvperf[33481]=0; itemcpuperf[33481]=0; itemramperf[33481]=0; itempcislots[33481]=0; itemdelta[33481]=0; itemdelaydays[33481]=0; starkl[33481]=5257; itemvperf[33487]=0; itemcpuperf[33487]=0; itemramperf[33487]=0; itempcislots[33487]=0; itemdelta[33487]=0; itemdelaydays[33487]=0; starkl[33487]=463; itemvperf[33604]=0; itemcpuperf[33604]=0; itemramperf[33604]=0; itempcislots[33604]=0; itemdelta[33604]=13220; itemdelaydays[33604]=0; starkl[33604]=7463; itemvperf[33603]=0; itemcpuperf[33603]=0; itemramperf[33603]=0; itempcislots[33603]=0; itemdelta[33603]=9915; itemdelaydays[33603]=0; starkl[33603]=3212; itemvperf[33602]=0; itemcpuperf[33602]=0; itemramperf[33602]=0; itempcislots[33602]=0; itemdelta[33602]=6610; itemdelaydays[33602]=0; starkl[33602]=4181; itemvperf[33601]=0; itemcpuperf[33601]=0; itemramperf[33601]=0; itempcislots[33601]=0; itemdelta[33601]=3305; itemdelaydays[33601]=0; starkl[33601]=9677; itemvperf[33593]=0; itemcpuperf[33593]=0; itemramperf[33593]=0; itempcislots[33593]=0; itemdelta[33593]=13620; itemdelaydays[33593]=0; starkl[33593]=6230; itemvperf[33592]=0; itemcpuperf[33592]=0; itemramperf[33592]=0; itempcislots[33592]=0; itemdelta[33592]=10215; itemdelaydays[33592]=0; starkl[33592]=9595; itemvperf[33591]=0; itemcpuperf[33591]=0; itemramperf[33591]=0; itempcislots[33591]=0; itemdelta[33591]=6810; itemdelaydays[33591]=0; starkl[33591]=6336; itemvperf[33590]=0; itemcpuperf[33590]=0; itemramperf[33590]=0; itempcislots[33590]=0; itemdelta[33590]=3405; itemdelaydays[33590]=0; starkl[33590]=5703; itemvperf[33488]=0; itemcpuperf[33488]=0; itemramperf[33488]=0; itempcislots[33488]=0; itemdelta[33488]=8310; itemdelaydays[33488]=0; starkl[33488]=4450; itemvperf[33489]=0; itemcpuperf[33489]=0; itemramperf[33489]=0; itempcislots[33489]=0; itemdelta[33489]=6235; itemdelaydays[33489]=0; starkl[33489]=8654; itemvperf[33490]=0; itemcpuperf[33490]=0; itemramperf[33490]=0; itempcislots[33490]=0; itemdelta[33490]=4155; itemdelaydays[33490]=0; starkl[33490]=7727; itemvperf[33576]=0; itemcpuperf[33576]=0; itemramperf[33576]=0; itempcislots[33576]=0; itemdelta[33576]=2075; itemdelaydays[33576]=0; starkl[33576]=4593; itemvperf[33573]=0; itemcpuperf[33573]=0; itemramperf[33573]=0; itempcislots[33573]=0; itemdelta[33573]=0; itemdelaydays[33573]=0; starkl[33573]=2477; itemvperf[33598]=0; itemcpuperf[33598]=0; itemramperf[33598]=0; itempcislots[33598]=0; itemdelta[33598]=27205; itemdelaydays[33598]=0; starkl[33598]=5227; itemvperf[33597]=0; itemcpuperf[33597]=0; itemramperf[33597]=0; itempcislots[33597]=0; itemdelta[33597]=7135; itemdelaydays[33597]=0; starkl[33597]=6003; itemvperf[33534]=0; itemcpuperf[33534]=0; itemramperf[33534]=0; itempcislots[33534]=0; itemdelta[33534]=3250; itemdelaydays[33534]=0; starkl[33534]=7293; itemvperf[33535]=0; itemcpuperf[33535]=0; itemramperf[33535]=0; itempcislots[33535]=0; itemdelta[33535]=5100; itemdelaydays[33535]=0; starkl[33535]=2264; itemvperf[33536]=0; itemcpuperf[33536]=0; itemramperf[33536]=0; itempcislots[33536]=0; itemdelta[33536]=1450; itemdelaydays[33536]=0; starkl[33536]=8763; itemvperf[33537]=0; itemcpuperf[33537]=0; itemramperf[33537]=0; itempcislots[33537]=0; itemdelta[33537]=410; itemdelaydays[33537]=0; starkl[33537]=1955; itemvperf[33595]=0; itemcpuperf[33595]=0; itemramperf[33595]=0; itempcislots[33595]=0; itemdelta[33595]=410; itemdelaydays[33595]=0; starkl[33595]=257; itemvperf[33538]=0; itemcpuperf[33538]=0; itemramperf[33538]=0; itempcislots[33538]=0; itemdelta[33538]=100; itemdelaydays[33538]=0; starkl[33538]=9235; itemvperf[33539]=0; itemcpuperf[33539]=0; itemramperf[33539]=0; itempcislots[33539]=0; itemdelta[33539]=0; itemdelaydays[33539]=0; starkl[33539]=9861; itemvperf[33540]=0; itemcpuperf[33540]=0; itemramperf[33540]=0; itempcislots[33540]=0; itemdelta[33540]=0; itemdelaydays[33540]=0; starkl[33540]=6569; itemvperf[33607]=0; itemcpuperf[33607]=0; itemramperf[33607]=0; itempcislots[33607]=0; itemdelta[33607]=799; itemdelaydays[33607]=7; starkl[33607]=6113; itemvperf[33543]=0; itemcpuperf[33543]=0; itemramperf[33543]=0; itempcislots[33543]=0; itemdelta[33543]=0; itemdelaydays[33543]=0; starkl[33543]=2202; itemvperf[33606]=0; itemcpuperf[33606]=0; itemramperf[33606]=0; itempcislots[33606]=0; itemdelta[33606]=1139; itemdelaydays[33606]=0; starkl[33606]=2027; itemvperf[33605]=0; itemcpuperf[33605]=0; itemramperf[33605]=0; itempcislots[33605]=0; itemdelta[33605]=439; itemdelaydays[33605]=0; starkl[33605]=5238; itemvperf[33541]=0; itemcpuperf[33541]=0; itemramperf[33541]=0; itempcislots[33541]=0; itemdelta[33541]=259; itemdelaydays[33541]=0; starkl[33541]=9723; itemvperf[33542]=0; itemcpuperf[33542]=0; itemramperf[33542]=0; itempcislots[33542]=0; itemdelta[33542]=219; itemdelaydays[33542]=0; starkl[33542]=1540; itemvperf[33600]=0; itemcpuperf[33600]=0; itemramperf[33600]=0; itempcislots[33600]=0; itemdelta[33600]=595; itemdelaydays[33600]=0; starkl[33600]=5013; itemvperf[33599]=0; itemcpuperf[33599]=0; itemramperf[33599]=0; itempcislots[33599]=0; itemdelta[33599]=0; itemdelaydays[33599]=0; starkl[33599]=654; itemvperf[33596]=0; itemcpuperf[33596]=0; itemramperf[33596]=0; itempcislots[33596]=0; itemdelta[33596]=200; itemdelaydays[33596]=0; starkl[33596]=6048; itemvperf[33545]=0; itemcpuperf[33545]=0; itemramperf[33545]=0; itempcislots[33545]=0; itemdelta[33545]=95; itemdelaydays[33545]=0; starkl[33545]=9293; itemvperf[33546]=0; itemcpuperf[33546]=0; itemramperf[33546]=0; itempcislots[33546]=0; itemdelta[33546]=60; itemdelaydays[33546]=0; starkl[33546]=4306; itemvperf[33547]=0; itemcpuperf[33547]=0; itemramperf[33547]=0; itempcislots[33547]=0; itemdelta[33547]=195; itemdelaydays[33547]=0; starkl[33547]=784; itemvperf[33548]=0; itemcpuperf[33548]=0; itemramperf[33548]=0; itempcislots[33548]=0; itemdelta[33548]=20; itemdelaydays[33548]=0; starkl[33548]=4706; itemvperf[33549]=0; itemcpuperf[33549]=0; itemramperf[33549]=0; itempcislots[33549]=0; itemdelta[33549]=60; itemdelaydays[33549]=0; starkl[33549]=1620; itemvperf[33551]=0; itemcpuperf[33551]=0; itemramperf[33551]=0; itempcislots[33551]=0; itemdelta[33551]=40; itemdelaydays[33551]=0; starkl[33551]=6619; itemvperf[33552]=0; itemcpuperf[33552]=0; itemramperf[33552]=0; itempcislots[33552]=0; itemdelta[33552]=0; itemdelaydays[33552]=0; starkl[33552]=7176; itemvperf[33553]=0; itemcpuperf[33553]=0; itemramperf[33553]=0; itempcislots[33553]=0; itemdelta[33553]=260; itemdelaydays[33553]=0; starkl[33553]=9018; itemvperf[33555]=0; itemcpuperf[33555]=0; itemramperf[33555]=0; itempcislots[33555]=0; itemdelta[33555]=170; itemdelaydays[33555]=0; starkl[33555]=1006; itemvperf[33572]=0; itemcpuperf[33572]=0; itemramperf[33572]=0; itempcislots[33572]=0; itemdelta[33572]=0; itemdelaydays[33572]=0; starkl[33572]=1913; itemvperf[33581]=0; itemcpuperf[33581]=0; itemramperf[33581]=0; itempcislots[33581]=0; itemdelta[33581]=260; itemdelaydays[33581]=0; starkl[33581]=227; itemvperf[33583]=0; itemcpuperf[33583]=0; itemramperf[33583]=0; itempcislots[33583]=0; itemdelta[33583]=170; itemdelaydays[33583]=0; starkl[33583]=5890; itemvperf[33584]=0; itemcpuperf[33584]=0; itemramperf[33584]=0; itempcislots[33584]=0; itemdelta[33584]=0; itemdelaydays[33584]=0; starkl[33584]=6922; itemvperf[33588]=0; itemcpuperf[33588]=0; itemramperf[33588]=0; itempcislots[33588]=0; itemdelta[33588]=260; itemdelaydays[33588]=0; starkl[33588]=1868; itemvperf[33586]=0; itemcpuperf[33586]=0; itemramperf[33586]=0; itempcislots[33586]=0; itemdelta[33586]=170; itemdelaydays[33586]=0; starkl[33586]=9768; itemvperf[33585]=0; itemcpuperf[33585]=0; itemramperf[33585]=0; itempcislots[33585]=0; itemdelta[33585]=0; itemdelaydays[33585]=0; starkl[33585]=3075; itemvperf[33556]=0; itemcpuperf[33556]=0; itemramperf[33556]=0; itempcislots[33556]=0; itemdelta[33556]=0; itemdelaydays[33556]=0; starkl[33556]=2252; itemvperf[33557]=0; itemcpuperf[33557]=0; itemramperf[33557]=0; itempcislots[33557]=0; itemdelta[33557]=875; itemdelaydays[33557]=0; starkl[33557]=9743; itemvperf[33558]=0; itemcpuperf[33558]=0; itemramperf[33558]=0; itempcislots[33558]=0; itemdelta[33558]=0; itemdelaydays[33558]=0; starkl[33558]=5926; itemvperf[33559]=0; itemcpuperf[33559]=0; itemramperf[33559]=0; itempcislots[33559]=0; itemdelta[33559]=0; itemdelaydays[33559]=0; starkl[33559]=4368; itemvperf[33578]=0; itemcpuperf[33578]=0; itemramperf[33578]=0; itempcislots[33578]=0; itemdelta[33578]=0; itemdelaydays[33578]=0; starkl[33578]=5219; itemvperf[33561]=0; itemcpuperf[33561]=0; itemramperf[33561]=0; itempcislots[33561]=0; itemdelta[33561]=0; itemdelaydays[33561]=0; starkl[33561]=4105; itemvperf[33562]=0; itemcpuperf[33562]=0; itemramperf[33562]=0; itempcislots[33562]=0; itemdelta[33562]=0; itemdelaydays[33562]=0; starkl[33562]=9975; itemvperf[33565]=0; itemcpuperf[33565]=0; itemramperf[33565]=0; itempcislots[33565]=0; itemdelta[33565]=0; itemdelaydays[33565]=0; starkl[33565]=8754; itemvperf[33566]=0; itemcpuperf[33566]=0; itemramperf[33566]=0; itempcislots[33566]=0; itemdelta[33566]=599; itemdelaydays[33566]=0; starkl[33566]=9107; itemvperf[33567]=0; itemcpuperf[33567]=0; itemramperf[33567]=0; itempcislots[33567]=0; itemdelta[33567]=399; itemdelaydays[33567]=0; starkl[33567]=8530; itemvperf[33568]=0; itemcpuperf[33568]=0; itemramperf[33568]=0; itempcislots[33568]=0; itemdelta[33568]=199; itemdelaydays[33568]=0; starkl[33568]=5329; itemvperf[33577]=0; itemcpuperf[33577]=0; itemramperf[33577]=0; itempcislots[33577]=0; itemdelta[33577]=0; itemdelaydays[33577]=0; starkl[33577]=4280; caseImages[33580]=new Image(); caseImages[33580].src='/images/upload/vsc4000_infiniband.jpg'; caseImages[33579]=new Image(); caseImages[33579].src='/images/upload/vsc4000_large.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()