<!-- Begin to hide script contents from old browsers
function checkForNull (str)
   {
   // If the string is null, then return a blank string else returned the string trimmed
   if (str == null)
      {
      return("");
      }
   else
      {
      return(Trim(str));
      }
   }

function isNumeric (str)
   {
   var integersOnly = "0123456789";

   // Check to make sure they only entered numbers
   for (var i = 0; i < str.length; i++)
       {
       if (integersOnly.indexOf(str.charAt(i)) == -1)
          {
          return(false);
          }
       }

   return(true);
   }
   
function getTheCheckedValue(radioarray)
   {
   for (i = 0; i < radioarray.length; i++)
       {
       if (radioarray[i].checked)
          {
          return(radioarray[i].value);
          }
       }
   return("");
   }

function getTheSelectedValue(optionSelected)
   {
   return(optionSelected.options[optionSelected.selectedIndex].value);
   }

function Trim (orgString)
   {
   return LTrim(RTrim(orgString))
   }

function LTrim (orgString)
   {
   return orgString.replace(/^\s+/,'');
   }

function RTrim(orgString)
   {
   return orgString.replace(/\s+$/,'');
   }

function pad(str, length)
   {
   // Pad the input string with zero's
   while (str.length < length)
      {
      str = '0' + str;
      }

   return(str);
   }
// End the hiding here -->
