var end_date = Math.round(new Date().valueOf()/86400000)-1; //change this back to 1 later
var start_date = end_date - 100; //This is June 6, 2009

function Loaded_Chart(id)
{
	var index = id.substring(6);
	var xml = showTheGraph(aString[index], hrange[index], hmetric[index]);
	setTimeout(function(){
		document[id].Update_XML( xml, true );
		}, 100);
}

var currentActiveServices = new Array();
function getCurrentActiveServices()
{
	if(currentActiveServices.length==0)
	{
		$.ajax({
				type:	'GET',
				url:	"/ajax/getCurrentActiveServices/2", 
				dataType:	'json',
				success: function(data)
				{
					currentActiveServices[0] = new Array();
					currentActiveServices[1] = new Array();
					
					$.each(data, function(key,value){
						currentActiveServices[0].push(value.service_name);
						currentActiveServices[1].push(value.pretty_name);
					});
				
				},
				async: false
			});
	}
	return currentActiveServices;
}
getCurrentActiveServices();

