Index: schedule/function/function.php
===================================================================
--- schedule/function/function.php	(revision 16686)
+++ schedule/function/function.php	(revision 16688)
@@ -1,3 +1,4 @@
  <div id="saving">
+ 
  <script type="text/javascript">
 
@@ -5,47 +6,15 @@
  
  
+
+
  
  
- 
- 
-	$(document).ready(function(){
+	$(document).ready(function GetDate(){
 	 // for fupdate
 	 
 	 
+	
 	 
-	var currentDate2 = new Date();
-	var day2 = currentDate2.getDate();
-	var month2 = currentDate2.getMonth() + 1;
-	var year2 = currentDate2.getFullYear();
-	var fullday2=day2+'-'+month2+'-'+year2;
 	
-	var day;
-	var month;
-	var year;
-	var fullday;
-	<?php
- if($_GET['day'] || $_GET['month'] || $_GET['year']){
- 
- ?>
- 
-	 day = <?php echo $_GET['day'];  ?>;
-	 month = <?php echo $_GET['month']; ?>;
-	 year = <?php echo $_GET['year']; ?>;
-	 fullday=day+'-'+month+'-'+year;
-		
- 
- 
- <?php
- 
- 
- }else{
- 
- ?>
-		var currentDate = new Date();
-		 day = currentDate.getDate();
-	 month = currentDate.getMonth() + 1;
-	 year = currentDate.getFullYear();
-	 fullday=day+'-'+month+'-'+year;
-	<?php    }  ?>
 	
 	<?php
@@ -58,6 +27,6 @@
 	?>
 	$('#save').click(function(){
-	
-	
+
+
 		var InputValue = [];
 		var selectedSource = [];
@@ -89,5 +58,5 @@
 		
 		if(checks == 0){
-		//window.location = 'Transaction/insert.php?Time='+selectedTime+'&Source='+selectedSource+'&measure='+selectedMeasurement+'&Data='+InputValue+'&Date='+fullday+'&Date2='+fullday2;
+		window.location = 'Transaction/insert.php?Time='+selectedTime+'&Source='+selectedSource+'&measure='+selectedMeasurement+'&Data='+InputValue+'&Date='+day+'-'+month+'-'+year;
 	}else{
 	
