function checkMTMFields()
{

	var errs = 0;
	var errMessage = "";
	var c = document.getElementById("color_11");
	var w = document.getElementById("width");
	var l = document.getElementById("length");
	var m = document.getElementById("mount");
	var q = document.getElementById("quantity_11");

	if (c.value == "select") {
		errMessage += "Select a color before clicking submit\r\n";
		errs++;
	}
	if ((w.value.length < 1) || (parseInt(w.value) <= 0)) {
		errMessage += "Specify a width before clicking submit\r\n";
		errs++;
	}
	if ((l.value.length < 1) || (parseInt(l.value) <= 0)) {
		errMessage += "Specify a length before clicking submit\r\n";
		errs++;
	}
	if (m.value == "select") {
		errMessage += "Select a mount before clicking submit\r\n";
		errs++;
	}
	if ((q.value.length < 1) || (parseInt(q.value) <= 0)) {
		errMessage += "Specify a quantity before clicking submit\r\n";
		errs++;
	}

	if (errs > 0) {
		window.alert(errMessage);
		return false;
	}

	return true;
}

function isNumber(inputVal)
{
	//oneDecimal = false;
	inputStr = inputVal.toString();
	var num = parseInt(inputStr);
	if (isNan(num)) {
		return false;
	}
	//for (var i = 0; i < inputStr.length; i++) {
	//	var oneChar = inputStr.charAt(i);
	//	if (i == 0 && oneChar == "-") {
	//		continue;
	//	}
	//	if (oneChar == "." && !oneDecimal) {
	//		oneDecimal = true;
	//		continue;
	//	}
	//	if (oneChar < "0" || oneChar > "9") {
	//		return false;
	//	}
	//}
	return true;
}
