<!--
function form_validator(theform)
{
var alertsay = ""; // define for long lines
if (theform.txtMessageID.selectedIndex <= 0)
{
alert("Please select a year.");
theform.txtMessageID.focus();
return (false);
}
// check to see if the field is blank
if (theform.amount.value == "")
{
alert("You must enter a value for pound.");
theform.amount.focus();
return (false);
}
// only allow numbers to be entered
var checkOK = "0123456789.";
var checkStr = theform.amount.value;
var allValid = true;
var allNum = "";
for (i = 0;  i < checkStr.length;  i++)
{
ch = checkStr.charAt(i);
for (j = 0;  j < checkOK.length;  j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
if (ch != ",")
allNum += ch;
}
if (!allValid)
{
alert("Please enter a number in the \"pound\" field.");
theform.amount.focus();
return (false);
}
// require a minimum of 0.01 and a maximum of 999999999999999
var chkVal = allNum;
//var prsVal = parseInt(allNum);
var prsVal = (allNum);
if (chkVal != "" && !(prsVal >= "0.01" && prsVal <= "999999999999999"))
{
	alertsay = "Please enter a value greater than or "
	alertsay = alertsay + "equal to \"0.01\" and less than or "
	alertsay = alertsay + "equal to \"999999999999999\" in the \"amount\" field."
alert(alertsay);
theform.amount.focus();
return (false);
}
return (true);
}
//-->