function checkFormInput(theForm,field) {

  for (var argsCounter = 0; argsCounter < arguments.length; argsCounter = argsCounter + 2) {

    if (!validRequired(arguments[argsCounter],arguments[argsCounter+1]))

      return false;

  }

  return true;

}


function validRequired(formField,fieldLabel) {

  var result = true;

  if (formField.value == "") {

    alert('Please enter a value for the "' + fieldLabel +'" field.');

    formField.focus();

    result = false;

  }

  return result;

}


/* Send a confirmation OK/Cancel box to the screen (pd) */
function pdURLareYouSureXB(url,message) {

  if (self.confirm(message)) {

    window.location.href = url;

  }

}

