function showtable(elmnt)
{
document.getElementById(elmnt).style.display="block"
}

function hidetable(elmnt)
{
document.getElementById(elmnt).style.display="none"
}




//TurnKey page functions
function updatetotal() {
item1=selected(window.document.form1.ss);
item2=selected(window.document.form1.ps);
item3=selected(window.document.form1.cs);
item4=selected(window.document.form1.cpty_xm);
item5=selected(window.document.form1.sps);
item6=selected(window.document.form1.scnr);
item7=selected(window.document.form1.spks);
item8=selected(window.document.form1.supt2);
item9=selected(window.document.form1.colo);
item10=selected(window.document.form1.tk);
item11=selected(window.document.form1.ic);
val1=eval(ss[item1]);
val2=eval(ps[item2]);
val3=eval(cs[item3]);
val4=eval(cpty_xm[item4]);
val5=eval(sps[item5]);
val6=eval(scnr[item6]);
val7=eval(spks[item7]);
val8=eval(supt2[item8]);
val9=eval(colo[item9]);
val10=eval(tk[item10]);
val11=eval(ic[item11]);
presupt = val1+val2+val3+val4+val5+val6+val7+val10+val11;
window.document.form1a.totalfield.value = money(presupt*val8 + presupt);
window.document.form1a.softfield.value = money(val1+val2+val3+val4+val5+val7+val10+val11-eval(cpty_xm_h[item4]));
window.document.form1a.hardfield.value = money(eval(cpty_xm_h[item4])+val6);
window.document.form1a.suptfield.value = money(presupt*val8);
window.document.form1a.ratesfield.value = money(val9);
}

function turnkey_summary() {
item1=selected(window.document.form1.ss);
item2=selected(window.document.form1.ps);
item3=selected(window.document.form1.cs);
item4=selected(window.document.form1.cpty_xm);
item5=selected(window.document.form1.sps);
item6=selected(window.document.form1.scnr);
item7=selected(window.document.form1.spks);
item8=selected(window.document.form1.supt2);
item9=selected(window.document.form1.colo);
item10=selected(window.document.form1.tk);
item11=selected(window.document.form1.ic);
cookielist=item1+","+item2+","+item3+","+item4+","+item5+","+item6+","+item7+","+item8+","+item9+","+item10+","+item11;
WM_setCookie("turnkey",cookielist);
}

//Starter page functions
function updatetotal2() {
item1=selected(window.document.form2.sso);
item2=selected(window.document.form2.spso);
item3=selected(window.document.form2.scnr);
item4=selected(window.document.form2.spkso);
item5=selected(window.document.form2.ssih);
item6=selected(window.document.form2.supt);
val1=eval(sso[item1]);
val2=eval(spso[item2]);
val3=eval(scnr[item3]);
val4=eval(spkso[item4]);
val5=eval(ssih[item5]);
val6=eval(supt[item6]);
window.document.form2a.totalfield.value = money(val3);
window.document.form2a.softfield.value = money(0);
window.document.form2a.hardfield.value = money(val3);
window.document.form2a.suptfield.value = money(0);
window.document.form2a.ratesfield.value = money(val1+val2+val4+val5+val6);
}

function starter_summary() {
item1=selected(window.document.form2.sso);
item2=selected(window.document.form2.spso);
item3=selected(window.document.form2.scnr);
item4=selected(window.document.form2.spkso);
item5=selected(window.document.form2.ssih);
item6=selected(window.document.form2.supt);
cookielist=item1+","+item2+","+item3+","+item4+","+item5+","+item6;
WM_setCookie("starter",cookielist);
}

//Kits page functions
function updatetotal3() {
item1=selected(window.document.form3.xm);
item2=selected(window.document.form3.tk);
item3=selected(window.document.form3.ic);
val1=eval(xm[item1]);
val2=eval(tk[item2]);
val3=eval(ic[item3]);
window.document.form3a.totalfield.value = money(val1+val2+val3);
window.document.form3a.softfield.value = money(val2+val3);
window.document.form3a.hardfield.value = money(val1);
window.document.form3a.suptfield.value = money(0);
window.document.form3a.ratesfield.value = money(0);
}

function kits_summary() {
item1=selected(window.document.form3.xm);
item2=selected(window.document.form3.tk);
item3=selected(window.document.form3.ic);
cookielist=item1+","+item2+","+item3;
WM_setCookie("kits",cookielist);
}

//Software page functions
function updatetotal4() {
item1=selected(window.document.form4.sft_ss);
item2=selected(window.document.form4.sft_ps);
item3=selected(window.document.form4.sft_cs);
item4=selected(window.document.form4.sft_sps);
item5=selected(window.document.form4.sft_spks);
item6=selected(window.document.form4.cpty);
item7=selected(window.document.form4.supt2);
item8=selected(window.document.form4.colo);
val1=eval(sft_ss[item1]);
val2=eval(sft_ps[item2]);
val3=eval(sft_cs[item3]);
val4=eval(sft_sps[item4]);
val5=eval(sft_spks[item5]);
val6=eval(cpty[item6]);
val7=eval(supt2[item7]);
val8=eval(colo[item8]);
presupt = val1+val2+val3+val4+val5+val6;
window.document.form4a.totalfield.value = money(presupt*val7 + presupt);
window.document.form4a.softfield.value = money(val1+val2+val3+val4+val5+val6);
window.document.form4a.hardfield.value = money(0);
window.document.form4a.suptfield.value = money(presupt*val7);
window.document.form4a.ratesfield.value = money(val8);
}

function software_summary() {
item1=selected(window.document.form4.sft_ss);
item2=selected(window.document.form4.sft_ps);
item3=selected(window.document.form4.sft_cs);
item4=selected(window.document.form4.sft_sps);
item5=selected(window.document.form4.sft_spks);
item6=selected(window.document.form4.cpty);
item7=selected(window.document.form4.supt2);
item8=selected(window.document.form4.colo);
cookielist=item1+","+item2+","+item3+","+item4+","+item5+","+item6+","+item7+","+item8;
WM_setCookie("software",cookielist);
}

//Kcrawl page functions
function updatetotal5() {
item1=selected(window.document.form5.cip);
item2=selected(window.document.form5.colo2);
item3=selected(window.document.form5.supt);
val1=eval(cip[item1]);
val2=eval(colo2[item2]);
val3=eval(supt[item3]);
window.document.form5a.totalfield.value = money(val1);
window.document.form5a.softfield.value = money(val1);
window.document.form5a.hardfield.value = money(0);
window.document.form5a.suptfield.value = money(0);
window.document.form5a.ratesfield.value = money(val2+val3);
}

function kcrawl_summary() {
item1=selected(window.document.form5.cip);
item2=selected(window.document.form5.colo2);
item3=selected(window.document.form5.supt);
cookielist=item1+","+item2+","+item3;
WM_setCookie("kcrawl",cookielist);
}

//pso page functions
function updatetotal6() {
item1=selected(window.document.form6.pso);
val1=eval(pso[item1]);
window.document.form6a.totalfield.value = money(0);
window.document.form6a.softfield.value = money(0);
window.document.form6a.hardfield.value = money(0);
window.document.form6a.suptfield.value = money(0);
window.document.form6a.ratesfield.value = money(val1);
}

function psoupgrade_summary() {
item1=selected(window.document.form6.pso);
cookielist=item1;
WM_setCookie("psoupgrade",cookielist);
}

//special page functions
function updatetotal7() {
item1=window.document.form7.sof[selected(window.document.form7.sof)].value;

window.document.form7a.totalfield.value = getsof$(item1);
window.document.form7a.softfield.value = "Special";
window.document.form7a.hardfield.value = "Special";
window.document.form7a.suptfield.value = "Special";
window.document.form7a.ratesfield.value = money(0);
}

function getsofname(value) {
var check1 = value.indexOf('#');
var check2 = value.indexOf('?');
var check3 = value.indexOf('%');
var sofname = value.substring(0,check1);
return sofname;
}

function getsofpack(value) {
var check1 = value.indexOf('#');
var check2 = value.indexOf('?');
var check3 = value.indexOf('%');
var sofpack = value.substring(check1+1,check2);
return sofpack;
}

function getsofcpty(value) {
var check1 = value.indexOf('#');
var check2 = value.indexOf('?');
var check3 = value.indexOf('%');
var sofcpty = value.substring(check2+1,check3);
return sofcpty;
}

function special_summary() {
item1=window.document.form7.sof[selected(window.document.form7.sof)].value;
cookielist=item1;
WM_setCookie("special",cookielist);
}

function getsof$(value) {
var check1 = value.indexOf('#');
var check2 = value.indexOf('?');
var check3 = value.indexOf('%');
var sofcost = value.substring(check3+1,value.length);
convert = money(sofcost);
return convert;
}


function updatetotal8() {
item1=selectedcb(window.document.form8.ptrain1);
item2=selectedcb(window.document.form8.ptrain2);
item3=selectedcb(window.document.form8.ptrain3);
item4=selectedcb(window.document.form8.ptrain4);
item5=selectedcb(window.document.form8.ptrain5);
item6=selectedcb(window.document.form8.ptrain6);

presupt = item1+item2+item3+item4+item5+item6;

window.document.form8a.totalfield.value = money(presupt);
window.document.form8a.softfield.value = money(0);
window.document.form8a.hardfield.value = money(0);
window.document.form8a.suptfield.value = money(presupt);
window.document.form8a.ratesfield.value = money(0);
}


function ptrain_summary() {
item1=selectedcb(window.document.form8.ptrain1);
item2=selectedcb(window.document.form8.ptrain2);
item3=selectedcb(window.document.form8.ptrain3);
item4=selectedcb(window.document.form8.ptrain4);
item5=selectedcb(window.document.form8.ptrain5);
item6=selectedcb(window.document.form8.ptrain6);
cookielist=item1+","+item2+","+item3+","+item4+","+item5+","+item6;
WM_setCookie("ptrain",cookielist);
}


function updatetotal9() {
item1=selectedcb(window.document.form9.ctrain1);
item2=selectedcb(window.document.form9.ctrain2);
item3=selectedcb(window.document.form9.ctrain3);
item4=selectedcb(window.document.form9.ctrain4);
item5=selectedcb(window.document.form9.ctrain5);
item6=selectedcb(window.document.form9.ctrain6);
item7=selectedcb(window.document.form9.ctrain7);
item8=selectedcb(window.document.form9.ctrain8);
item9=selectedcb(window.document.form9.ctrain9);
item10=selectedcb(window.document.form9.ctrain10);
item11=selectedcb(window.document.form9.ctrain11);
item12=selectedcb(window.document.form9.ctrain12);

presupt = item1+item2+item3+item4+item5+item6+item7+item8+item9+item10+item11+item12;

window.document.form9a.totalfield.value = money(presupt);
window.document.form9a.softfield.value = money(0);
window.document.form9a.hardfield.value = money(0);
window.document.form9a.suptfield.value = money(presupt);
window.document.form9a.ratesfield.value = money(0);
}


function ctrain_summary() {
item1=selectedcb(window.document.form9.ctrain1);
item2=selectedcb(window.document.form9.ctrain2);
item3=selectedcb(window.document.form9.ctrain3);
item4=selectedcb(window.document.form9.ctrain4);
item5=selectedcb(window.document.form9.ctrain5);
item6=selectedcb(window.document.form9.ctrain6);
item7=selectedcb(window.document.form9.ctrain7);
item8=selectedcb(window.document.form9.ctrain8);
item9=selectedcb(window.document.form9.ctrain9);
item10=selectedcb(window.document.form9.ctrain10);
item11=selectedcb(window.document.form9.ctrain11);
item12=selectedcb(window.document.form9.ctrain12);
cookielist=item1+","+item2+","+item3+","+item4+","+item5+","+item6+","+item7+","+item8+","+item9+","+item10+","+item11+","+item12;
WM_setCookie("ctrain",cookielist);
}


//return selected radio and checkbox index
function selected(radio) {
for (var i=0; i<radio.length; i++) {
if (radio[i].checked==true) {
break
} else if (i==radio.length-1 && radio[i].checked==false) {
return -1;
}
}
return i;
}

function selectedcb(box) {
if (box.checked==true) {
return eval(box.value);
} else {
return 0;
}
}

//Price Sheet Data Arrays
var ss = new Array("16000","31000","49000","104000","254000");
var _ss = new Array("SS-1","SS-2","SS-3","SS-4","SS-E");
var __ss = new Array("Package Base ScapeShape - 1","Package Base ScapeShape - 2","Package Base ScapeShape - 3","Package Base ScapeShape - 4","Package Base ScapeShape - Enterprise");
var sso = new Array("250");
var _sso = new Array("SSO-1");
var __sso = new Array("Package Base ScapeShape Online - 1");
var ps = new Array("0",  "0","5000","30000","100000","300000","500000");
var _ps = new Array("PS-1",  "PS-1","PS-2","PS-3","PS-4","PS-E","PS-EX");
var __ps = new Array("PatternScape - 1",  "PatternScape - 1","PatternScape - 2","PatternScape - 3","PatternScape - 4","PatternScape - Enterprise","PatternScape - Extreme");
var cs = new Array("0",  "0","5000","30000","100000","250000");
var _cs = new Array("CS-1",  "CS-1","CS-2","CS-3","CS-4","CS-E");
var __cs = new Array("CrawlScape - 1",  "CrawlScape - 1","CrawlScape - 2","CrawlScape - 3","CrawlScape - 4","CrawlScape - Enterprise");
var cpty_xm = new Array("0",  "0","16000","48500","82500","130000","251500","558500","871500");
var cpty_xm_h = new Array("6500",  "6500","6900","7900","13000","26000","65000","195000","260000");
var _cpty_xm = new Array("CPTY-XM-0.5",  "CPTY-XM-0.5","CPTY-XM-2","CPTY-XM-5","CPTY-XM-10","CPTY-XM-25","CPTY-XM-50","CPTY-XM-100","cpty-xm-100+");
var __cpty_xm = new Array("Search Capacity with Server - 500,000 Documents",  "Search Capacity with Server - 500,000 Documents","Search Capacity with Server - 2 Million Documents","Search Capacity with Server - 5 Million Documents","Search Capacity with Server - 10 Million Documents","Search Capacity with Server - 25 Million Documents","Search Capacity with Server - 50 Million Documents","Search Capacity with Server - 100 Million Documents","Search Capacity with Server - 100 Million+ Documents");
var cpty = new Array("3000",  "3000","4000","14000","33500","74000","191500","363500","611500");
var _cpty = new Array("CPTY-1",  "CPTY-1","CPTY-2","CPTY-5","CPTY-10","CPTY-25","CPTY-50","CPTY-100","CPTY-100+");
var __cpty = new Array("Search Capacity - 1 Million Documents",  "Search Capacity - 1 Million Documents","Search Capacity - 2 Million Documents","Search Capacity - 5 Million Documents","Search Capacity - 10 Million Documents","Search Capacity - 25 Million Documents","Search Capacity - 50 Million Documents","Search Capacity - 100 Million Documents","Search Capacity - 100 Million+ Documents");
var xm = new Array("0",  "9500","9900","10900","18800","36600","89000","267000","356000");
var _xm = new Array("none",  "XM-1","XM-2","XM-3","XM-4","XM-5","XM-6","XM-7","XM-8");
var __xm = new Array("none",  "Server Package - 1","Server Package - 2","Server Package - 3","Server Package - 4","Server Package - 5","Server Package - 6","Server Package - 7","Server Package - 8");
var sps = new Array("0",  "12000","16000","36000","57000","210000");
var _sps = new Array("none",  "SPS-1","SPS-2","SPS-3","SPS-4","SPS-E");
var __sps = new Array("none",  "SoftPaperScape - 1","SoftPaperScape - 2","SoftPaperScape - 3","SoftPaperScape - 4","SoftPaperScape - Enterprise");
var spso = new Array("0",  "100","150","350","550","3800");
var _spso = new Array("none",  "SPSO-1","SPSO-2","SPSO-3","SPSO-4","SPSO-E");
var __spso = new Array("none",  "SoftPaperScape Online - 1","SoftPaperScape Online - 2","SoftPaperScape Online - 3","SoftPaperScape Online - 4","SoftPaperScape Online - Enterprise");
var scnr = new Array("0",  "1200","7200");
var _scnr = new Array("none",  "SCNR-1","SCNR-2");
var __scnr = new Array("none",  "15 PPM Avision Normal duty cycle Network Scanner","100 PPM Avision Heavy duty cycle Network Scanner");
var spks = new Array("0",  "12000","16000","36000","57000","290000");
var _spks = new Array("none",  "SPKS-1","SPKS-2","SPKS-3","SPKS-4","SPKS-E");
var __spks = new Array("none",  "SpeakScape - 1","SpeakScape - 2","SpeakScape - 3","SpeakScape - 4","SpeakScape - Enterprise");
var spkso = new Array("0",  "100","150","350","550","3800");
var _spkso = new Array("none",  "SPKSO-1","SPKSO-2","SPKSO-3","SPKSO-4","SPKSO-E");
var __spkso = new Array("none",  "SpeakScape Online - 1","SpeakScape Online - 2","SpeakScape Online - 3","SpeakScape Online - 4","SpeakScape Online - Enterprise");

var ssih = new Array("0",  "0","1000","3000","12000","30000");
var _ssih = new Array("SSIH-0.1",  "SSIH-0.1","SSIH-1","SSIH-2","SSIH-3","SSIH-4");
var __ssih = new Array("SS Intranet Hosting Capacity - 100,000 Documents",  "SS Intranet Hosting Capacity - 100,000 Documents","SS Intranet Hosting Capacity - 1 Million Documents","SS Intranet Hosting Capacity - 2 Million Documents","SS Intranet Hosting Capacity - 3 Million Documents","SS Intranet Hosting Capacity - 4 Million Documents");

var cip = new Array("10000","15000","22000","55000","120000","220000","300000");
var _cip = new Array("CIP-1","CIP-5","CIP-10","CIP-25","CIP-100","CIP-200","CIP-200+");
var __cip = new Array("Crawl and Index Package - 1 Million Documents","Crawl and Index Package - 5 Million Documents","Crawl and Index Package - 10 Million Documents","Crawl and Index Package - 25 Million Documents","Crawl and Index Package - 100 Million Documents","Crawl and Index Package - 200 Million Documents","Crawl and Index Package - 200 Million+ Documents");

var colo = new Array("0",  "400","650","800","1100","1300");
var _colo = new Array("none",  "COLO-1","COLO-2","COLO-10","COLO-20","COLO-40");
var __colo = new Array("none",  "Co-Location Hosting - Level 1 - 1","Co-Location Hosting - Level 1 - 2","Co-Location Hosting - Level 1 - 10","Co-Location Hosting - Level 1 - 20","Co-Location Hosting - Level 1 - 40");
var colo2 = new Array("400","650","800","1100","1300",  "400","650","800","1100","1300","700","950","1100","1400","1700","1000","1250","1400","1700","2000");
var _colo2 = new Array("COLO-1","COLO-2","COLO-10","COLO-20","COLO-40",  "COLO-1","COLO-2","COLO-10","COLO-20","COLO-40","COLO2-1","COLO2-2","COLO2-10","COLO2-20","COLO2-40","COLO3-1","COLO3-2","COLO3-10","COLO3-20","COLO3-40");
var __colo2 = new Array("Co-Location Hosting - Level 1 - 1","Co-Location Hosting - Level 1 - 2","Co-Location Hosting - Level 1 - 10","Co-Location Hosting - Level 1 - 20","Co-Location Hosting - Level 1 - 40",  "Co-Location Hosting - Level 1 - 1","Co-Location Hosting - Level 1 - 2","Co-Location Hosting - Level 1 - 10","Co-Location Hosting - Level 1 - 20","Co-Location Hosting - Level 1 - 40","Co-Location Hosting - Level 2 - 1","Co-Location Hosting - Level 2 - 2","Co-Location Hosting - Level 2 - 10","Co-Location Hosting - Level 2 - 20","Co-Location Hosting - Level 2 - 40","Co-Location Hosting - Level 3 - 1","Co-Location Hosting - Level 3 - 2","Co-Location Hosting - Level 3 - 10","Co-Location Hosting - Level 3 - 20","Co-Location Hosting - Level 3 - 40");

var supt = new Array("0",  "0","250","400","700","900");
var _supt = new Array("SUPT-1",  "SUPT-1","SUPT-2","SUPT-3","SUPT-4","SUPT-5");
var __supt = new Array("Support Option - 1",  "Support Option - 1","Support Option - 2","Support Option - 3","Support Option - 4","Support Option - 5");
var supt2 = new Array("0",  "0","0.10");
var _supt2 = new Array("SUPT-6",  "SUPT-6","SUPT-7");
var __supt2 = new Array("Support Option - 6",  "Support Option - 6","Support Option - 7");

var tk = new Array("0",  "15500","4500","4500","30000");
var _tk = new Array("none",  "TK-1","TK-2","TK-3","TK-4");
var __tk = new Array("none",  "Pre-Configured Test Kit - 1","Pre-Configured Test Kit - 2","Pre-Configured Test Kit - 3","Pre-Configured Test Kit - 4");

var ic = new Array("0",  "5500","9500");
var _ic = new Array("none",  "IC-1","IC-2");
var __ic = new Array("none",  "Index Cleaner - 1","Index Cleaner - 2");

var sft_ss = new Array("100000","300000");
var _sft_ss = new Array("SFTSS-4","SFTSS-E");
var __sft_ss = new Array("ScapeShape Software - 4","ScapeShape Software - Enterprise");
var sft_ps = new Array("120000","190000","330000","900000");
var _sft_ps = new Array("SFTPS-2","SFTPS-3","SFTPS-4","SFTPS-E");
var __sft_ps = new Array("PatternScape Software - 2","PatternScape Software - 3","PatternScape Software - 4","PatternScape Software - Enterprise");
var sft_cs = new Array("100000","600000","250000","1000","10000");
var _sft_cs = new Array("SFTCS-4","SFTCS-E","SFTCS-DC","SFTCS-CL","SFTCS-CE");
var __sft_cs = new Array("CrawlScape Software - 4","CrawlScape Software - Enterprise","CrawlScape Software - Developer's Kit Corporate","CrawlScape Software - Consultant Lite","CrawlScape Software - Consultant Enterprise");
var sft_sps = new Array("0",  "100000","140000");
var _sft_sps = new Array("none",  "SPS-4","SPS-E");
var __sft_sps = new Array("none",  "SoftPaperScape Software - 4","SoftPaperScape Software - Enterprise");
var sft_spks = new Array("0",  "100000","140000");
var _sft_spks = new Array("none",  "SPKS-4","SPKS-E");
var __sft_spks = new Array("none",  "SpeakScape Software - 4","SpeakScape Software - Enterprise");

var pso = new Array("50","500","1000");
var _pso = new Array("PSO-1","PSO-2","PSO-3");
var __pso = new Array("PatternScape Online - 1","PatternScape Online - 2","PatternScape Online - 3");


//Checkbox Special - info is per item
var _ptrain1 = new Array("SPS/SPKS-Train","SoftPaperScape &amp; SpeakScape Training (3 hrs)","1500");
var _ptrain2 = new Array("PS-Train","PatternScape Training (3 hrs)","1500");
var _ptrain3 = new Array("SS-Train","ScapeShape Training (4 hrs)","2000");
var _ptrain4 = new Array("CS-Train","CrawlScape Training (10 hrs)","5000");
var _ptrain5 = new Array("SALES1-Train","Post-Sales Consultant Training (5 hrs)","2500");
var _ptrain6 = new Array("SALES2-Train","Pre-Sales Engineer Training (3 hrs)","1500");

var _ctrain1 = new Array("SPS/SPKS-Train-OL","SoftPaperScape &amp; SpeakScape Training ONLINE (3 hrs)","1500");
var _ctrain2 = new Array("PS-Train-OL","PatternScape Training ONLINE (3 hrs)","1500");
var _ctrain3 = new Array("SS-Train-OL","ScapeShape Training ONLINE (4 hrs)","2000");
var _ctrain4 = new Array("CS-Train-OL","CrawlScape Training ONLINE (10 hrs)","5000");
var _ctrain5 = new Array("SALES1-Train-OL","Post-Sales Consultant Training ONLINE (5 hrs)","2500");
var _ctrain6 = new Array("SALES2-Train-OL","Pre-Sales Engineer Training ONLINE (3 hrs)","1500");
var _ctrain7 = new Array("SPS/SPKS-Train-OS","SoftPaperScape &amp; SpeakScape Training ONSITE (3 hrs)","5400");
var _ctrain8 = new Array("PS-Train-OS","PatternScape Training ONSITE (3 hrs)","5400");
var _ctrain9 = new Array("SS-Train-OS","ScapeShape Training ONSITE (4 hrs)","7200");
var _ctrain10 = new Array("CS-Train-OS","CrawlScape Training ONSITE (10 hrs)","18000");
var _ctrain11 = new Array("SALES1-Train-OS","Post-Sales Consultant Training ONSITE (5 hrs)","9000");
var _ctrain12 = new Array("SALES2-Train-OS","Pre-Sales Engineer Training ONSITE (3 hrs)","5400");

/**License:"This Code is subject to the terms, conditions, warranties, and disclaimers of the Webmonkey Public License, Version 1.0 located at http://www.hotwired.com/webmonkey/javascript/code_library/license/wpl.html. Original Code is (c) 1998 Wired Digital Inc.  All Rights Reserved. This Code came from the Webmonkey Code Library located at http://www.hotwired.com/webmonkey/javascript/code_library/. Webmonkey is a registered trademark of Wired Ventures Inc.*/

// This next little bit of code tests whether the user accepts cookies.
var WM_acceptsCookies = false;
if(document.cookie == '') {
    document.cookie = 'WM_acceptsCookies=yes'; // Try to set a cookie.
    if(document.cookie.indexOf('WM_acceptsCookies=yes') != -1) {
	WM_acceptsCookies = true; 
    }// If it succeeds, set variable
} else { // there was already a cookie
  WM_acceptsCookies = true;
}


function WM_setCookie (name, value, hours, path, domain, secure) {
    if (WM_acceptsCookies) { // Don't waste your time if the browser doesn't accept cookies.
	var not_NN2 = (navigator && navigator.appName 
		       && (navigator.appName == 'Netscape') 
		       && navigator.appVersion 
		       && (parseInt(navigator.appVersion) == 2))?false:true;

	if(hours && not_NN2) { // NN2 cannot handle Dates, so skip this part
	    if ( (typeof(hours) == 'string') && Date.parse(hours) ) { // already a Date string
		var numHours = hours;
	    } else if (typeof(hours) == 'number') { // calculate Date from number of hours
		var numHours = (new Date((new Date()).getTime() + hours*3600000)).toGMTString();
	    }
	}
	document.cookie = name + '=' + escape(value) + ((numHours)?(';expires=' + numHours):'') + ((path)?';path=' + path:'') + ((domain)?';domain=' + domain:'') + ((secure && (secure == true))?'; secure':''); // Set the cookie, adding any parameters that were specified.
    }
} // WM_setCookie


function WM_readCookie(name) {
    if(document.cookie == '') { // there's no cookie, so go no further
	return -600; 
    } else { // there is a cookie
	var firstChar, lastChar;
	var theBigCookie = document.cookie;
	firstChar = theBigCookie.indexOf(name);	// find the start of 'name'
	var NN2Hack = firstChar + name.length;
	if((firstChar != -1) && (theBigCookie.charAt(NN2Hack) == '=')) { // if you found the cookie
	    firstChar += name.length + 1; // skip 'name' and '='
	    lastChar = theBigCookie.indexOf(';', firstChar); // Find the end of the value string (i.e. the next ';').
	    if(lastChar == -1) lastChar = theBigCookie.length;
	    return unescape(theBigCookie.substring(firstChar, lastChar));
	} else { // If there was no cookie of that name, return false.
	    return -600;
	}
    }	
} // WM_readCookie

function WM_killCookie(name, path, domain) {
  var theValue = WM_readCookie(name); // We need the value to kill the cookie
  if(theValue) {
      document.cookie = name + '=' + theValue + '; expires=Fri, 13-Apr-1970 00:00:00 GMT' + ((path)?';path=' + path:'') + ((domain)?';domain=' + domain:''); // set an already-expired cookie
  }
} // WM_killCookie

// End of Licensed Covered Code

//my cookie functions

function remembercookie() {
temp=WM_readCookie('turnkey');
if (temp!=-600) {
var array_ssbase = temp.split(",");
window.document.form1.ss[array_ssbase[1]].checked=true;
window.document.form1.ps[array_ssbase[2]].checked=true;
window.document.form1.cs[array_ssbase[3]].checked=true;
window.document.form1.server[array_ssbase[4]].checked=true;
window.document.form1.sps[array_ssbase[5]].checked=true;
window.document.form1.spso[array_ssbase[6]].checked=true;
}
}

function clearall() {
WM_killCookie('turnkey');
WM_killCookie('starter');
WM_killCookie('kits');
WM_killCookie('software');
WM_killCookie('kcrawl');
WM_killCookie('psoupgrade');
WM_killCookie('special');
WM_killCookie('ptrain');
}



//reccommended choices

function turnkey_recommended() {
window.document.form1.cpty_xm_checkbox.checked=true;
window.document.form1.ps_checkbox.checked=true;
window.document.form1.sps_checkbox.checked=true;
window.document.form1.scnr_checkbox.checked=true;
window.document.form1.spks_checkbox.checked=true;
window.document.form1.supt2_checkbox.checked=true;
window.document.form1.colo_checkbox.checked=true;
showtable('cpty_xm_ii');
showtable('ps_ii');
showtable('sps_ii');
showtable('scnr_ii');
showtable('spks_ii');
showtable('supt2_ii');
showtable('colo_ii');
hidetable('cpty_xm_i');
hidetable('ps_i');
hidetable('sps_i');
hidetable('scnr_i');
hidetable('spks_i');
hidetable('supt2_i');
hidetable('colo_i');
window.document.form1.ss[1].checked=true;
window.document.form1.cpty_xm[2].checked=true;
window.document.form1.ps[2].checked=true;
window.document.form1.sps[2].checked=true;
window.document.form1.scnr[1].checked=true;
window.document.form1.spks[2].checked=true;
window.document.form1.supt2[2].checked=true;
window.document.form1.colo[1].checked=true;
updatetotal();
}

function starter_recommended() {
window.document.form2.spso_checkbox.checked=true;
window.document.form2.scnr_checkbox.checked=true;
window.document.form2.spkso_checkbox.checked=true;
window.document.form2.supt_checkbox.checked=true;
showtable('spso_ii');
showtable('scnr_ii');
showtable('spkso_ii');
showtable('supt_ii');
hidetable('spso_i');
hidetable('scnr_i');
hidetable('spkso_i');
hidetable('supt_i');
window.document.form2.spso[2].checked=true;
window.document.form2.scnr[1].checked=true;
window.document.form2.spkso[2].checked=true;
window.document.form2.supt[2].checked=true;
updatetotal2();
}


function software_recommended() {
window.document.form4.sft_sps_checkbox.checked=true;
window.document.form4.sft_spks_checkbox.checked=true;
window.document.form4.cpty_checkbox.checked=true;
window.document.form4.supt2_checkbox.checked=true;
window.document.form4.colo_checkbox.checked=true;
showtable('sft_sps_ii');
showtable('sft_spks_ii');
showtable('cpty_ii');
showtable('supt2_ii');
showtable('colo_ii');
hidetable('sft_sps_i');
hidetable('sft_spks_i');
hidetable('cpty_i');
hidetable('supt2_i');
hidetable('colo_i');
window.document.form4.sft_ss[0].checked=true;
window.document.form4.sft_ps[2].checked=true;
window.document.form4.sft_cs[1].checked=true;
window.document.form4.sft_sps[1].checked=true;
window.document.form4.sft_spks[1].checked=true;
window.document.form4.cpty[6].checked=true;
window.document.form4.supt2[2].checked=true;
window.document.form4.colo[1].checked=true;
updatetotal4();
}



function psoupgrade_recommended() {
window.document.form6.pso[1].checked=true;
updatetotal6();
}


//summary page listing simplified

function listreg(_a,__a,a,longstring) {
a=money(a);
if (_a!="none"){document.writeln("<tr><td class='tdwhite' align='center'>"+_a+"</td><td class='tdwhite'>"+__a+"</td><td class='tdwhite' align='right'>"+a+"</td><td class='tdwhite' align='right'>&nbsp;</td></tr>");

longstring = longstring + "<tr><td align=center>"+_a+"</td><td>"+__a+"</td><td align=right>"+a+"</td><td align=right>&nbsp;</td></tr>";
}
return longstring;
}

function listregcb(array,_a,__a,a,longstring) {
if (array!="0"){
a=money(a);
document.writeln("<tr><td class='tdwhite' align='center'>"+_a+"</td><td class='tdwhite'>"+__a+"</td><td class='tdwhite' align='right'>"+a+"</td><td class='tdwhite' align='right'>&nbsp;</td></tr>");

longstring = longstring + "<tr><td align=center>"+_a+"</td><td>"+__a+"</td><td align=right>"+a+"</td><td align=right>&nbsp;</td></tr>";
}
return longstring;
}

function listmon(_a,__a,a,longstring) {
a=money(a);
if (_a!="none"){document.writeln("<tr><td class='tdwhite' align='center'>"+_a+"</td><td class='tdwhite'>"+__a+"</td><td class='tdwhite' align='right'>&nbsp;</td><td class='tdwhite' align='right'>"+a+"</td></tr>");

longstring = longstring + "<tr><td align=center>"+_a+"</td><td>"+__a+"</td><td align=right>&nbsp;</td><td align=right>"+a+"</td></tr>";
}
return longstring;
}

function listsof(_a,__a,a,longstring) {
if (_a!="none"){document.writeln("<tr><td class='tdwhite' align='center'>"+_a+"</td><td class='tdwhite'>"+__a+"</td><td class='tdwhite' align='right'>"+a+"</td><td class='tdwhite' align='right'>&nbsp;</td></tr>");

longstring = longstring + "<tr><td align=center>"+_a+"</td><td>"+__a+"</td><td align=right>"+a+"</td><td align=right>&nbsp;</td></tr>";
}
return longstring;
}


//currency formatting
<!-- Original:  Cyanide_7 (leo7278@hotmail.com) -->
<!-- Web Site:  http://www7.ewebcity.com/cyanide7 -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function money(num) {
num = eval(num);
num = num.toString().replace(/\$|\,/g,'');
if(isNaN(num))
num = "0";
sign = (num == (num = Math.abs(num)));
num = Math.floor(num*100+0.50000000001);
cents = num%100;
num = Math.floor(num/100).toString();
if(cents<10)
cents = "0" + cents;
for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
num = num.substring(0,num.length-(4*i+3))+','+
num.substring(num.length-(4*i+3));
return (((sign)?'':'-') + '$' + num);
// if want cents, add this to the return:  + '.' + cents
}
//  End -->


function quickpick_menu(target,selObj,restore){
	if (selObj.selectedIndex!=0)
	{
    eval(target+".location='pricing/pack_special.html?"+(eval(selObj.selectedIndex)-1)+"'");
    if (restore) selObj.selectedIndex=0;
	}
}







<!--


/*
BrowserDetector()
Parses User-Agent string into useful info.

Source: Webmonkey Code Library
(http://www.hotwired.com/webmonkey/javascript/code_library/)

Author: Richard Blaylock
Author Email: blaylock@wired.com

Usage: var bd = new BrowserDetector(navigator.userAgent);
*/


// Utility function to trim spaces from both ends of a string
function Trim(inString) {
  var retVal = "";
  var start = 0;
  while ((start < inString.length) && (inString.charAt(start) == ' ')) {
    ++start;
  }
  var end = inString.length;
  while ((end > 0) && (inString.charAt(end - 1) == ' ')) {
    --end;
  }
  retVal = inString.substring(start, end);
  return retVal;
}

function BrowserDetector(ua) {

// Defaults
  this.browser = "Unknown";
  this.platform = "Unknown";
  this.version = "";
  this.majorver = "";
  this.minorver = "";

  uaLen = ua.length;

// ##### Split into stuff before parens and stuff in parens
  var preparens = "";
  var parenthesized = "";

  i = ua.indexOf("(");
  if (i >= 0) {
    preparens = Trim(ua.substring(0,i));
        parenthesized = ua.substring(i+1, uaLen);
        j = parenthesized.indexOf(")");
        if (j >= 0) {
          parenthesized = parenthesized.substring(0, j);
        }
  }
  else {
    preparens = ua;
  }

// ##### First assume browser and version are in preparens
// ##### override later if we find them in the parenthesized stuff
  var browVer = preparens;

  var tokens = parenthesized.split(";");
  var token = "";
// # Now go through parenthesized tokens
  for (var i=0; i < tokens.length; i++) {
    token = Trim(tokens[i]);
        //## compatible - might want to reset from Netscape
        if (token == "compatible") {
          //## One might want to reset browVer to a null string
          //## here, but instead, we'll assume that if we don't
          //## find out otherwise, then it really is Mozilla
          //## (or whatever showed up before the parens).
        //## browser - try for Opera or IE
    }
        else if (token.indexOf("MSIE") >= 0) {
      browVer = token;
    }
    else if (token.indexOf("Opera") >= 0) {
      browVer = token;
    }
        //'## platform - try for X11, SunOS, Win, Mac, PPC
    else if ((token.indexOf("X11") >= 0) || (token.indexOf("SunOS") >= 0) ||
(token.indexOf("Linux") >= 0)) {
      this.platform = "Unix";
        }
    else if (token.indexOf("Win") >= 0) {
      this.platform = token;
        }
    else if ((token.indexOf("Mac") >= 0) || (token.indexOf("PPC") >= 0)) {
      this.platform = token;
        }
  }

  var msieIndex = browVer.indexOf("MSIE");
  if (msieIndex >= 0) {
    browVer = browVer.substring(msieIndex, browVer.length);
  }

  var leftover = "";
  if (browVer.substring(0, "Mozilla".length) == "Mozilla") {
    this.browser = "Netscape";
        leftover = browVer.substring("Mozilla".length+1, browVer.length);
  }
  else if (browVer.substring(0, "Lynx".length) == "Lynx") {
    this.browser = "Lynx";
        leftover = browVer.substring("Lynx".length+1, browVer.length);
  }
  else if (browVer.substring(0, "MSIE".length) == "MSIE") {
    this.browser = "IE";
    leftover = browVer.substring("MSIE".length+1, browVer.length);
  }
  else if (browVer.substring(0, "Microsoft Internet Explorer".length) ==
"Microsoft Internet Explorer") {
    this.browser = "IE"
        leftover = browVer.substring("Microsoft Internet Explorer".length+1,
browVer.length);
  }
  else if (browVer.substring(0, "Opera".length) == "Opera") {
    this.browser = "Opera"
    leftover = browVer.substring("Opera".length+1, browVer.length);
  }

  leftover = Trim(leftover);

  // # Try to get version info out of leftover stuff
  i = leftover.indexOf(" ");
  if (i >= 0) {
    this.version = leftover.substring(0, i);
  }
  else
  {
    this.version = leftover;
  }
  j = this.version.indexOf(".");
  if (j >= 0) {
    this.majorver = this.version.substring(0,j);
    this.minorver = this.version.substring(j+1, this.version.length);
  }
  else {
    this.majorver = this.version;
  }


} // function BrowserCap



// -->



