Index: /schedule/Module/control.php
===================================================================
--- /schedule/Module/control.php	(revision 17459)
+++ /schedule/Module/control.php	(revision 17460)
@@ -472,12 +472,5 @@
 				newtr<?php echo $cnt; ?>.appendChild(newtd_c5);
 				newInnertable.appendChild(newtr<?php echo $cnt; ?>);
-			
-		<?php
-//$rows = mysql_fetch_array($fetch);	
-			
-		$cnt++;
-		$prevtimestamp = $timestamp;
-		}
-		?>
+
 			var newtd_c6 = document.createElement("td");
 				newtd_c6.appendChild(newInnertable);
@@ -506,7 +499,13 @@
 			} else {
 				targetView.appendChild(newdiv);
-				//$(targetView).after(newtr<?php echo $cnt; ?>);
 			}
 
+			
+
+		<?php		
+			$cnt++;
+			$prevtimestamp = $timestamp;
+		}
+		?>
 	<?php
 	}
@@ -519,8 +518,6 @@
 	<?php
 	}
-
 	?>
-
-			
+		
 }
 
