Index: schedule/Module/calendar.php
===================================================================
--- schedule/Module/calendar.php	(revision 16015)
+++ schedule/Module/calendar.php	(revision 16016)
@@ -290,4 +290,5 @@
 							xmlhttp.send();
 							$('#Graph').load('chart.php?day='+day+"&month="+month+"&year="+year);
+							$('#saving').load('function.php?day='+day+"&month="+month+"&year="+year);
 							
 							
Index: schedule/function/function.php
===================================================================
--- schedule/function/function.php	(revision 16015)
+++ schedule/function/function.php	(revision 16016)
@@ -1,2 +1,3 @@
+ <div id="saving">
  <script type="text/javascript">
 
@@ -16,24 +17,5 @@
 	var fullday2=day2+'-'+month2+'-'+year2;
 	
-	
 	<?php
-	
-	
-	
-		$cntsource=mysql_query("SELECT COUNT(*) as `SourceID` FROM source");
-		$rowcnt=mysql_fetch_array($cntsource);
-		$Total= $rowcnt['SourceID'];
-	?>
-	$('#save').click(function(){
-		var InputValue = [];
-		var selectedSource = [];
-		var selectedTime = [];
-		var selectedMeasurement = [];
-		var Time;
-		var Source;
-		var measure;
-		var value;
-		
-		<?php
  if($_GET['day'] || $_GET['month'] || $_GET['year']){
  
@@ -59,6 +41,21 @@
 	var fullday=day+'-'+month+'-'+year;
 	<?php    }  ?>
-		
-		
+	<?php
+	
+	
+	
+		$cntsource=mysql_query("SELECT COUNT(*) as `SourceID` FROM source");
+		$rowcnt=mysql_fetch_array($cntsource);
+		$Total= $rowcnt['SourceID'];
+	?>
+	$('#save').click(function(){
+		var InputValue = [];
+		var selectedSource = [];
+		var selectedTime = [];
+		var selectedMeasurement = [];
+		var Time;
+		var Source;
+		var measure;
+		var value;
 		for(var i=1;i<<?php echo $Total; ?>;i++)
 		{
@@ -80,2 +77,3 @@
 	});
  </script>
+ </div>
