Index: /schedule/js/function.js
===================================================================
--- /schedule/js/function.js	(revision 17482)
+++ /schedule/js/function.js	(revision 17483)
@@ -3,13 +3,16 @@
 
 var currentDate;
+var count;
 
 function GetDate(d,m,y)
 {
 	currentDate = y+'-'+m+'-'+d;
+	count = 1;
 	$('document').ready(function(){
 			var Gdate = y+'-'+m+'-'+d;
 			$('#save').click(function(){
-				if($('#save').val()=='SAVE')
+				if(($('#save').val()=='SAVE') && count==1)
 				{
+					count = 0;
 					Gdate = currentDate;
 					alert("Save: " + Gdate);
@@ -27,6 +30,7 @@
 					});
 				}
-				else
+				else if(($('#save').val()=='SAVE') && count==1)
 				{
+					count = 0;
 					Gdate = currentDate;
 					alert("Update: " + Gdate);
