Index: /schedule/js/function.js
===================================================================
--- /schedule/js/function.js	(revision 17480)
+++ /schedule/js/function.js	(revision 17481)
@@ -2,13 +2,17 @@
 // June 16, 2013
 
+var currentDate;
+
 function GetDate(d,m,y)
 {
+	currentDate = y+'-'+m+'-'+d;
+};
+
 	$('document').ready(function(){
 			var Gdate = y+'-'+m+'-'+d;
-
 			$('#save').click(function(){
 				if($('#save').val()=='SAVE')
 				{
-					Gdate = y+'-'+m+'-'+d;
+					Gdate = currentDate;
 					alert("Save: " + Gdate);
 					$('.datalisting').each(function(){
@@ -17,5 +21,4 @@
 						countchild = $(this).find(".tr").length;
 							$(this).find(".tr").each(function(){
-								
 								get_measure   = $(this).find(".measure").val();		
 								get_source    = $(this).find(".source").val();		
@@ -28,5 +31,5 @@
 				else
 				{
-					Gdate = y+'-'+m+'-'+d;
+					Gdate = currentDate;
 					alert("Update: " + Gdate);
 					GetDelete(Gdate);
@@ -88,3 +91,2 @@
 			};
 	});
-};
