	var gifts = new Array(
		new Array(
		"Basic Massage",
		"Half Hour",
		"40"
		),
		new Array(
		"Basic Massage",
		"Forty Five Minute",
		"55"
		),
		new Array(
		"Basic Massage",
		"One Hour",
		"65"
		),
		new Array(
		"Basic Massage",
		"One & Half Hour",
		"95"
		),
		
		new Array(
		"Oncology or Deep Tissue or Prenatal",
		"Half Hour",
		"45"
		),
		new Array(
		"Oncology or Deep Tissue or Prenatal",
		"Forty Five Minute",
		"60"
		),
		new Array(
		"Oncology or Deep Tissue or Prenatal",
		"One Hour",
		"70"
		),
		new Array(
		"Oncology or Deep Tissue or Prenatal",
		"One & Half Hour",
		"100"
		),		

		new Array(
		"Hot Stone Massage",
		"Half Hour",
		"55"
		),
		new Array(
		"Hot Stone Massage",
		"One Hour",
		"75"
		),
		new Array(
		"Hot Stone Massage",
		"One & Half Hour",
		"110"
		),
		new Array(
		"Belavi Face Lift Massage",
		"One Hour",
		"75"		
		),
		new Array(
		"Eastern Facial Massage added to massage",
		"15 min.",
		"25"
		),
		new Array(
		"Eastern Facial Massage",
		"Half Hour",
		"55"
		),
		new Array(
		"Eastern Facial Massage added to any 30 or 60 min. massage",
		"Eastern Facial add on",
		"45"
		)
		/*new Array(
		"Sinus Hot Stone Massage - Added to any massage (except prenatal)",
		"Sinus Hot Stone Massage - add on",
		"15"
		)*/	

	);
	
	
	
function addTip(tipAmout) {

	var tip = tipAmout;

	
	if(navigator.appName.indexOf("Explorer") > -1) {
		
		frm.amount.value = parseInt(frm.originalAmount.value) + parseInt(tip);

		spanGiftCost.innerText = parseInt(frm.originalAmount.value) + parseInt(tip);
		
		frm.item_name.value = frm.originalItemName.value + " - PLUS TIP";
		
		//return false;

	}
	else {
		

		document.frm.amount.value = parseInt(document.frm.originalAmount.value) + parseInt(tip);
		
		document.getElementById('spanGiftCost').textContent = parseInt(document.frm.originalAmount.value) + parseInt(tip);
		
		document.frm.item_name.value = document.frm.originalItemName.value + " - PLUS TIP";
		
		//return false;
	
	}
			
}
		
		
	
	function selectGift(giftIndex) {
	
		var qty = parseInt(document.getElementById('qty').options[document.getElementById('qty').selectedIndex].value);
		var discount = 0;
		//var itemcost = gifts[giftIndex][2];
		
		// only discount massages not add-ons
		/*if (giftIndex <= 11)
		{
			if (qty >= 12)
			{		
				discount = qty * 10;
			}
			else if (qty >= 6)
			{
				discount = qty * 5;
				//itemcost = gifts[giftIndex][2] - 5;
			}
		}*/
		if (giftIndex <= 11)
		{
			if (qty >= 9)
			{		
				discount = qty * 9;
			}
			else if (qty >= 6)
			{
				discount = qty * 6;
				//itemcost = gifts[giftIndex][2] - 5;
			}
			else if (qty >= 3)
			{
				discount = qty * 3;
				//itemcost = gifts[giftIndex][2] - 5;
			}			
		}		

		if(navigator.appName.indexOf("Explorer") > -1) {
		
			divGiftName.innerText = gifts[giftIndex][0];
			divGiftDesc.innerText = gifts[giftIndex][1];
			spanQuantity.innerText = document.getElementById('qty').options[document.getElementById('qty').selectedIndex].value;
			
			spanGiftCost.innerText = gifts[giftIndex][2] * parseInt(document.getElementById('qty').options[document.getElementById('qty').selectedIndex].value) - discount;
	
			frm.amount.value = gifts[giftIndex][2] * parseInt(document.getElementById('qty').options[document.getElementById('qty').selectedIndex].value) - discount;
			frm.item_name.value = gifts[giftIndex][0] + " - " + gifts[giftIndex][1] + " - Quantity: " + parseInt(document.getElementById('qty').options[document.getElementById('qty').selectedIndex].value);
	
			// reset tip to 0
			document.getElementById('tip').selectedIndex = 0;
			// set hidden original amount for tip calulation
			frm.originalAmount.value = frm.amount.value;
			// set hidden original name for tip calulation
			frm.originalItemName.value = frm.item_name.value;
			
			return false;
		} else {
		
		 
			 document.getElementById('divGiftName').textContent = gifts[giftIndex][0];
			 document.getElementById('divGiftDesc').textContent = gifts[giftIndex][1];
			 document.getElementById('spanQuantity').textContent = document.getElementById('qty').options[document.getElementById('qty').selectedIndex].value;
			 
			 
			 document.getElementById('spanGiftCost').textContent = gifts[giftIndex][2] * parseInt(document.getElementById('qty').options[document.getElementById('qty').selectedIndex].value) - discount;
			 
	
			 document.frm.amount.value = gifts[giftIndex][2] * parseInt(document.getElementById('qty').options[document.getElementById('qty').selectedIndex].value) - discount;
	
	
			 document.frm.item_name.value = gifts[giftIndex][0] + " - " + gifts[giftIndex][1] + " - Quantity: " + parseInt(document.getElementById('qty').options[document.getElementById('qty').selectedIndex].value);
	
			// reset tip to 0
			document.getElementById('tip').selectedIndex = 0;
			// set hidden original amount for tip calulation
			document.frm.originalAmount.value = document.frm.amount.value;
			// set hidden original name for tip calulation
			document.frm.originalItemName.value = document.frm.item_name.value;			
	
			 return false;
		}
	}

<!--
function openwin() {
var load = window.open('gc_print.htm','','scrollbars=yes,menubar=yes,height=820,width=720,resizable=yes,toolbar=yes,location=no,status=yes');
}
// -->
