function Tab2($adminForm, $arShedule)
{
    $adminForm->BeginCustomField("HOURS", GetMessage("SUP_HOURS"), false);
    Tab2_JS();
    ?>
		
	<tr>
		<td colspan="2" align="center">
			<table border="0" cellspacing="0" cellpadding="0" width="50%" class="internal">
	<?php 
    $arrSO = array("24H" => "SUP_24H", "CLOSED" => "SUP_CLOSED", "CUSTOM" => "SUP_CUSTOM");
    for ($i = 0; $i <= 6; $i++) {
        ?>
		<tr valign="top">
			<td class="heading"><b><?php 
        echo GetMessage("SUP_WEEKDAY_{$i}");
        ?>
</b></td>
		<?php 
        foreach ($arrSO as $v => $l) {
            echo '<td align="center" nowrap>' . InputType("radio", "ArrShedule[{$i}][OPEN_TIME]", $v, $arShedule[$i]["OPEN_TIME"]) . '&nbsp;' . GetMessage($l) . '</td>';
        }
        ?>
			<td align="center" nowrap>
				<table border="0" cellspacing="0" cellpadding="0" width="100%" id="table<?php 
        echo $i;
        ?>
">
		
		<?php 
        $arrREQ = array("CClockAJAXData" => array("i" => $i));
        $j = -1;
        foreach ($arShedule[$i]["CUSTOM_TIME"] as $k => $v) {
            $j++;
            $arrREQ["CClockAJAXData"]["j"] = $j;
            $arrREQ["CClockAJAXData"]["ValF"] = $v["MINUTE_FROM"];
            $arrREQ["CClockAJAXData"]["ValT"] = $v["MINUTE_TILL"];
            echo "<tr>" . CSupportPage::ShowClock($arrREQ) . "</tr>";
        }
        ?>
				</table>
			</td>
		</tr>
		<?php 
    }
    ?>
			</table>
		</td>
	</tr>
				
	<?php 
    $adminForm->EndCustomField("HOURS");
}
function Tab2($adminForm, $arShedule)
{
    $adminForm->BeginCustomField("HOURS", GetMessage("SUP_HOURS"), false);
    Tab2_JS();
    ?>
		
	<tr>
		<td colspan="2" align="center">
			<table border="0" cellspacing="0" cellpadding="0" width="50%" class="internal">
	<?php 
    $arrSO = array("24H" => "SUP_24H", "CLOSED" => "SUP_CLOSED", "CUSTOM" => "SUP_CUSTOM");
    for ($i = 0; $i <= 6; $i++) {
        ?>
		<tr valign="top">
			<td class="heading"><b><?php 
        echo GetMessage("SUP_WEEKDAY_{$i}");
        ?>
</b></td>
		<?php 
        foreach ($arrSO as $v => $l) {
            echo '<td align="center" nowrap>' . InputType("radio", "ArrShedule[{$i}][OPEN_TIME]", $v, $arShedule[$i]["OPEN_TIME"], false, '&nbsp;' . GetMessage($l), 'onClick="HideRC(this, \'table' . $i . '\')"') . '</td>';
        }
        $styleV = " visibility: hidden;";
        if ($arShedule[$i]["OPEN_TIME"] == "CUSTOM") {
            $styleV = "";
        }
        ?>
			<td align="center" nowrap>
				<table border="0" cellspacing="0" cellpadding="0" style="margin-top:-6px;width:1%!important;<?php 
        echo $styleV;
        ?>
" id="table<?php 
        echo $i;
        ?>
">
		
		<?php 
        /*$arrREQ = array(
        			"CClockAJAXData" => array(
        				"i" => $i,
        			),
        		);*/
        $j = -1;
        $styleFirstRow = ' style="padding-top:2px !important;"';
        foreach ($arShedule[$i]["CUSTOM_TIME"] as $k => $v) {
            $j++;
            /*$arrREQ["CClockAJAXData"]["j"] = $j;
            		$arrREQ["CClockAJAXData"]["ValF"] = $v["MINUTE_FROM"];
            		$arrREQ["CClockAJAXData"]["ValT"] = $v["MINUTE_TILL"];
            		echo "<tr>" . CSupportPage::ShowClock($arrREQ) . "</tr>";*/
            $trID = "td_" . $i . $j;
            echo '<tr id="' . $trID . '">
				<td' . $styleFirstRow . ' align="left">' . '<input id="MINUTE_FROM_' . $i . '_' . $j . '" type="text" title="" size="4" value="' . $v["MINUTE_FROM"] . '" name="ArrShedule[' . $i . '][CUSTOM_TIME][' . $j . '][MINUTE_FROM]">' . '<nobr>&nbsp;-&nbsp;</nobr>' . '<input id="MINUTE_TILL_' . $i . '_' . $j . '" type="text" title="" size="4" value="' . $v["MINUTE_TILL"] . '" name="ArrShedule[' . $i . '][CUSTOM_TIME][' . $j . '][MINUTE_TILL]">' . '<a title="' . GetMessage("MAIN_ADMIN_MENU_COPY") . '" href="javascript: Copy(' . $i . ',' . $j . ')"><img src="/bitrix/images/support/copy.gif" style="vertical-align:middle" width="15" height="15" border=0 hspace="2" alt="' . GetMessage("SUP_ADMIN_ROW_COPY") . '"></a>' . ($j > 0 ? '<a href="javascript: DeleteTabRow(\'' . $trID . '\')"><img src="/bitrix/images/support/cross.png" style="vertical-align:middle" width="15" height="15" border=0 hspace="2" alt="' . GetMessage("SUP_ADMIN_ROW_DELETE") . '"></a>' : '') . '</td></tr>';
            $styleFirstRow = "";
        }
        ?>
				</table>
			</td>
		</tr>
		<?php 
    }
    ?>
			</table>
		</td>
	</tr>
				
	<?php 
    $adminForm->EndCustomField("HOURS");
}