document.writeln('<a class="links" href="javascript:VanGalderSchedule(\'ohare\');">Rockford To O\'Hare Schedule</a> - ');
document.writeln('<a class="links" href="javascript:VanGalderSchedule(\'rockford\');">O\'Hare To Rockford Schedule</a><br><br>');
document.writeln('<div id="scheddiv"></div>');

function LoadVanGalderPage(page,usediv) {
         // Set up request varible
         try {xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP");}  catch (e) { alert("Error: Could not load page.");}
         //Show page is loading
         document.getElementById(usediv).innerHTML = '<b>Loading Schedule...</b>';
         //scroll to top
         scroll(0,0);
         //send data
         xmlhttp.onreadystatechange = function(){
                 //Check page is completed and there were no problems.
                 if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
                        //Write data returned to page
                        document.getElementById(usediv).innerHTML = xmlhttp.responseText;
                 }
         }
         xmlhttp.open("GET", page);
         xmlhttp.send(null);
         //Stop any link loading normaly
         return false;
}

function VanGalderSchedule(to_val){LoadVanGalderPage("/van_galder_schedule.asp?to=" + to_val,"scheddiv");}
VanGalderSchedule('ohare');
