<?

if(!$authorization_color) {
	if($authorization_status == "pending" || !$authorization_status) {
		$authorization_color = "#AAAAAA";
	} else if($authorization_status == "approved") {
		$authorization_color = "#00AA00";
	} else if($authorization_status == "declined") {
		$authorization_color = "#AA0000";
	}
}


if(!$authorization_banner) {
	if($authorization_status == "pending" || !$authorization_status) {
		$authorization_banner = "Voice Authorization";
	} else if($authorization_status == "approved") {
		$authorization_banner = "Approved!";
	} else if($authorization_status == "declined") {
		$authorization_banner = "Declined.";
	}
}



if(!$authorization_message) {	
	if($authorization_status == "pending" || !$authorization_status) {
		$authorization_message = "<span class='pre_authorization_instructions' style='font-size:14px;'>
1.  Click on the \"Voice Authorize Now\" button below...<br>
<br>
2.  The Voice Authorization screen will immediately appear.<br>
<br>
3.  Then follow the simple, step-by-step Voice Authorization instructions.<br>
<br>
<br>
<nobr><span style='color:#666666; font-size:13px; font-weight:normal;'>The <b>Automated Voice Authorization</b> is <u>very easy</u>, and take ~15 seconds to complete.<span></nobr>
</span>";

	} else if($authorization_status == "approved") {
		$authorization_message = "Approved!";
	} else if($authorization_status == "declined") {
		$authorization_message = "Declined.";
	}
}


echo "
<tr id='" . $row_authorization_id_1 . "'>
	<td colspan='" . $TABLE_VIII_colspan . "' class='TABLE_VIII_ROW_authorization_td_1'><font color='" . $authorization_color . "'>" . $authorization_banner . "</font></td>
</tr>

<tr id='" . $row_authorization_id_2 . "'>
	<td colspan='" . $TABLE_VIII_colspan . "' class='TABLE_VIII_ROW_authorization_td_2'>" . $authorization_header . "</td>
</tr>

<tr id='" . $row_authorization_id_3 . "'>
	<td colspan='" . $TABLE_VIII_colspan . "' class='TABLE_VIII_ROW_authorization_td_3'>" . $authorization_message . "</td>
</tr>

";



## clear vars:
$authorization_status = "";
$authorization_color = "";
$authorization_message = "";
$authorization_banner = "";
$row_authorization_id_1 = NULL;
$row_authorization_id_2 = NULL;
$row_authorization_id_3 = NULL;
?>
