<!-- Hide

var	sesame_plus_soho_cost = 399.0
var	sesame_plus_cost = 249.0
var	sesame_personal_cost = 159.0
var	sesame_plus_soho_dl_cost = 339.0
var	sesame_plus_dl_cost = 189.0
var	sesame_personal_dl_cost = 79.0
var	sesame_manual_cost = 40.0
var	multi_user_2_cost = 0.0		// Calculated
var	multi_user_cost = 129.0
var	upgrade_1_dl_cost = 149.0	// Personal 2 To Plus 2
var	extractor_cost = 79.0
var	ses_ship = 0.0

function	Calculate()
{
var	total;
var	total_ship;
var	total_order;

	total = 0.0;
	total_ship = 0.0;
	total_order = 0.0;

	total += (document.order.sesame_plus_soho_quantity.value * sesame_plus_soho_cost)
	total += (document.order.sesame_plus_quantity.value * sesame_plus_cost)
	total += (document.order.sesame_personal_quantity.value * sesame_personal_cost)
	total += (document.order.sesame_usermanual_quantity.value * sesame_manual_cost)
	total += (document.order.sesame_prgmanual_quantity.value * sesame_manual_cost)

	ses_ship = 0
	if(total > 0) ses_ship = 15

	total += (document.order.sesame_plus_soho_dl_quantity.value * sesame_plus_soho_dl_cost)
	total += (document.order.sesame_plus_dl_quantity.value * sesame_plus_dl_cost)
	total += (document.order.sesame_personal_dl_quantity.value * sesame_personal_dl_cost)
	total += (document.order.upgrade_1_dl_quantity.value * upgrade_1_dl_cost) 
	total += (document.order.extractor_quantity.value * extractor_cost) 

	if(document.order.multi_user_2_quantity.value > 0) multi_user_2_cost = 99.0
	if(document.order.multi_user_2_quantity.value > 4) multi_user_2_cost = 97.0
	if(document.order.multi_user_2_quantity.value > 9) multi_user_2_cost = 94.0
	if(document.order.multi_user_2_quantity.value > 24) multi_user_2_cost = 89.0
	total += (document.order.multi_user_2_quantity.value * multi_user_2_cost)
	total += (document.order.multi_user_quantity.value * multi_user_cost)

	total_ship += ses_ship

	total_order += total
	total_order += total_ship

	document.order.p_total.value = formatCurrency(total)
	document.order.s_total.value = formatCurrency(total_ship) 
	document.order.o_total.value = formatCurrency(total_order) 
}

//-->
