function calcPYStore() {
var form = document.pyStore;
var hftwDVD1 = checkStoreValue(form.cbPYSHFTWOne,29.95);
var hftwDVD2 = checkStoreValue(form.cbPYSHFTWTwo,29.95);
var hftwDVD3 = checkStoreValue(form.cbPYSHFTWThree,29.95);
var hftwCook = checkStoreValue(form.cbPYSHFTWCook,39.95);
var sandmanDVD = checkStoreValue(form.cbPYSSandman,14.95);

var calcPYStoreTotal = hftwDVD1+hftwDVD2+hftwDVD3+hftwCook+sandmanDVD;
var fmtPYStoreTotal = FmtPrice(calcPYStoreTotal);
form.pyStoreTotal.value = fmtPYStoreTotal;
form.pyStoreHiddenTotal.value = fmtPYStoreTotal;
return calcPYStoreTotal;
}

function checkStoreValue(cbCheck,Price) {
if (cbCheck.checked==true) {
var Price = Price;
}
else {
var Price = 0.00;
}
return Price;
}

function FmtPrice(result) {
                    result = ConvNumber(result, 2, ".");
                    return result;
}

function ConvNumber(expr, decplaces, point) {

	var str = "" + Math.round(eval(expr) * Math.pow(10,decplaces));
	while (str.length <= decplaces) {
		str = "0" + str;
	}
	var decpoint = str.length - decplaces;
	return (str.substring(0,decpoint) + point + str.substring(decpoint,str.length));
}

function ValidateNum(checkVal) {

	returnVal = parseFloat(checkVal);

	if(isNaN(returnVal)) return false;
	else if(returnVal < 0) return false;
	else if(Math.floor(returnVal) != returnVal) return false;
	else return true;
}