<script type="text/javascript">
///////////////////////////////////////////////////////////////////////
// Function for checking royalty report form before it is submitted.
///////////////////////////////////////////////////////////////////////
function checkThisRoyaltyForm(thisForm) {
  if (thisForm.unadjustedgross.value == '') {
    alert("Please enter your Total Unadjusted Gross.");
    thisForm.unadjustedgross.focus();
    return false;
  }

  if ((thisForm.unadjustedgross.value < 0) || (isNaN(Number(thisForm.unadjustedgross.value)))) {
    alert("Please enter a valid value for your Total Undajusted Gross.");
    thisForm.unadjustedgross.focus();
    return false;
  }

  if (thisForm.taxamount.value == '') {
    alert("Please enter your Total Collected Sales Tax.");
    thisForm.taxamount.focus();
    return false;
  }

  if ((thisForm.taxamount.value < 0) || (isNaN(Number(thisForm.taxamount.value)))) {
    alert("Please enter a valid value for your Total Collected Sales Tax.");
    thisForm.taxamount.focus();
    return false;
  }

return true;
}


</script>