Index: schedule/Module/calendar.php
===================================================================
--- schedule/Module/calendar.php	(revision 16548)
+++ schedule/Module/calendar.php	(revision 16549)
@@ -171,9 +171,9 @@
                 {
                     var url = "https://www.fact-project.org/smartfact/index.php?source=Mrk%20421&time=2012-12-10"
-                    textXML = new XMLHttpRequest();
+                    testXML = new XMLHttpRequest();
                     
-                    textXML.onreadystatechange=function() {
-                        alert ("state: " + textXML.readyState + " status: " + textXML.status);
-                        if (textXML.readyState==4 && textXML.status==200)
+                    testXML.onreadystatechange=function() {
+                        alert ("state: " + testXML.readyState + " status: " + testXML.status);
+                        if (testXML.readyState==4 &&testXML.status==200)
 						{
                             alert ("request ok");
@@ -181,6 +181,6 @@
                     };
 					
-                    textXML.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[index])+"&time="+year+"-"+month+"-"+day,true);
-					xtextXML.send();
+                    testXML.open("GET",url,true);
+					testXML.send();
                 }
                  CAL.addEventListener("onSelect", function(){
@@ -191,11 +191,12 @@
 							$('#data').append('XML data were taken');
                         
+                        testData();
 						//displayData();
-						for (i=0; i<source.length; i++)
+						/*for (i=0; i<source.length; i++)
 					{
 					getXMLData();
 					//display source data here sourceData[i]
 					//document.getElementById('data').innerHTML=sourceData[i];
-					}	
+					}	*/
 					
 						});
