<!-- // Begin

	function RoundedTotal()
	{
	// make sure only numbers and a decimal are included
	if (document.ePayWay.ewayTotalAmount.value != ""){
		var valid = '0123456789.'
 		var ok = "yes";
 		var temp;
 		for (var i=0; i<document.ePayWay.ewayTotalAmount.value.length; i++) {
 		temp = "" +
		  document.ePayWay.ewayTotalAmount.value.substring(i, (i+1));
		if (valid.indexOf(temp) == "-1") {
			ok = "no";
 		}
		if (ok == 'no'){
			alert('Quoted Price must contain numbers only.\nDollar sign $ not permitted.');
			return false;
		}
		}
	}
	// reject if no value is entered
	else {return false;};
	// make sure there is a decimal in the number
	if (document.ePayWay.ewayTotalAmount.value.indexOf(".") == -1) {
		alert ("Quoted Price must be in format " +
		"##.## \nwithout any $ sign and with cents");
		return false;
	}
	//make sure there are two numbers after the decimal
	var value = document.ePayWay.ewayTotalAmount.value.split(".");
	if ((value[1].length) != 2) {
		alert ("Total Amount must be in format " +
		"##.## \nwithout any $ sign and with cents");
		return false;
	}
	var value = parseInt(document.ePayWay.ewayTotalAmount.value * 100);
	document.ePayWay.ewayTotalAmount.value = value;
	return true;
	}

// -->
