$issueLog->issueStartDate = date("Y-m-d", strtotime($_POST['issueStartDate']));
     } else {
         $issueLog->issueStartDate = '';
     }
     if ($_POST['issueEndDate']) {
         $issueLog->issueEndDate = date("Y-m-d", strtotime($_POST['issueEndDate']));
     } else {
         $issueLog->issueEndDate = '';
     }
     $issueLog->organizationID = $_POST['organizationID'];
     $issueLog->issueLogTypeID = $_POST['issueLogTypeID'];
     $issueLog->updateLoginID = $loginID;
     $issueLog->updateDate = date('Y-m-d H:i:s');
     $issueLog->noteText = $_POST['noteText'];
     try {
         $issueLog->save();
     } catch (Exception $e) {
         echo $e->getMessage();
     }
     break;
 case 'deleteInstance':
     $className = $_GET['class'];
     $deleteID = $_GET['id'];
     //since we're using MyISAM which doesn't support FKs, must verify that there are no records of children or they could disappear
     $instance = new $className(new NamedArguments(array('primaryKey' => $deleteID)));
     $numberOfChildren = $instance->getNumberOfChildren();
     echo "<font color='red'>";
     if ($numberOfChildren > 0) {
         //print out a friendly message...
         echo "Unable to delete  - this " . strtolower(ereg_replace("[A-Z]", " \\0", lcfirst($className))) . " is in use.  Please make sure no organizations are set up with this information.";
     } else {