Index: schedule/Module/calendar.php
===================================================================
--- schedule/Module/calendar.php	(revision 16484)
+++ schedule/Module/calendar.php	(revision 16486)
@@ -102,75 +102,6 @@
 							var year =this.selection.print("%Y").join("\n");	
 							
-							/*
-							var xmlhttp;
-							var source = ['Mrk 421','Mrk 501','Crab'];
-							var SourceData = [[]];
-							var Time = [];
-							var line = [];
-							//var rows;
-							var val = [];
-							var T = [];
-							var sources = 0;
-							var xmlhttp = new Array();
 							
-							for(sources=0;sources<source.length;sources++)
-								  {
-								  alert(sources);
-								  Data = new Array(source.length);
-								if (window.XMLHttpRequest)
-								  {// code for IE7+, Firefox, Chrome, Opera, Safari
-								  xmlhttp.push(new XMLHttpRequest());
-								  }
-								  
-								else
-								  {// code for IE6, IE5
-								  xmlhttp.push(new ActiveXObject("Microsoft.XMLHTTP"));
-								  }
-								
-								
-								xmlhttp[sources].open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[sources])+"&time="+year+"-"+month+"-"+day,true);
-								xmlhttp[sources].send();
-								//document.getElementById('data').innerHTML=source.length+""+Data[sources];
-										
-								}
-								
-							for(sources=0;sources<source.length;sources++)
-								  {
-								
-								xmlhttp[sources].onreadystatechange=function()
-								  {
-								  
-								  //if (xmlhttp.readyState==4 && xmlhttp.status==200)
-								//	{
-											
-												Data[sources]= new Array();
-																				
-												line=xmlhttp[sources].responseText.split('\n');
-												for(row=0;row<line.length;row++)
-												{
-													rows=line[row].split(',');
-													Data[sources].push(rows[4]);
-												}
-											
-											
-											//GraphData(Data[sources], sources);
-											document.getElementById('data').innerHTML=sources + "...." + line;
-											//$('#data').append(line);
-									//}
-								}
-							}
-						
-							/*function GraphData(DataSource, index)
-							{
-								for(i=0;i<SourceLength;i++)
-								{
-									for(j=0;j<DataSource[i].length;j++)
-								{
-									document.getElementById('day').innerHTML=DataSource[j];
-								}
-								
-								}
-							};*/
-							function getXML() 
+						function getXML() 
 						{
 							if (window.XMLHttpRequest)
@@ -213,4 +144,5 @@
 							getXMLData();
 							//display source data here sourceData[i]
+							document.getElementById('data').innerHTML=sourceData[i];
 							}	
 						}
