	prices = new Array();
	prices['CD'] = new Array();
	prices['DVD'] = new Array();


	//quantity dupe price
	prices['CD']['1-10'] = 0.62
	prices['CD']['11-20'] = 0.62
	prices['CD']['21-50'] = 0.52
	prices['CD']['51-100'] = 0.52
	prices['CD']['101-200'] = 0.42
	prices['CD']['201-500'] = 0.42
	
	//media
	prices['CD']['BPWT'] = 0.13
	prices['CD']['QPWT'] = 0.16
	prices['CD']['QPST'] = 0.16
	prices['CD']['BrNP'] = 0.18
	prices['CD']['BuNP'] = 0.12
	
	//packaging
	prices['CD']['Spindle'] = 0.00
	prices['CD']['PlasticWallet'] = 0.03
	prices['CD']['ClamShell'] = 0.14
	prices['CD']['BudgetLibrary'] = 0.15
	prices['CD']['QualityLibrary'] = 0.21
	
	prices['CD']['PrintedInserts'] = 0.20
	prices['CD']['NoPrintedInserts'] = 0.00
	
	prices['DVD']['1-10'] = 0.72
	prices['DVD']['11-20'] = 0.72
	prices['DVD']['21-50'] = 0.62
	prices['DVD']['51-100'] = 0.62
	prices['DVD']['101-200'] = 0.52
	prices['DVD']['201-500'] = 0.48
	
	prices['DVD']['BPWT'] = 0.17
	prices['DVD']['QPWT'] = 0.21
	prices['DVD']['QPST'] = 0.20
	prices['DVD']['BrNP'] = 0.19
	prices['DVD']['BuNP'] = 0.13
	
	
	prices['DVD']['Spindle'] = 0.00
	prices['DVD']['PlasticWallet'] = 0.03
	prices['DVD']['ClamShell'] = 0.14
	prices['DVD']['BudgetLibrary'] = 0.15
	prices['DVD']['QualityLibrary'] = 0.21
	
	prices['DVD']['PrintedInserts'] = 0.20
	prices['DVD']['NoPrintedInserts'] = 0.00

function costCalc()
{
	tot_cost = 0
	
	v_disc = ""
	len = document.forms['cc'].disc.length
	
	for (i = 0; i <len; i++) {
		if (document.forms['cc'].disc[i].checked)
		{
			v_disc = document.forms['cc'].disc[i].value
		}
	}
	
	if(v_disc || v_disc)
	{
		//alert('ok we have a disc type')
	}
	else alert ('Please Select a Disc Type')
	
	v_quan = document.forms['cc'].quantity.value
	
	if(v_quan <= 10) v_quan_band = '1-10'
	else if(v_quan <= 20) v_quan_band = '11-20'
	else if(v_quan <= 50) v_quan_band = '21-50'
	else if(v_quan <= 100) v_quan_band = '51-100'
	else if(v_quan <= 200) v_quan_band = '101-200'
	else if(v_quan <= 500) v_quan_band = '201-500'
	else if(v_quan > 500) v_quan_band = 'Too Many'
	
	
	v_media = ""
	len = document.forms['cc'].media.length
	
	for (i = 0; i <len; i++) {
		if (document.forms['cc'].media[i].checked)
		{
			v_media = document.forms['cc'].media[i].value
		}
	}
	
	v_packaging = ""
	len = document.forms['cc'].packaging.length
	
	for (i = 0; i <len; i++) {
		if (document.forms['cc'].packaging[i].checked)
		{
			v_packaging = document.forms['cc'].packaging[i].value
		}
	}
	
	v_inserts = ""
	if(document.forms['cc'].inserts.checked)
	{ 
		v_inserts = "PrintedInserts"
	}
	else
	{
		v_inserts = "NoPrintedInserts"
	}
	
	//alert(v_disc + " " + v_quan_band + " " + v_media + " " + v_packaging)
	
	cost_per_item = prices[v_disc][v_quan_band] + prices[v_disc][v_media] + prices[v_disc][v_packaging] + prices[v_disc][v_inserts]
	//alert(prices[v_disc][v_quan_band] + " " + prices[v_disc][v_media] + " " + prices[v_disc][v_packaging])
	tot_cost = v_quan * (prices[v_disc][v_quan_band] + prices[v_disc][v_media] + prices[v_disc][v_packaging] + prices[v_disc][v_inserts]
)
	
	if(tot_cost < 150) del_cost = 7.00
	else del_cost = 0.00
	
	g_tot_cost = tot_cost + del_cost
	vat_cost = g_tot_cost * 0.175
	
	g_tot_cost = g_tot_cost + vat_cost
	
	//alert(cost_per_item + " " + tot_cost)
	
	document.getElementById('order-cost').innerHTML = "Order Cost: &pound; " + tot_cost.toFixed(2)
	document.getElementById('del-cost').innerHTML = "Delivery: &pound; " + del_cost.toFixed(2)
	document.getElementById('vat-cost').innerHTML = "VAT: &pound; " + vat_cost.toFixed(2)
	document.getElementById('g-tot-cost').innerHTML = "Total: &pound; " + g_tot_cost.toFixed(2)
}

function quickCalc()
{
	v_disc = document.forms['cc'].disc.value
	v_quan = document.forms['cc'].quantity.value
	v_media = document.forms['cc'].media.value
	v_packaging = document.forms['cc'].packaging.value
	v_inserts = document.forms['cc'].inserts.value
	if(v_inserts == "on") v_inserts = "PrintedInserts"
	else v_inserts = "NoPrintedInserts"
	
	
	if(v_quan <= 10) v_quan_band = '1-10'
	else if(v_quan <= 20) v_quan_band = '11-20'
	else if(v_quan <= 50) v_quan_band = '21-50'
	else if(v_quan <= 100) v_quan_band = '51-100'
	else if(v_quan <= 200) v_quan_band = '101-200'
	else if(v_quan <= 500) v_quan_band = '201-500'
	else if(v_quan > 500) v_quan_band = 'Too Many'
	
	cost_per_item = prices[v_disc][v_quan_band] + prices[v_disc][v_media] + prices[v_disc][v_packaging] + prices[v_disc][v_inserts]

	tot_cost = v_quan * (prices[v_disc][v_quan_band] + prices[v_disc][v_media] + prices[v_disc][v_packaging] + prices[v_disc][v_inserts])
	
	if(tot_cost < 150) del_cost = 7.00
	else del_cost = 0.00
	
	g_tot_cost = tot_cost + del_cost
	vat_cost = g_tot_cost * 0.175
	
	g_tot_cost = g_tot_cost + vat_cost
	
	costs = new Array()
	
	costs['order'] = tot_cost
	costs['del'] = del_cost
	costs['vat'] = vat_cost
	costs['total'] = g_tot_cost
	
	return costs
	
}