function reportPrice(frm)
{
		//cycle through all form elements, drop the selected values into an array (currSelected)
		var currSelected = new Array();
		for(var i = 0; i < frm.elements.length; ++i)
		{
			var e = frm.elements[i];
			if(e.type != 'select-one') continue;
			currSelected[i] = e.options[e.selectedIndex].value;
		}
		var output = '';
		//now compare and get the price
		
		match_index = false; 
		
		for (j=0; j < id_combo.length; j++) {
			//need to learn which id_combo array index holds them both
			//because the elements can be in any order, split each id_combo string into array and search the elements
			
			comboAr = id_combo[j].split(",");  //one array, currSelected is the other array
			
			//loop through currSelected and compare the comboAr elements
			//3 possible options
			if (comboAr.length == 1)
			{
				if (comboAr[0] == currSelected[0])
				{ 
					match_index = j;
				}
			} else if (comboAr.length == 2) {
				first = false;
				second = false;
		
				if (comboAr[0] == currSelected[0] || comboAr[0] == currSelected[1]) 
				{ 
					first = true; //found the first
				}
				if (comboAr[1] == currSelected[0] || comboAr[1] == currSelected[1])
				{
					second = true; //found the second
				}
				if ((first) && (second)) {
					match_index = j;
					break;
				}
			} else if (comboAr.length == 3) {
				first = false;
				second = false;
				third = false;
		
				if (comboAr[0] == currSelected[0] ||
					comboAr[0] == currSelected[1] ||
					comboAr[0] == currSelected[2] ) 
				{ 
					first = true; //found the first
				}
				if (comboAr[1] == currSelected[0] ||
					comboAr[1] == currSelected[1] ||
					comboAr[1] == currSelected[2])
				{
					second = true; //found the second
				}
				if (comboAr[2] == currSelected[0] ||
					comboAr[2] == currSelected[1] ||
					comboAr[2] == currSelected[2])
				{
					third = true; //found the third
				}
				if ((first) && (second) && (third)) {
					match_index = j; 
					break;
				}
			}
		}
		//alert('selected = ' + combo + "\n" + 'lookup = ' + id_combo[match_index]);
		if (combo_price[match_index] > 0) {
			output = "Selected option(s) add " + formatCurrency(combo_price[match_index]) + " to the price";	
		}
		if (combo_price[match_index] < 0) {
			output = "Selected option(s) reduce the price by " + formatCurrency(combo_price[match_index]);
		}

		document.getElementById('priceDelta').innerHTML = output;
}
		
function formatCurrency(num){
	num = (parseFloat(num)).toFixed(2);
	return ("$" + num);
}

function hide(div)
{
	document.getElementById(div).style.visibility = 'hidden';
}
function show(div)
{
	document.getElementById(div).style.visibility = 'visible';
}
		
