Index: schedule/Module/calendar.php
===================================================================
--- schedule/Module/calendar.php	(revision 16615)
+++ schedule/Module/calendar.php	(revision 16622)
@@ -14,6 +14,5 @@
 	<!--<script src="js/chart.js"></script> -->
     <script src="Module/src/js/lang/en.js"></script>
-   <!-- <script src="js/xmlrequest.js"></script>
--->
+    <script src="js/xmlrequest.js"></script>
    <style type="text/css">
       .highlight { color: #0f0 !important; font-weight: bold; }
@@ -99,69 +98,8 @@
 				var year;
 				var month;
-				function testData() 
-				{
-					//calls the xml request in a loop based on the current sources                
-					var source = ['Mrk 421','Mrk 501'];
-					for (i = 0; i<source.length; i++) 
-					{
-                        alert (source[i]);
-						testXMLData(i, source);
-						//$('#data').append('1st'+source);
-					}
-				}
-
-				function testXMLData(index, source) 
-				{
-                    alert("test XML Data");
-					var testXML;
-					//$('#data').append('   xmlData pass'+source+" "+index);
-					testXML = new XMLHttpRequest();
-					//NOTE: previous errors on the request was caused by appending "http://www.fact-project.org"
-					testXML.open("GET","/smartfact/index.php?source="+escape(source[index])+"&time="+year+"-"+month+"-"+day,true);
-					dataSource = new Array();
-					testXML.onload=function() 
-					{
-						if (testXML.status==200)
-						{
-                            alert("request ok");
-							line=testXML.responseText.split('\n');
-							dataSource.push(line);
-							if (dataSource.length == source.length)
-								{
-                                    alert("new datasource");
-								displayXMLData(dataSource, source); //this will be called when the last data from the list is read
-								//$('#data').append('successfully load'+source +""+dataSource);
-								}
-                        }
-                        else
-                            alert("status is " + testXML.status);
-                    
-					};
-                    testXML.send();
-				}
-
-				function displayXMLData(dataSource, source)
-				{
-					//This function splits the lines of data per data source
-					var dataGraph = new Array(source.length); 
-					for (i=0; i<source.length; i++) 
-					{
-						dataGraph[i] = new Array(); //dataGraph contains the individual points for each source i
-						for(row=0;row<dataSource[i].length;row++)
-						{
-							rows=line[row].split(',');
-							dataGraph[i].push(rows[4]);
-                        }
-							$('#data').append(i + ": " + source[i] + ' GRAPH DATA ' + dataGraph[i]);
-                    }
-				}
-
                  CAL.addEventListener("onSelect", function(){
 							day =this.selection.print("%d").join("\n");
 							month =this.selection.print("%m").join("\n");
 							year =this.selection.print("%Y").join("\n");	
-							//document.getElementById('data').innerHTML="Calendar selected! ";
-							 //displayXMLData();         
-                             alert("test data");
                              testData();
                         	
