<?php require_once('Connections/osense.php'); ?>
<?php
session_start();
$MM_authorizedUsers = "";
$MM_donotCheckaccess = "true";

// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { 
  // For security, start by assuming the visitor is NOT authorized. 
  $isValid = False; 

  // When a visitor has logged into this site, the Session variable MM_Username set equal to their username. 
  // Therefore, we know that a user is NOT logged in if that Session variable is blank. 
  if (!empty($UserName)) { 
    // Besides being logged in, you may restrict access to only certain users based on an ID established when they login. 
    // Parse the strings into arrays. 
    $arrUsers = Explode(",", $strUsers); 
    $arrGroups = Explode(",", $strGroups); 
    if (in_array($UserName, $arrUsers)) { 
      $isValid = true; 
    } 
    // Or, you may restrict access to only certain users based on their username. 
    if (in_array($UserGroup, $arrGroups)) { 
      $isValid = true; 
    } 
    if (($strUsers == "") && true) { 
      $isValid = true; 
    } 
  } 
  return $isValid; 
}

$MM_restrictGoTo = "login.php";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {   
  $MM_qsChar = "?";
  $MM_referrer = $_SERVER['PHP_SELF'];
  if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
  if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0) 
  $MM_referrer .= "?" . $QUERY_STRING;
  $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
  header("Location: ". $MM_restrictGoTo); 
	echo(" forbit");
  exit;
}
?>
<?php
$colname_nodegrp = "1";
if (isset($_SESSION['MM_Username'])) {
  $colname_nodegrp = (get_magic_quotes_gpc()) ? $_SESSION['MM_Username'] : addslashes($_SESSION['MM_Username']);
}
#mysql_select_db($database_osense, $osense);
$query_nodegrp = sprintf("SELECT * FROM gateway WHERE loginid = '%s' ORDER BY group_name ASC", $colname_nodegrp);
$nodegrp = mysqli_query( $osense,$query_nodegrp);# or die(mysql_error());
$row_nodegrp = mysqli_fetch_assoc($nodegrp);
$totalRows_nodegrp = mysqli_num_rows($nodegrp);

$colname_ufiles = "1";
if (isset($_SESSION['MM_Username'])) {
  $colname_ufiles = (get_magic_quotes_gpc()) ? $_SESSION['MM_Username'] : addslashes($_SESSION['MM_Username']);
}
#mysql_select_db($database_osense, $osense);
$query_ufiles = sprintf("SELECT * FROM userfiles WHERE (loginid = '%s' and upfile REGEXP 'exe$')", $colname_ufiles);
$ufiles = mysqli_query($osense,$query_ufiles);# or die(mysql_error());
$row_ufiles = mysqli_fetch_assoc($ufiles);
$totalRows_ufiles = mysqli_num_rows($ufiles);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Schedule new jobs</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="windowfiles/dhtmlwindow.css" type="text/css" />
<script type="text/javascript" src="windowfiles/dhtmlwindow.js"></script>
<style type="text/css">
<!--
.style1 {
	font-size: xx-large;
	font-weight: bold;
	color: #336666;
}
.border {
	border: medium solid #336666;
}
-->
</style>

<style>
<!--
#popup {
    position: absolute;
    display:none;
        z-index: 100;
}
-->
</style>


<style type="text/css" rel="stylesheet">
<!--
#starttime { 
background-image: url(timepicker/clock.gif);
background-repeat: no-repeat;
background-position: right;
padding-right: 3px;
}
-->
</style>

<style type="text/css" rel="stylesheet">
<!--
#expsubmit { background-color:#E0F8E0; font-size: 120%; 
        padding: 1px; font-weight: bold; }
-->
</style>
<style>
	* {font-family:Arial, Helvetica, sans-serif;
		font-size:8pt;}
		
	/* table list */
	.table_list {border-collapse:collapse;
		border:solid #cccccc 1px;
		width:100%;}
	
	.table_list td {padding:5px;
		border:solid #efefef 1px;}
	
	.table_list th {background:#75b2d1;
		padding:5px;
		color:#ffffff;}
	
	.table_list tr.odd {background:#e1eff5;}
	
	.time_picker_div {padding:5px;
		border:solid #999999 1px;
		background:#ffffff;}
		
</style>

<link rel="stylesheet" type="text/css" href="sdmenu/sdmenu.css" />
<script type="text/javascript" src="sdmenu/sdmenu.js"></script>
<script type="text/javascript">
	// <![CDATA[
	var myMenu;
	window.onload = function() {
		myMenu = new SDMenu("my_menu");
		myMenu.init();
	};
	// ]]>
</script>

  <!-- calendar stylesheet -->
  <link rel="stylesheet" type="text/css" media="all" href="jscalendar/calendar-green.css" title="calendar-green" />

  <!-- main calendar program -->
  <script type="text/javascript" src="jscalendar/calendar.js"></script>

  <!-- language for the calendar -->
  <script type="text/javascript" src="jscalendar/lang/calendar-en.js"></script>

  <!-- the following script defines the Calendar.setup helper function, which makes
       adding a calendar a matter of 1 or 2 lines of code. -->
  <script type="text/javascript" src="jscalendar/calendar-setup.js"></script>
  
<!--<script language="javascript" src="timepicker/mootools.v1.11.js"></script>

<script language="javascript" src="timepicker/nogray_time_picker_min.js"></script>
<script language="javascript">
	window.addEvent("domready", function (){
		var tp1 = new TimePicker('time1_picker', 'time1', 'time1_toggler', {format24:true});
	});
</script> -->

<script type="text/javascript" src="jquery-1.5.2.js"></script>

<link href="modals/SyntaxHighlighter.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="modals/shCore.js" language="javascript"></script>
<script type="text/javascript" src="modals/shBrushJScript.js" language="javascript"></script>
<script type="text/javascript" src="modals/ModalPopups.js" language="javascript"></script>

<script type="text/javascript" src="nodestatus.js"></script>

 <style type="text/css">
            .ui-timepicker-div .ui-widget-header{ margin-bottom: 8px; }
            .ui-timepicker-div dl{ text-align: left; }
            .ui-timepicker-div dl dt{ height: 25px; }
            .ui-timepicker-div dl dd{ margin: -25px 0 10px 65px; }
            .ui-timepicker-div td { font-size: 90%; }
 </style> 
<!--<link href="datepicker.css" rel="stylesheet" type="text/css" /> -->
<link href="jqueryui/css/smoothness/jquery-ui-1.8.11.custom.css" rel="stylesheet" type="text/css" />
<!--<script type="text/javascript" src="jqueryui/js/jquery-1.5.1.min.js"></script> -->
<script type="text/javascript" src="jqueryui/js/jquery-ui-1.8.11.custom.min.js"></script>
<script type="text/javascript" src="jquery-ui-timepicker-addon.js"></script>

<script type="text/javascript">	

    $(function() {
        $('#starttime').timepicker({
            timeFormat: 'hh:mm', 
            hourGrid: 4,
            minuteGrid: 10
        });
    });

    /* 
     window.onload = function() {
        var time_input      = document.getElementById('starttime');
        time_input.onclick  = function() { 
            $('#starttime').timepicker( {timeFormat: 'hh:mm'} );
        }
    } 
    function clickStartTime() {
        // alert("hi");
        // $('#starttime').attr('value', "abcd");
        $('#starttime').timepicker({
                  timeFormat: 'hh:mm'
                 //     ampm: false  
                 //   hourMin: 8,
                 //   hourMax: 16
        });
    }
    */
</script>

<!-- check box selector -->
<script type="text/javascript">	
    function SetAllCheckBoxes(FormName, FieldName, CheckValue) {
	    //var objCheckBoxes = document.forms[FormName].elements[FieldName];
        var objCheckBoxes = document.getElementsByName('selectNode');
	    if(!objCheckBoxes)
		    return;
    	var countCheckBoxes = objCheckBoxes.length;
    	if(!countCheckBoxes)
    		objCheckBoxes.checked = CheckValue;
	    else
    		// set the check value for all check boxes
	    	for(var i = 0; i < countCheckBoxes; i++) {
    		    if(!objCheckBoxes[i].disabled) 
                    objCheckBoxes[i].checked = CheckValue;
            }
    }
</script>

<script type="text/javascript">	
function SetAllCheckBoxesIndCol(FormName, FieldName, CheckValue, rid) {

	var objCheckBoxes = document.getElementsByName('selectNode');

		if(!objCheckBoxes)
			return;
		var countCheckBoxes = objCheckBoxes.length;
		if(!countCheckBoxes)
			objCheckBoxes.checked = CheckValue;
		else
			// set the check value for all check boxes
			for(var i = 0; i < countCheckBoxes; i++) {
	            if (rid == objCheckBoxes[i].attributes['rid'].nodeValue) {
			        if(objCheckBoxes[i].disabled) {
	                } else {
	                    objCheckBoxes[i].checked = CheckValue;
	                }
	            }
	        }
}
</script>

<script type="text/javascript">	
	function SetAllCheckBoxesIndRow(FormName, FieldName, CheckValue, id) {

	var objCheckBoxes = document.getElementsByName('selectNode');

	if(!objCheckBoxes)
		return;
	var countCheckBoxes = objCheckBoxes.length;
	if(!countCheckBoxes)
		objCheckBoxes.checked = CheckValue;
	else {
		// set the check value for all check boxes
	  for(var i = 0; i < countCheckBoxes; i++) {
        var mod13 = objCheckBoxes[i].id % 17;
        if(id == '77') {
          if (CheckValue == true) { 
            if (0 == (mod13 % 2)){
              if(!objCheckBoxes[i].disabled) objCheckBoxes[i].checked = true;
            } else {
              if(!objCheckBoxes[i].disabled) objCheckBoxes[i].checked = false;
            }
          } else {
            if (0 == (mod13 % 2)){
              if(!objCheckBoxes[i].disabled) objCheckBoxes[i].checked = false;
            } else {
              if(!objCheckBoxes[i].disabled) objCheckBoxes[i].checked = true;
            }
          }
        } else {
          if(id == mod13) {  
            if(!objCheckBoxes[i].disabled) objCheckBoxes[i].checked = CheckValue;
          }            
        }
	}//end of checkbox obj iteration
  }
}
</script>

<script type="text/javascript">	
	function checker() {
	   var controlIndex;
	   var element;
	   var numberOfControls = document.uploadform.length;
	   var compSpec = "";
	   var i = 0;
	   for (controlIndex = 0; controlIndex < numberOfControls; controlIndex++) {
		  element = document.uploadform[controlIndex];
		  if (element.type == "checkbox")
		  {
			 if (element.checked == true && element.name == 'selectNode')
			 {
			 	if (i == 0)
				{
				    compSpec = compSpec + element.value;
				    i = 1;
				}
				else
				{compSpec = compSpec + "_" + element.value;}
			 }
		  }
	   }

	   document.uploadform.nodegrp.value = compSpec
	   if (document.uploadform.ufiles.value == "-1") {
    	   document.uploadform.action = "u_file.php";
	   }  
	}
</script>

<script type="text/javascript">
	function showMe (it, box) {
	    var vis = (box.checked) ? "block" : "none";
	    document.getElementById('injector').style.display = vis;
	}
</script>


<style type="text/css">
<!--
.STYLE9 {color: #000000}
.STYLE14 {
	color: #336666;
	font-size: xx-large;
	font-style: italic;
}
.STYLE70 {font-size: 8pt}
.STYLE71 {color: #000000; font-weight: bold; font-size: 8pt; }
.STYLE96 {color: #FFFFFF; font-weight: bold; font-size: 8pt; }
.STYLE106 {font-size: 8pt; font-weight: bold; }
.STYLE113 {font-size: 8pt; color: #000099; font-weight: bold; }
.STYLE114 {font-size: 8pt; color: #FFCC66; font-weight: bold; }
.STYLE118 {color: #990000; font-size: 10pt; }
.STYLE120 {color: #000099; font-size: 9pt;}
.STYLE121 {font-size: 12pt}
.STYLE124 {font-size: 0.5cm}
.STYLE125 {color: #000066}
.STYLE128 {
	color: #003300;
	font-weight: bold;
	font-style: italic;
}
.STYLE129 {color: #FFFF99; font-size: 8pt; font-weight: bold; }
.STYLE131 {color: #FFFFFF}
.STYLE133 {color: #00009C}
-->
</style>

</head>

<body>

<div id="popup"><img src="ttpp.jpg"></div>

<table width="1113" height="982" align="center" class="border">
  <tr>
    <td width="163"><div align="center"><img src="wname.jpg" width="150"><span class="style1"> </span></div></td>
    <td width="697"><div align="center"><span class="style1">NetEye</span></div></td>
    <td width="231"><div align="center"><span class="style1"><img src="wicon.jpg" width="113" height="58"></span></div></td>
  </tr>
  <tr height="640">
    <td width="163" height="908">
	<div style="float: left" id="my_menu" class="sdmenu">
      <div>
        <span>NetEye</span>
        <a href="home.php">Home</a>
        <a href="topology.php">Topology</a>
		<!--a href="registration.php">Registration Form</a-->
      </div>
      <div>
		<span>MySpace</span>
        <?php
		if ($_SESSION['ilog']!="yes")
		{
		?> 
		<a href="login.php">Login</a>
		<?php
		}
		else
		{
		?> 
		<!--a href="logout.php">Logout</a-->
		<?php
		}
		?> 
		<a href="sjobs.php">Schedule jobs</a>
        <a href="myjobs.php">Manage jobs</a>
        <a href="nodebusy.php">Doctor (node status)</a>
        <a href="cnodegrp1.php">Create node group</a>
        <a href="logout.php">Logout</a>
       <!--a href="sjobs1.php">Schedule new tier2 jobs</a-->
        <!--a href="myjobs1.php">Manage tier2 jobs</a-->
      </div>
       	<?php
	if ($_SESSION['MM_UserGroup']==1)		{ ?>
       <div>
        <span>AdminSpace</span>
		<a href="inlogadd.php">Create Users</a>
		<a href="regman.php">Manage Registration</a>      </div>
	<?php	}	?> 

      <div> <!--class="collapsed">-->
        <span>Support</span>
        <a href=http://www.cs.wayne.edu/~hzhang/group/index.html>DNC Research Group</a>      
	<a href="achecknodes.php">Check failed emotes</a>
</div>
    </div>	</td>
	<td colspan="2"><div align="center"><span class="STYLE118">Welcome  <?php echo $_SESSION['MM_Username'] ?></span> 
                    </div>
	  <form enctype="multipart/form-data" name="uploadform" method="post" action="u_file.php" onsubmit="return checker()">
	    <table width="889" height="774" border="0" align="center" class="border">

          <tr>
            <td height="22" colspan="2" class="STYLE120"> <p class="STYLE120">Start Date: </p>            </td>
            <td colspan="2"><p>
              <input name="sdate" align="center" type="text" id="sdate" value= <?php echo date("Y-m-d"); ?> />
              <img src="jscalendar/img.gif" id="f_trigger" style="cursor: pointer; border: 1px solid red;" title="Date selector" onmouseover="this.style.background='red';" onmouseout="this.style.background=''" /></p>            </td>
          </tr>
          <tr>
            <td height="52" colspan="2" class="STYLE120">Start Time: </td>
            <td colspan="2"><p>
             <div class="ui-timepicker-div"> <input type="text" id="starttime" align="center" name="stime" class="ui-timepicker-div" value=<?php echo date("H:i"); ?> size="24" /> </div>
            <!--  <img src="timepicker/clock_face.gif" id="timer_trigger" disabled style="cursor: pointer; border: 1px solid red;"  width="15" height="15" title="Time Pick" onmouseover="this.style.background='red';" onmouseout="this.style.background=''" /></p> -->           
            
            </td>
           <!--     <a href="#" onClick="clickStartTime();" class="STYLE120" id="starttime_toggler">Open time picker</a>
                </p>
              <div id="time1_picker" class="time_picker_div"></div> -->
              
            </td>
          </tr>
          <tr>
            <td width="99" height="36" class="STYLE120">Duration:</td>
            <td width="23">&nbsp;</td>
            <td width="190"><select name="rLength">
 <?php
		if ($_SESSION['MM_UserGroup']==0)
		{
		?> 
                <option value="1">1 Minutes</option>
                <option value="3">3 Minutes</option>
                <option value="5">5 Minutes</option>
                <option value="10">10 Minutes</option>
<?php
		}
		
		?> 
                <option value="15">15 Minutes</option>
                <option value="20">20 Minutes</option>
                <option value="30">30 Minutes</option>
		<option value="40">40 Minutes</option>
		<option value="45">50 Minutes</option>
	        <option value="50">45 Minutes</option>
                <option value="60">1 Hour</option>
                <option value="90">1.5 Hours</option>
                <option value="120">2 Hours</option>
 <?php
		if ($_SESSION['MM_UserGroup']==1)
		{
		?> 
                <option value="150">2 Hours 30 Minutes</option>
                <option value="180">3 Hours</option>
                <option value="240">4 Hours</option>
                <option value="300">5 Hours</option>
                <option value="330">5 Hours 30 Minutes</option>
                <option value="360">6 Hours</option>
                <option value="720">12 Hours</option>
                <option value="1440">24 Hours</option>
		<option value="2160">36 Hours</option>
		<option value="2880">48 Hours</option>
<?php
		}
		
		?> 
                <!--  -->
                <!--
				<option value="180">3 Hours</option>
				<option value="240">4 Hours</option>
				<option value="360">6 Hours</option>
				<option value="480">8 Hours</option>
                             -->
              </select>            </td>
            <td width="551">&nbsp;</td>
          </tr>
          <tr>
            <td height="21" colspan="2"><span class="STYLE120">Select nodes:</span><strong>
              <input name="nodegrp" type="hidden" id="nodegrp" value="" />
              </strong>                            </td>
            <td height="21"><select name="nodegroup" id="nodegroup">
              <option value="-1">from pre-defined node group....?</option>
              <?php
			do {  
			?>
              <option value="<?php echo $row_nodegrp['group_name']?>"><?php echo $row_nodegrp['group_name']?></option>
              <?php
			} while ($row_nodegrp = mysqli_fetch_assoc($nodegrp));
			  $rows = mysqli_num_rows($nodegrp);
			  if($rows > 0) {
				  mysqli_data_seek($nodegrp, 0);
				  $row_nodegrp = mysqli_fetch_assoc($nodegrp);
			  }
			?>
            </select> </td>
            <td height="21" class="STYLE120">or, from the following grid </td>
          </tr>
          <tr>
            <td height="475" colspan="4"><hr width="745" size="1" class="footrow" />
              <table width="722" height="408" border="0.1" align="center" cellspacing="2" bordercolor="#000000">
                  <tr>
                    <td width="29" height="24" align="center" bgcolor="yellow"><div align="center">
                        <input name="allSelect" type="checkbox" id="allSelect" onclick="SetAllCheckBoxes('fnodegrp', 'selectNode', ((allSelect.checked)?true:false));" value="all" />
                    </div></td>
                    <td width="39"><div align="center">0</div></td>
                    <td width="45"><div align="center">1</div></td>
                    <td width="39"><div align="center">2</div></td>
                    <td width="40"><div align="center">3</div></td>
                    <td width="41"><div align="center">4</div></td>
                    <td width="41"><div align="center">5</div></td>
                    <td width="41"><div align="center">6</div></td>
                    <td width="41"><div align="center">7</div></td>
                    <td width="34"><div align="center">8</div></td>
                    <td width="34"><div align="center">9</div></td>
                    <td width="34"><div align="center">10</div></td>
                    <td width="34"><div align="center">11</div></td>
                    <td width="40"><div align="center">12</div></td>
                    <td width="40"><div align="center">13</div></td>
                    <td width="42"><div align="center">14</div></td>
                    <td width="48"><div align="center">15</div></td>
                    <td width="42"><div align="center">16</div></td>
                    <td width="22" align="center"><div align="center" class="STYLE128">C</div></td>
                  </tr>
                  <tr>
                    <td height="38" align="center"><div align="center">0</div></td>
                    <td bgcolor="#333366"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="0" value="L3" rid="0"/>
                      L3(15)</div></td>
                    <td bgcolor="#990033"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="1" value="I6" rid="0"/>
                      I6(14)</div></td>
                    <td bgcolor="#990033"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="2" value="I10" rid="0"/>
                      I10(13)</div></td>
                    <td bgcolor="#990033"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="3" value="I11" rid="0"/>
                      I11(12)</div></td>
                    <td bgcolor="#999999"><div align="center" class="STYLE129">
                        <input name="selectNode" disabled="true" type="checkbox" id="4" value="H2" rid="0"/>
                      H2(11)</div></td>
                    <td bgcolor="#999999"><div align="center" class="STYLE129">
                        <input name="selectNode" disabled="true" type="checkbox" id="5" value="H4" rid="0"/>
                      H4(10)</div></td>
                    <td bgcolor="#9999FF"><div align="center" class="STYLE106">
                        <input name="selectNode" disabled="true" type="checkbox" id="6" value="G1" rid="0"/>
                      G1(9)</div></td>
                    <td bgcolor="#9999FF"><div align="center" class="STYLE106">
                        <input name="selectNode" disabled="true" type="checkbox" id="7" value="G2" rid="0"/>
                      G2(8)</div></td>
                    <td bordercolor="#FFDECE" bgcolor="#006600"><div align="center" class="STYLE71 STYLE131">
                        <input name="selectNode" disabled="true" type="checkbox" id="8" value="C11" rid="0"/>
                      C11(7)</div></td>
                    <td bordercolor="#FFDECE" bgcolor="#006600"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="9" value="C10" rid="0"/>
                      C10(6)</div></td>
                    <td bordercolor="#FFDECE" bgcolor="#006600"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="10" value="C9" rid="0"/>
                      C9(5)</div></td>
                    <td bgcolor="#333333"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="11" value="B0" rid="0"/>
                    B0(4)</div></td>
                    <td bgcolor="#CCCCFF"><div align="center" class="STYLE71">
                        <input name="selectNode" disabled="true" type="checkbox" id="12" value="A2" rid="0"/>
                      A2(3)</div></td>
                    <!-- dump-->
                    <td bgcolor="#CCCCFF"><div align="center" class="STYLE71">
                        <input name="selectNode" disabled="true" type="checkbox" id="13" value="A1" rid="0"/>
                      A1(2)</div></td>
                    <td bgcolor="#CCCCFF"><div align="center" class="STYLE71">
                        <input name="selectNode" disabled="true" type="checkbox" id="14" value="A0" rid="0"/>
                      A0(1)</div></td>
                    <td colspan="2" rowspan="3" bgcolor="#CCCCCC"><div align="center"><span class="STYLE70"></span></div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="row0select" type="checkbox" id="row0" onclick="SetAllCheckBoxesIndCol('fnodegrp', 'selectNode', ((row0.checked)?true:false), '0');" value="all" />
                    </div></td>
                  </tr>
                  <tr>
                    <td height="38" align="center"><div align="center">1</div></td>
                    <td bgcolor="#333366"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" class="active " id="17" value="L2" rid="1"/>
                      L2(30)</div></td>
                    <td bgcolor="#990033"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="18" value="I7" rid="1"/>
                      I7(29)</div></td>
                    <td bgcolor="#990033"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="19" value="I9" rid="1"/>
                      I9(28)</div></td>
                    <td bgcolor="#990033"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="20" value="I4" rid="1"/>
                      I4(27)</div></td>
                    <td bgcolor="#999999"><div align="center" class="STYLE129">
                        <input name="selectNode" disabled="true" type="checkbox" id="21" value="H0" rid="1"/>
                      H0(26)</div></td>
                    <td bgcolor="#999999"><div align="center" class="STYLE129">
                        <input name="selectNode" disabled="true" type="checkbox" id="22" value="H5" rid="1"/>
                      H5(25)</div></td>
                    <td bgcolor="#9999FF"><div align="center" class="STYLE106">
                        <input name="selectNode" disabled="true" type="checkbox" id="23" value="G0" rid="1"/>
                      G0(24)</div></td>
                    <td bgcolor="#9999FF"><div align="center" class="STYLE106">
                        <input name="selectNode" disabled="true" type="checkbox" id="24" value="G11" rid="1"/>
                      G11(23)</div></td>
                    <td bordercolor="#FFDECE" bgcolor="#006600"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="25" value="C6" rid="1"/>
                      C6(22)</div></td>
                    <td bordercolor="#FFDECE" bgcolor="#006600"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="26" value="C7" rid="1"/>
                      C7(21)</div></td>
                    <td bordercolor="#FFDECE" bgcolor="#006600"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="27" value="C8" rid="1"/>
                      C8(20)</div></td>
                    <td bgcolor="#333333"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="28" value="B1" rid="1"/>
                    B1(19)</div></td>
                    <td bgcolor="#CCCCFF"><div align="center" class="STYLE71">
                        <input name="selectNode" disabled="true" type="checkbox" id="29" value="A10" rid="1"/>
                      A10(18)</div></td>
                    <!---->
                    <td bgcolor="#CCCCFF"><div align="center" class="STYLE71">
                        <input name="selectNode" disabled="true" type="checkbox" id="30" value="A4" rid="1"/>
                      A4(17)</div></td>
                    <td bgcolor="#CCCCFF"><div align="center" class="STYLE71">
                        <input name="selectNode" disabled="true" type="checkbox" id="31" value="A3" rid="1"/>
                      A3(16)</div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="row1select" type="checkbox" id="row1" onclick="SetAllCheckBoxesIndCol('fnodegrp', 'selectNode', ((row1.checked)?true:false), '1');" value="all" />
                    </div></td>
                  </tr>
                  <tr>
                    <td height="38" align="center"><div align="center" class="STYLE70">2</div></td>
                    <td bgcolor="#333366"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="34" value="L0" rid="2"/>
                      L0(45)</div></td>
                    <td bgcolor="#990033"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="35" value="I8" rid="2"/>
                      I8(44)</div></td>
                    <td bgcolor="#990033"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="36" value="I3" rid="2"/>
                      I3(43)</div></td>
                    <td bgcolor="#990033"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="37" value="I5" rid="2"/>
                      I5(42)</div></td>
                    <td bgcolor="#999999"><div align="center" class="STYLE129">
                        <input name="selectNode" disabled="true" type="checkbox" id="38" value="H3" rid="2" />
                      H3(41)</div></td>
                    <td bgcolor="#9999FF"><div align="center" class="STYLE106">
                        <input name="selectNode" disabled="true" type="checkbox" id="39" value="G5" rid="2"/>
                      G5(40)</div></td>
                    <td bgcolor="#9999FF"><div align="center" class="STYLE106">
                        <input name="selectNode" disabled="true" type="checkbox" id="40" value="G6" rid="2"/>
                      G6(39)</div></td>
                    <td bgcolor="#9999FF"><div align="center" class="STYLE106">
                        <input name="selectNode" disabled="true" type="checkbox" id="41" value="G9" rid="2"/>
                      G9(38)</div></td>
                    <td bordercolor="#FFDECE" bgcolor="#006600"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="42" value="C1" rid="2"/>
                      C1(37)</div></td>
                    <td bordercolor="#FFDECE" bgcolor="#006600"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="43" value="C0" rid="2"/>
                      C0(36)</div></td>
                    <td bordercolor="#FFDECE" bgcolor="#006600"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="44" value="C4" rid="2"/>
                      C4(35)</div></td>
                    <td bgcolor="#333333"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="45" value="B2" rid="2"/>
                    B2(34)</div></td>
                    <td bgcolor="#CCCCFF"><div align="center" class="STYLE71">
                        <input name="selectNode" disabled="true" type="checkbox" id="46" value="A11" rid="2"/>
                      A11(33)</div></td>
                    <!-- -->
                    <td bgcolor="#CCCCFF"><div align="center" class="STYLE71">
                        <input name="selectNode" disabled="true" type="checkbox" id="47" value="A5" rid="2"/>
                      A5(32)</div></td>
                    <td bgcolor="#CCCCFF"><div align="center" class="STYLE71">
                        <input name="selectNode" disabled="true" type="checkbox" id="48" value="A7" rid="2"/>
                      A7(31)</div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center" class="STYLE70">
                        <input name="row2select" type="checkbox" id="row2" onclick="SetAllCheckBoxesIndCol('fnodegrp', 'selectNode', ((row2.checked)?true:false), '2');" value="all" />
                    </div></td>
                  </tr>
                  <tr>
                    <td height="38" align="center"><div align="center" class="STYLE70">3</div></td>
                    <td bgcolor="#333366"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="51" value="L1" rid="3"/>
                      L1(60)</div></td>
                    <td bgcolor="#990033"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="52" value="I0" rid="3"/>
                      I0(59)</div></td>
                    <td bgcolor="#990033"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="53" value="I1" rid="3"/>
                      I1(58)</div></td>
                    <td bgcolor="#990033"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="54" value="I2" rid="3"/>
                      I2(57)</div></td>
                    <td bgcolor="#999999"><div align="center" class="STYLE129">
                        <input name="selectNode" disabled="true" type="checkbox" id="55" value="H1" rid="3"/>
                      H1(56)</div></td>
                    <td bgcolor="#9999FF"><div align="center" class="STYLE106">
                        <input name="selectNode" disabled="true" type="checkbox" id="56" value="G8" rid="3"/>
                      G8(55)</div></td>
                    <td bgcolor="#9999FF"><div align="center" class="STYLE106">
                        <input name="selectNode" disabled="true" type="checkbox" id="57" value="G7" rid="3"/>
                      G7(54)</div></td>
                    <td bgcolor="#9999FF"><div align="center" class="STYLE106">
                        <input name="selectNode" disabled="true" type="checkbox" id="58" value="G10" rid="3"/>
                      G10(53)</div></td>
                    <td bordercolor="#FFDECE" bgcolor="#006600"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="59" value="C3" rid="3"/>
                      C3(52)</div></td>
                    <td bordercolor="#FFDECE" bgcolor="#006600"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="60" value="C2" rid="3"/>
                      C2(51)</div></td>
                    <td bordercolor="#FFDECE" bgcolor="#006600"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="61" value="C5" rid="3"/>
                      C5(50)</div></td>
                    <td bgcolor="#333333"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="62" value="B3" rid="3"/>
                    B3(49)</div></td>
                    <td bgcolor="#CCCCFF"><div align="center" class="STYLE71">
                        <input name="selectNode" disabled="true" type="checkbox" id="63" value="A9" rid="3"/>
                      A9(48)</div></td>
                    <!-- -->
                    <td bgcolor="#CCCCFF"><div align="center" class="STYLE71">
                        <input name="selectNode" disabled="true" type="checkbox" id="64" value="A8" rid="3"/>
                      A8(47)</div></td>
                    <td bgcolor="#CCCCFF"><div align="center" class="STYLE71">
                        <input name="selectNode" disabled="true" type="checkbox" id="65" value="A6" rid="3"/>
                      A6(46)</div></td>
                    <td bgcolor="#336666"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="66" value="M3" rid="3"/>
                      M3(112)</div></td>
                    <td bgcolor="#336666"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="67" value="M0" rid="3"/>
                      M0(106)</div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center" class="STYLE70">
                        <input name="row3select" type="checkbox" id="row3" onclick="SetAllCheckBoxesIndCol('fnodegrp', 'selectNode', ((row3.checked)?true:false), '3');" value="all" />
                    </div></td>
                  </tr>
                  <tr>
                    <td height="38" align="center"><div align="center" class="STYLE70">4</div></td>
                    <td height="38" bgcolor="#333366"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="68" value="L5" rid="4"/>
                      L5(75)</div></td>
                    <td height="38" bgcolor="#333366"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="69" value="L8" rid="4"/>
                      L8(74)</div></td>
                    <td height="38" bgcolor="#333366"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="70" value="L4" rid="4"/>
                      L4(73)</div></td>
                    <td height="38" bgcolor="#999933"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="71" value="K4" rid="4"/>
                      K4(72)</div></td>
                    <td height="38" bgcolor="#999933"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="72" value="K1" rid="4"/>
                      K1(71)</div></td>
                    <td height="38" bgcolor="#FFCCFF"><div align="center" class="STYLE106"><span class="STYLE9">
                        <input name="selectNode" disabled="true" type="checkbox" id="73" value="J5" rid="4"/>
                      J5(70)</span></div></td>
                    <td height="38" bgcolor="#9999FF"><div align="center" class="STYLE106">
                        <input name="selectNode" disabled="true" type="checkbox" id="74" value="G3" rid="4"/>
                      G3(69)</div></td>
                    <td height="38" bgcolor="#9999FF"><div align="center" class="STYLE106">
                        <input name="selectNode" disabled="true" type="checkbox" id="75" value="G4" rid="4"/>
                      G4(68)</div></td>
                    <td height="38" bgcolor="#6633FF"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="76" value="F3" rid="4"/>
                      F3(67)</div></td>
                    <td height="38" bgcolor="#6633FF"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="77" value="F1" rid="4"/>
                      F1(66)</div></td>
                    <td height="38" bordercolor="#FFFFFF" bgcolor="#CC0000"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="78" value="E1" rid="4"/>
                      E1(65)</div></td>
                    <td height="38" bordercolor="#FFFFFF" bgcolor="#CC0000"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="79" value="E0" rid="4"/>
                      E0(64)</div></td>
                    <td height="38" bgcolor="#660066"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="80" value="D0" rid="4"/>
                      D0(63)</div></td>
                    <!-- -->
                    <td height="38" bgcolor="#660066"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="81" value="D5" rid="4"/>
                      D5(62)</div></td>
                    <td height="38" bgcolor="#336666"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="82" value="M4" rid="4"/>
                      M4(61)</div></td>
                    <td height="38" bgcolor="#336666"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="83" value="M1" rid="4"/>
                      M1(113) </div></td>
                    <td height="38" bgcolor="#336666"><p align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="84" value="M2" rid="4"/>
                      M2(107)</p></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center" class="STYLE70">
                        <input name="row4select" type="checkbox" id="row4" onclick="SetAllCheckBoxesIndCol('fnodegrp', 'selectNode', ((row4.checked)?true:false), '4');" value="all" />
                    </div></td>
                  </tr>
                  <tr>
                    <td height="38" align="center"><div align="center" class="STYLE70">5</div></td>
                    <td bgcolor="#333366"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="85" value="L9" rid="5"/>
                      L9(90)</div></td>
                    <td bgcolor="#333366"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="86" value="L10" rid="5"/>
                      L10(89)</div></td>
                    <td bgcolor="#333366"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="87" value="L12" rid="5"/>
                      L12(88)</div></td>
                    <td bgcolor="#999933"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="88" value="K0" rid="5"/>
                      K0(87)</div></td>
                    <td bgcolor="#999933"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="89" value="K2" rid="5"/>
                      K2(86)</div></td>
                    <td bgcolor="#FFCCFF"><div align="center" class="STYLE106"><span class="STYLE9">
                        <input name="selectNode" disabled="true" type="checkbox" id="90" value="J0" rid="5"/>
                      J0(85)</span></div></td>
                    <td bgcolor="#FFCCFF"><div align="center" class="STYLE106"><span class="STYLE9">
                        <input name="selectNode" disabled="true" type="checkbox" id="91" value="J6" rid="5"/>
                      J6(84)</span></div></td>
                    <td bgcolor="#FFCCFF"><div align="center" class="STYLE106"><span class="STYLE9">
                        <input name="selectNode" disabled="true" type="checkbox" id="92" value="J4" rid="5"/>
                      J4(83)</span></div></td>
                    <td bgcolor="#6633FF"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="93" value="F2" rid="5"/>
                      F2(82)</div></td>
                    <td bgcolor="#6633FF"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="94" value="F0" rid="5"/>
                      F0(81)</div></td>
                    <td bordercolor="#FFFFFF" bgcolor="#CC0000"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="95" value="E4" rid="5"/>
                      E4(80)</div></td>
                    <td bordercolor="#FFFFFF" bgcolor="#CC0000"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="96" value="E2" rid="5"/>
                      E2(79)</div></td>
                    <td bgcolor="#660066"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="97" value="D1" rid="5"/>
                      D1(78)</div></td>
                    <!-- -->
                    <td bgcolor="#660066"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="98" value="D4" rid="5"/>
                      D4(77)</div></td>
                    <td bgcolor="#336666"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="99" value="M11" rid="5"/>
                      M11(76)</div></td>
                    <td bgcolor="#336666"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="100" value="M10" rid="5"/>
                      M10(114)</div></td>
                    <td bgcolor="#336666"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="101" value="M5" rid="5"/>
                      M5(108)</div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center" class="STYLE70">
                        <input name="row5select" type="checkbox" id="row5" onclick="SetAllCheckBoxesIndCol('fnodegrp', 'selectNode', ((row5.checked)?true:false), '5');" value="all" />
                    </div></td>
                  </tr>
                  <tr>
                    <td height="38" align="center"><div align="center" class="STYLE70">6</div></td>
                    <td bgcolor="#333366"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="102" value="L6" rid="6"/>
                      L6(105)</div></td>
                    <td bgcolor="#333366"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="103" value="L11" rid="6"/>
                      L11(104)</div></td>
                    <td bgcolor="#333366"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="104" value="L7" rid="6"/>
                      L7(103)</div></td>
                    <td bgcolor="black"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="105" value="K6" rid="6"/>
                      K6(telosb)</div></td>
                    <td bgcolor="#999933"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="106" value="K3" rid="6"/>
                      K3(101)</div></td>
                    <td bgcolor="#FFCCFF"><div align="center" class="STYLE106"><span class="STYLE9">
                        <input name="selectNode" disabled="true" type="checkbox" id="107" value="J3" rid="6"/>
                      J3(100)</span></div></td>
                    <td bgcolor="#FFCCFF"><div align="center" class="STYLE106"><span class="STYLE9">
                        <input name="selectNode" disabled="true" type="checkbox" id="108" value="J2" rid="6"/>
                      J2(99)</span></div></td>
                    <td bgcolor="#FFCCFF"><div align="center" class="STYLE106"><span class="STYLE9">
                        <input name="selectNode" disabled="true" type="checkbox" id="109" value="J1" rid="6"/>
                      J1(98)</span></div></td>
                    <td bgcolor="#6633FF"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="110" value="F5" rid="6"/>
                      F5(97)</div></td>
                    <td bgcolor="#6633FF"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="111" value="F4" rid="6"/>
                      F4(96)</div></td>
                    <td bordercolor="#FFFFFF" bgcolor="#CC0000"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="112" value="E3" rid="6"/>
                      E3(95)</div></td>
                    <td bordercolor="#FFFFFF" bgcolor="#CC0000"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="113" value="E5" rid="6"/>
                      E5(94)</div></td>
                    <td bgcolor="#660066"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="114" value="D2" rid="6"/>
                      D2(93)</div></td>
                    <!-- -->
                    <td bgcolor="#660066"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="115" value="D3" rid="6"/>
                      D3(92)</div></td>
                    <td bgcolor="#336666"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="116" value="M9" rid="6"/>
                      M9(91)</div></td>
                    <td bgcolor="#336666"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="117" value="M7" rid="6"/>
                      M7(115)</div></td>
                    <td bgcolor="#336666"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="118" value="M6" rid="6"/>
                      M6(109)</div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center" class="STYLE70">
                        <input name="row6select" type="checkbox" id="row6" onclick="SetAllCheckBoxesIndCol('fnodegrp', 'selectNode', ((row6.checked)?true:false), '6');" value="all" />
                    </div></td>
                  </tr>
                  <tr>
                    <td height="36" align="center"><div align="center">7</div></td>
                    <td colspan="5" rowspan="2" bgcolor="#CCCCCC"><strong>&nbsp; </strong>
                        <div align="left"><strong><span class="STYLE14"><span class="STYLE125"><span class="STYLE124">/</span><span class="STYLE121">door</span></span></span></strong></div></td>
                    <td bgcolor="#006699"><div align="center" class="STYLE114">
                        <input name="selectNode" disabled="true" type="checkbox" id="124" value="O5" rid="7"/>
                      O5(128)</div></td>
                   <td bgcolor="#006699"><div align="center" class="STYLE114">
                        <input name="selectNode" disabled="true" type="checkbox" id="125" value="O3" rid="7"/>
                      O3(126)</div></td>
					  <td bgcolor="#006699"><div align="center" class="STYLE114">
                        <input name="selectNode" disabled="true" type="checkbox" id="126" value="O6" rid="7"/>
                      O6(124)</div></td>
                    
					<td bgcolor="#6633FF"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="127" value="F6" rid="7"/>
                    F6(122)</div></td>
                    
                    <td colspan="4" rowspan="2" bgcolor="#CCCCCC">&nbsp;</td>
                    <!-- -->
                    <td bgcolor="#FFCC66"><div align="center" class="STYLE113">
                        <input name="selectNode" disabled="true" type="checkbox" id="132" value="N1" rid="7"/>
                      N1(120)</div></td>
                    <td bgcolor="#FFCC66"><div align="center" class="STYLE113">
                        <input name="selectNode" disabled="true" type="checkbox" id="133" value="N0" rid="7"/>
                      N0(118)</div></td>
                    <td bgcolor="#FFCE63"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="134" value="N6" rid="7"/>
                        <span class="STYLE133">N6(116)</span></div></td>
                    <td bgcolor="#336666"><div align="center" class="STYLE96">
                        <input name="selectNode" disabled="true" type="checkbox" id="135" value="M8" rid="7"/>
                      M8(110)</div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="row7select" type="checkbox" id="row7" onclick="SetAllCheckBoxesIndCol('fnodegrp', 'selectNode', ((row7.checked)?true:false), '7');" value="all" />
                    </div></td>
                  </tr>
                  <tr>
                    <td height="36" align="center"><div align="center">8</div></td>
                    <td bgcolor="#006699"><div align="center" class="STYLE114">
                        <input name="selectNode" disabled="true" type="checkbox" id="141" value="O2" rid="8"/>
                      O2(129)</div></td>
                    <td bgcolor="#006699"><div align="center" class="STYLE114">
                        <input name="selectNode" disabled="true" type="checkbox" id="142" value="O0" rid="8"/>
                      O0(127)</div></td>
                    <td bgcolor="#006699"><div align="center" class="STYLE114">
                        <input name="selectNode" disabled="true" type="checkbox" id="143" value="O4" rid="8"/>
                      O4(125)</div></td>
					  <td bgcolor="#006699"><div align="center" class="STYLE114">
                        <input name="selectNode" disabled="true" type="checkbox" id="144" value="O1" rid="8"/>
                    O1(123)</div></td>
                  
                    <!-- -->
                    <td bgcolor="#FFCC66"><div align="center" class="STYLE113">
                        <input name="selectNode" disabled="true" type="checkbox" id="149" value="N2" rid="8"/>
                      N2(121)</div></td>
                    <td bgcolor="#FFCC66"><div align="center" class="STYLE113">
                        <input name="selectNode" disabled="true" type="checkbox" id="150" value="N3" rid="8"/>
                      N3(119)</div></td>
                    <td bgcolor="#FFCC66"><div align="center" class="STYLE113">
                        <input name="selectNode" disabled="true" type="checkbox" id="151" value="N4" rid="8"/>
                      N4(117)</div></td>
                    <td bgcolor="#FFCC66"><div align="center" class="STYLE113">
                        <input name="selectNode" disabled="true" type="checkbox" id="152" value="N5" rid="8"/>
                      N5(111)</div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="row8select" type="checkbox" id="row8" onclick="SetAllCheckBoxesIndCol('fnodegrp', 'selectNode', ((row8.checked)?true:false), '8');" value="all" />
                    </div></td>
                  </tr>
                  <tr>
                    <td height="22"><div align="center" class="STYLE128">R</div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="col0select" type="checkbox" id="col0" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col0.checked)?true:false), '0');" value="all" />
                    </div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="col1select" type="checkbox" id="col1" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col1.checked)?true:false), '1');" value="all" />
                    </div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="col2select" type="checkbox" id="col2" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col2.checked)?true:false), '2');" value="all" />
                    </div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="col3select" type="checkbox" id="col3" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col3.checked)?true:false), '3');" value="all" />
                    </div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="col4select" type="checkbox" id="col4" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col4.checked)?true:false), '4');" value="all" />
                    </div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="col5select" type="checkbox" id="col5" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col5.checked)?true:false), '5');" value="all" />
                    </div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="col6select" type="checkbox" id="col6" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col6.checked)?true:false), '6');" value="all" />
                    </div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="col7select" type="checkbox" id="col7" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col7.checked)?true:false), '7');" value="all" />
                    </div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="col8select" type="checkbox" id="col8" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col8.checked)?true:false), '8');" value="all" />
                    </div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="col9select" type="checkbox" id="col9" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col9.checked)?true:false), '9');" value="all" />
                    </div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="col10select" type="checkbox" id="col10" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col10.checked)?true:false), '10');" value="all" />
                    </div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="col11select" type="checkbox" id="col11" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col11.checked)?true:false), '11');" value="all" />
                    </div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="col12select" type="checkbox" id="col12" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col12.checked)?true:false), '12');" value="all" />
                    </div></td>
                    <!-- -->
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="col13select" type="checkbox" id="col13" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col13.checked)?true:false), '13');" value="all" />
                    </div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="col14select" type="checkbox" id="col14" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col14.checked)?true:false), '14');" value="all" />
                    </div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="col15select" type="checkbox" id="col15" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col15.checked)?true:false), '15');" value="all" />
                    </div></td>
                    <td align="center" bgcolor="#FFFFFF"><div align="center">
                        <input name="col16select" type="checkbox" id="col16" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col16.checked)?true:false), '16');" value="all" />
                    </div></td>
                    <td align="center" bgcolor="#CCCCCC"><div align="center">
                        <input name="col77select" type="checkbox" id="col77" onclick="SetAllCheckBoxesIndRow('fnodegrp', 'selectNode', ((col77.checked)?true:false), '77');" value="all" />
                    </div></td>
                  </tr>
                              </table>
            <hr width="745" size="1" class="footrow" /></td>
          </tr>
          <tr class="STYLE120">
            <td height="30" colspan="2" class="STYLE120">Choose <span class="STYLE118">.exe</span> File to Program motes, </td>
            <td colspan="2"><p>
                &nbsp;&nbsp;&nbsp;&nbsp;
                <input name="uploaded" type="file" />
              </p>
              <p>,or
                <select name="ufiles" id="ufiles">
                  <option value="-1">Select a pre-uploaded file <font color="#FF0000">?</font> </option>
                  <?php
			do {  
			?>
                  <option value="<?php echo $row_ufiles['upfile']?>"><?php echo $row_ufiles['upfile']?></option>
                  <?php
			} while ($row_ufiles = mysqli_fetch_assoc($ufiles));
			  $rows = mysqli_num_rows($ufiles);
			  if($rows > 0) {
				  mysqli_data_seek($ufiles, 0);//hhq : here change 0 to 1
				  $row_ufiles = mysqli_fetch_assoc($ufiles);
			  }
			?>
                  </select>
              </p></td>
          </tr>
          <!-- 
        <tr>
          <td height="30">choose exe file to upload: </td>
          <td><input name="uploadedexe" type="file" id="uploadedexe" /></td>
        </tr>
        -->
          <tr valign="top">
            <td height="54" colspan="2" class="STYLE120"><p class="STYLE120">Inject (check if yes)</p>            </td>
            <td colspan="2"><p>
              <input name="inject" type="checkbox" id="inject" value="1" onclick="showMe('injector', this)" />
                </p>
              <div id="injector" style="display:none"> choose  file to inject :
                  <input name="injection" type="file" id="injection" />
              </div></td>
          </tr>
	      <tr>
            <td height="66" colspan="4"><div align="center">
                <input name="expsubmit" id="expsubmit" type="submit" value=" Schedule  Experiment " />
            </div></td>
          </tr>
        </table>
	    <script type="text/javascript">
			Calendar.setup({
			    inputField     :    "sdate",
		    	ifFormat       :    "%Y-%m-%d",
    			weekNumbers	   :  	false,
	    		button         :    "f_trigger",
		    	singleClick    :    true
			});
	    </script>
	  </form>    </td>
  </tr>
</table>
</body>
</html>
<?php
mysqli_free_result($nodegrp);
mysqli_free_result($ufiles);
?>
