Index: /schedule/Module/calendar.php
===================================================================
--- /schedule/Module/calendar.php	(revision 16007)
+++ /schedule/Module/calendar.php	(revision 16008)
@@ -52,7 +52,5 @@
                 <script type="text/javascript">//<![CDATA[
 							$(document).ready(function(){
-							var source=[];
-							source.push($('#box2View').text());
-							document.getElementById('data').innerHTML=source;
+							
 							}),
                  CAL.addEventListener("onSelect", function(){
@@ -63,5 +61,9 @@
 							var newdata;
 							var newtime;
-							
+							var source=[];
+							source.push($('#box2View').text());
+							document.getElementById('data').innerHTML=source;
+							for(var i = 0; i<source.length;i++)
+							{
 							var xmlhttp;
 							if (window.XMLHttpRequest)
@@ -285,7 +287,8 @@
 								}
 							}
-							xmlhttp.open("GET","http://www.fact-project.org/smartfact/index.php?source="+'Mrk+421'+"&time="+year+"-"+month+"-"+day,true);
+							xmlhttp.open("GET","http://www.fact-project.org/smartfact/index.php?source="+urlencode(source)+"&time="+year+"-"+month+"-"+day,true);
 							xmlhttp.send();
 							$('#Graph').load('chart.php?day='+day+"&month="+month+"&year="+year);
+							}
 							
 						  });
