function Validate() {
		var sNeeded = ""
		if (AnyItems() == false) {
			sNeeded = sNeeded + "\rYou need to order something."
		}
		
		if (sNeeded != "") {
			alert("Please supply the following:\r" + sNeeded)
			return false
		}
		else {
			return true
		}
	}
	
	function AnyItems() {
		var iCnt = 0
		var objItems = document.getElementsByName("OrderAmount")
		for (i=0; i < objItems.length; i++) {
			if (objItems(i).value != 0) {
				iCnt = iCnt + 1
			}
		}
		
		if (iCnt == 0) {
			return false
		}
		else
		{
			return true
		}
	}	
	
	function NahNahNah() {
		event.returnValue = false
	}	
	
	function ChangeSubTotal(sID) {
		var sCost = "Cost_" + sID
		//alert(document.form1.item(sCost).value)
		var sMin = "Minimum_" + sID
		//alert(document.form1.item(sMin).value)
		var sAmount = sID
		//alert(document.form1.item(sAmount).value)
		var sSubTotal = "SubTotal_" + sID
		
		//See what they have entered and make it a multiple of the next highest Minimum Amount
		if (eval(document.form1.item(sAmount).value) <= eval(document.form1.item(sMin).value) && document.form1.item(sAmount).value != 0) {
			document.form1.item(sAmount).value = document.form1.item(sMin).value
		}
		else {
			y = eval(document.form1.item(sAmount).value) / eval(document.form1.item(sMin).value)
			y = Math.ceil(y)
			y = eval(document.form1.item(sMin).value) * y
			document.form1.item(sAmount).value = y
		}
		
		x = document.form1.item(sAmount).value * document.form1.item(sCost).value
		document.form1.item(sSubTotal).value = x.toFixed(2)
		
		if (document.form1.item(sSubTotal).value == "NaN") {
			document.form1.item(sSubTotal).value = 0
		}
		
		CalculateTotal()
	}
	
	function CalculateTotal() {
		var iTotal
		var iPostage
		var GST
		var iTotaleNew
		
		var bADD_GST //0 to NOT add GST.... 1 to Add it it to the total
		bADD_GST = 0
		
		iTotaleNew = 0
		iTotal = 0
		GST = 0
		var objSubTotals = document.getElementsByName("SubTotal")
		for (i=0; i < objSubTotals.length; i++) {
			iTotal = eval(iTotal) + eval(objSubTotals(i).value)
			GST = eval(iTotal) * .1
			iTotaleNew = eval(iTotal) + eval(GST)
		}
		
		
		
		if (iTotal <= 500) {
			iTotal = iTotal + 15			
			document.form1.Postage.value = 15
		}
		else {
			document.form1.Postage.value = 0
		}
		document.form1.Total.value = iTotal.toFixed(2)
		
		
	}
	
function OpenFAQa(ID) {
	
	
	var obj = document.getElementById("myFAQ"+ID)
	
	
	//------------
	if (obj.style.visibility == "visible") {
		obj.style.visibility = "hidden"
		obj.style.display = "none"
		var obj = document.getElementById("COLLAPSE"+ID)
		if (obj !== null) {
			obj.src = "http://www.inhalesuite.com/image/faq_show.gif"
		}
	}
	else {
		obj.style.visibility = "visible"
		obj.style.display = ""
		var obj = document.getElementById("COLLAPSE"+ID)
		if (obj !== null) {
			obj.src = "http://www.inhalesuite.com/image/faq_hide.gif"
		}
	}
	
	
}

/*function OpenFAQa(ID) {
	
	//CLOSE THEM ALL
	for(i=0;i<1000;i++)
	{
		var obj = document.getElementById("myFAQ"+i)
		if (obj !== null) {
			obj.style.visibility = "hidden"
			obj.style.display = "none"
		}
		var obj = document.getElementById("COLLAPSE"+i)
		if (obj !== null) {
			obj.src = "http://www.inhalesuite.com/image/plus.gif"
		}
	}
	
	
	var obj = document.getElementById("myFAQ"+ID)
	
	
	//------------
	if (obj.style.visibility == "visible") {
		obj.style.visibility = "hidden"
		obj.style.display = "none"
	}
	else {
		obj.style.visibility = "visible"
		obj.style.display = ""
	}
	var obj = document.getElementById("COLLAPSE"+ID)
		if (obj !== null) {
			obj.src = "http://www.inhalesuite.com/image/minus.gif"
		}
	
}


/*
//Hide all
			ANS_1.style.visibility = "hidden"
			ANS_1.style.display = "none"
			ANS_2.style.visibility = "hidden"
			ANS_2.style.display = "none"
			ANS_3.style.visibility = "hidden"
			ANS_3.style.display = "none"
			ANS_4.style.visibility = "hidden"
			ANS_4.style.display = "none"
			ANS_5.style.visibility = "hidden"
			ANS_5.style.display = "none"
			ANS_6.style.visibility = "hidden"
			ANS_6.style.display = "none"
			ANS_7.style.visibility = "hidden"
			ANS_7.style.display = "none"
			ANS_8.style.visibility = "hidden"
			ANS_8.style.display = "none"
			ANS_9.style.visibility = "hidden"
			ANS_9.style.display = "none"
			//ANS_10.style.visibility = "hidden"
			//ANS_10.style.display = "none"
			//ANS_11.style.visibility = "hidden"
			//ANS_11.style.display = "none"
			ANS_99.style.visibility = "hidden"
			ANS_99.style.display = "none"
		
			//Show only the one selected
			switch (ID) {
				case "ANS_1" :
					ANS_1.style.visibility = "visible"
					ANS_1.style.display = ""
					break;
				case "ANS_2" :
					ANS_2.style.visibility = "visible"
					ANS_2.style.display = ""
					break;
				case "ANS_3" :
					ANS_3.style.visibility = "visible"
					ANS_3.style.display = ""
					break;
				case "ANS_4" :
					ANS_4.style.visibility = "visible"
					ANS_4.style.display = ""
					break;
				case "ANS_5" :
					ANS_5.style.visibility = "visible"
					ANS_5.style.display = ""
					break;
				case "ANS_6" :
					ANS_6.style.visibility = "visible"
					ANS_6.style.display = ""
					break;
				case "ANS_7" :
					ANS_7.style.visibility = "visible"
					ANS_7.style.display = ""
					break;
				case "ANS_8" :
					ANS_8.style.visibility = "visible"
					ANS_8.style.display = ""
					break;
				case "ANS_9" :
					ANS_9.style.visibility = "visible"
					ANS_9.style.display = ""
					break;
				//case "ANS_10" :
				//	ANS_10.style.visibility = "visible"
				//	ANS_10.style.display = ""
				//	break;
				case "ANS_11" :
					ANS_11.style.visibility = "visible"
					ANS_11.style.display = ""
					break;
				case "ANS_99" :
					ANS_99.style.visibility = "visible"
					ANS_99.style.display = ""
					break;
				
			}*/
			
	function OPEN_DA_TABLE_MON(ID) {
		
		var obj = document.getElementById("DATABLE"+ID)
	
	
		//------------
		if (obj.style.visibility == "visible") {
			obj.style.visibility = "hidden"
			obj.style.display = "none"
			var obj = document.getElementById("COLLAPSE"+ID)
			if (obj !== null) {
				obj.src = "images/plus.gif"
			}
		}
		else {
			obj.style.visibility = "visible"
			obj.style.display = ""
			var obj = document.getElementById("COLLAPSE"+ID)
			if (obj !== null) {
				obj.src = "images/minus.gif"
			}
		}
	}