/* This fuction will calculate the total of one USER ENTERED field "Qty" and enter it into another field "Item01Total" */
function asMoney(num) {
	num = num.toString().replace(/\$|\,/g,'');
	if(isNaN(num)) num = "0";
	cents = Math.floor((num*100+0.5)%100); 
	num = Math.floor(num).toString();
	if(cents < 10) cents = "0" + cents; 
	return (num + '.' + cents); 
}

function addSubtotal(){
	var ad1 = document.liveForm.Item01Total.value*1
	var sub=asMoney(ad1)

	return sub
}

function addQty(){
	var qt = document.liveForm.Qty.value*1
	return qt
}



function checkOrder() {

		document.liveForm.subtot.value=addSubtotal()
		document.liveForm.qtytot.value=addQty()
		
			
	return 0

}
