return true;
}
-
-
-
-
-
-
//Function returns false if v is not a number (if maybenull is 0, it also returns an error if the number is 0)
function isNum(v,maybenull) {
var n = new Number(v.value);
if (result == '1') {
return MSG_BUDGET_PARENT_ALLOCATION;
} else if (result == '2') {
- return MSG_BUDGET_PARENT_ALLOCATION;
+ return MSG_BUDGET_PERIOD_ALLOCATION;
} else {
return false;
}
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript">
//<![CDATA[
-var MSG_BUDGET_PARENT_ALLOCATION = _("- Fund amount exceeds parent allocation\n");
-var MSG_PARENT_BENEATH_BUDGET = _("- New budget-parent is beneath budget\n");
+var MSG_BUDGET_PARENT_ALLOCATION = "- " + _("Fund amount exceeds parent allocation") + "\n";
+var MSG_BUDGET_PERIOD_ALLOCATION = "- " + _("Fund amount exceeds period allocation") + "\n";
+var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") + "\n";
//]]>
</script>