Index: schedule/Module/calendar.php
===================================================================
--- schedule/Module/calendar.php	(revision 16420)
+++ schedule/Module/calendar.php	(revision 16429)
@@ -109,7 +109,7 @@
 							var val = [];
 							var T = [];
-							var src = 0;
+							int sources = 0;
 							
-								for(src=0;src<source.length;src++)
+								for(sources=0;src<source.length;sources++)
 								  {
 								if (window.XMLHttpRequest)
@@ -128,6 +128,6 @@
 									{
 											
-												Data[src]= new Array();
-												//Data[src]= new Array();
+												Data[sources]= new Array();
+												//Data[sources]= new Array();
 												
 												line=xmlhttp.responseText.split('\n');
@@ -135,16 +135,16 @@
 												{
 													rows=line[row].split(',');
-													Data[src].push(rows[4]);
+													Data[sources].push(rows[4]);
 												}
 											
 											
-											GraphData(Data, src);
-											//document.getElementById('data').innerHTML=Data[src];
+											GraphData(Data, sources);
+											//document.getElementById('data').innerHTML=Data[sources];
 									}
 								}
 								
-								xmlhttp.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[src])+"&time="+year+"-"+month+"-"+day,true);
+								xmlhttp.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[sources])+"&time="+year+"-"+month+"-"+day,true);
 								xmlhttp.send();
-								document.getElementById('data').innerHTML=source.length+""+src;
+								document.getElementById('data').innerHTML=source.length+""+sources;
 								}
 							
@@ -155,5 +155,5 @@
 									/*for(ii=0;ii<Data[i].length;ii++)
 									{*/
-										document.getElementById('day').innerHTML=array[i];
+										document.getElementById('day').innerHTML=array[index];
 									/*}*/
 								}
