function sd_load_page(school, page, period, subperiod, sorting) {
	divs = document.getElementById("school_detail_content");
	
	if (typeof(page)=='undefined') {
	    page = 1;
	}
	if (typeof(period)=='undefined') {
	    period = 99;
	}
	if (typeof(subperiod)=='undefined') {
	    subperiod = 0;
	}
	if (typeof(sorting)=='undefined') {
	    sorting = '';
	}
	if (typeof(school)=='undefined') {
	    return false;
	}
	if (school==0) {
	    return false;
	}
    
	sd_load_tabs(school, page);
	
	AjaxRequest.get({
		'url':'ajax_school_detail/page'+page+'.php'
		,'school':    school
		,'page':      page
		,'period':    period
		,'subperiod': subperiod
		,'sorting':   sorting
		,'onLoading': function(req)	{  }
		,'onSuccess': function(req)	{ divs.innerHTML = req.responseText; }
		,'onError':   function(req)	{ alert('Error!\nStatusText='+req.statusText+'\nContents='+req.responseText);}
	});
}

function sd_load_tabs(school, active) {
	div_tab = document.getElementById("school_detail_tabs");

	AjaxRequest.get({
		'url':'ajax_school_detail/tabs.php'
		,'school':    school
		,'active':    active
		,'onLoading': function(req) {  }
		,'onSuccess': function(req) { div_tab.innerHTML = req.responseText; }
		,'onError':   function(req) { alert('Error!\nStatusText='+req.statusText+'\nContents='+req.responseText);}
	});
}

