	function sendRequest (day) {

		var url = 'schedule_get_day.php';

		if (day != null) {
			var params = 'weekday=' + day;
		} else {
			var params = $('schedule_day_form').serialize(true);
		}

		var ajax = new Ajax.Request(url, {
			method: 'post',
			parameters: params,
			onLoading: showLoading,
			onComplete: showResponse
		} );

	} // end sendRequest

	function showLoading () {
		$('status').innerHTML = "<p>Loading...<br /><img src=\"../images/ajax-loader.gif\" alt=\"Loading\" /></p>";
	} // end showLoading

	function showResponse (request) {

		$('status').innerHTML = request.responseText;

		var response = /<table class="schedule"/;

		if (request.responseText.match(response)) {
			$('status').style.color = "#fff";
		} else {
			$('status').style.color = "#ff0000";
		}

	} // end showResponse
