$organizationArray = $resource->getOrganizationArray();
    $organizationData = $organizationArray[0];
    if ($organizationData['organizationID']) {
        $organizationID = $organizationData['organizationID'];
        $organization = new Organization(new NamedArguments(array('primaryKey' => $organizationID)));
        $orgIssues = $organization->getIssues();
        foreach ($orgIssues as $issue) {
            array_push($issues, $issue);
        }
        $organizationResourcesArray = $resource->getSiblingResourcesArray($organizationID);
    }
}
//our $organizationID could have come from the $_GET or through the resource
if ($organizationID) {
    $downtimeObj = new Downtime();
    $downtimeTypeNames = $downtimeObj->getDowntimeTypesArray();
    $defaultStart = date("Y-m-d\\TH:i");
    $defaultEnd = date("Y-m-d\\TH:i", strtotime("+1 day"));
    ?>

<form id='newDowntimeForm'>
<?php 
    if ($isOrgDowntime) {
        echo '<input type="hidden" name="sourceOrganizationID" value="' . $organizationID . '" />';
    } else {
        echo '<input type="hidden" name="sourceResourceID" value="' . $resourceID . '" />';
    }
    ?>
	<table class="thickboxTable" style="width:98%;background-image:url('images/title.gif');background-repeat:no-repeat;">
		<tr>
			<td colspan="2">