Index: schedule/function/function.php
===================================================================
--- schedule/function/function.php	(revision 16016)
+++ schedule/function/function.php	(revision 16020)
@@ -16,5 +16,9 @@
 	var year2 = currentDate2.getFullYear();
 	var fullday2=day2+'-'+month2+'-'+year2;
-	
+	var currentDate = new Date();
+	var day;
+	var month;
+	var year;
+	var fullday;
 	<?php
  if($_GET['day'] || $_GET['month'] || $_GET['year']){
@@ -22,8 +26,8 @@
  ?>
  
-	var day = <?php echo $_GET['day'];  ?>
-	var month = <?php  echo $_GET['month']; ?>
-	var year = <?php echo $_GET['year']; ?>
-	var fullday=day+'-'+month+'-'+year;
+	 day = <?php echo $_GET['day'];  ?>
+	 month = <?php  echo $_GET['month']; ?>
+	 year = <?php echo $_GET['year']; ?>
+	 fullday=day+'-'+month+'-'+year;
 		
  
@@ -35,10 +39,11 @@
  
  ?>
-	var currentDate = new Date();
-	var day = currentDate.getDate();
-	var month = currentDate.getMonth() + 1;
-	var year = currentDate.getFullYear();
-	var fullday=day+'-'+month+'-'+year;
+	
+	
+	 month = currentDate.getMonth() + 1;
+	 year = currentDate.getFullYear();
+	 fullday=day+'-'+month+'-'+year;
 	<?php    }  ?>
+	
 	<?php
 	
