function getHTTPObject()
{
   var http = false;

   if (window.XMLHttpRequest) { // Mozilla, Safari,...
       http = new XMLHttpRequest();
       if (http.overrideMimeType) {
           http.overrideMimeType('text/html');
       }
   } else if (window.ActiveXObject) { // IE
       try {
           http = new ActiveXObject("Msxml2.XMLHTTP");
       } catch (e) {
           try {
               http = new ActiveXObject("Microsoft.XMLHTTP");
           } catch (e) {}
       }
   } 
	return http; 
} 
var base_url = "http://www.mackinacferry.com/";
function get_schedule( scheduleId )
{
	var http = getHTTPObject(); // We create the HTTP Object
	var url = "schedule-" + scheduleId + ".js";
	http.open("GET",base_url + url,true);
	http.onreadystatechange = function()
	{
		if(http.readyState == 4)
		{
			var results = http.responseText;
			document.getElementById('edit-divy').innerHTML = results;
		}
	}
	http.send(null);
}
