function goodForm()
{
	if (document.forms[0].listprice1.value.length == 0)
	{
		alert("List Price is a required field.");
		return false;
	}
	if (document.forms[0].listprice2.value.length == 0)
	{
		alert("List Price is a required field.");
		return false;
	}
	if (!validNum(document.forms[0].listprice1.value,0,"Minimum List Price"))
		return false;
	if (!validNum(document.forms[0].listprice2.value,0,"Maximum List Price"))
		return false;
	if (!validNum(document.forms[0].zipcode.value,5,"Zip Code"))
		return false;
	return true;
}
//-----------------------------
function validNum(str,lgt,name)
{
	if (str.length == 0) return true;
	for (var i=0; i< str.length; i++)
	{
		oneChar = str.charAt(i);
		if ("0123456789".indexOf(oneChar) == -1)
		{
			alert("This is not a valid numeric input for " + name);
			return false;
		}
	}
	if (lgt != 0 && str.length != lgt)
	{
		alert("This is not a valid numeric input for " + name);
		return false;
	}
	return true;
}

