Index: schedule/Module/calendar.php
===================================================================
--- schedule/Module/calendar.php	(revision 16512)
+++ schedule/Module/calendar.php	(revision 16513)
@@ -114,18 +114,9 @@
 
 					index = xmlhttp.length - 1;
-					document.getElementById('data').innerHTML="XML request is in the array! ";
+					$('#data').append('XML request is in the array! ');
+					//document.getElementById('data').innerHTML="XML request is in the array! ";
 
 				}
 
-				function getXMLData()
-				{
-					getXML();
-					xmlhttp[index].onreadystatechange=xmlStateChange();
-					document.getElementById('data').innerHTML="XML data were taken! ";
-
-					xmlhttp[index].open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[index])+"&time="+year+"-"+month+"-"+day,true);
-					xmlhttp[index].send();
-				}
-				
 				function xmlStateChange()
 				{
@@ -135,5 +126,6 @@
 						//sourceData[index]= new Array(); //--> remove this if you use sourceData[[]]
 						line=xmlhttp[index].responseText.split('\n');
-						document.getElementById('data').innerHTML="XML value has changed!";
+						$('#data').append('XML value has changed!');
+						//document.getElementById('data').innerHTML="XML value has changed!";
 						document.getElementById('data').innerHTML=xmlhttp[index].responseText;
 
@@ -145,8 +137,19 @@
 							document.getElementById('data').innerHTML=line;
 						}
-						
-					
+							
 				}
 
+				function getXMLData()
+				{
+					getXML();
+					xmlhttp[index].onreadystatechange=xmlStateChange();
+					$('#data').append('XML data were taken');
+					//document.getElementById('data').innerHTML="XML data were taken! ";
+
+					xmlhttp[index].open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[index])+"&time="+year+"-"+month+"-"+day,true);
+					xmlhttp[index].send();
+				}
+				
+				
 				function displayData() //--> you can use the content of this function in the event listener
 				{
@@ -162,5 +165,6 @@
 							 month =this.selection.print("%m").join("\n");
 							year =this.selection.print("%Y").join("\n");	
-							document.getElementById('data').innerHTML="Calendar selected! ";
+							//document.getElementById('data').innerHTML="Calendar selected! ";
+							$('#data').append('XML data were taken');
 
 	
