var rootDir="http://www.hcn.co.jp";

/*_lesson_for_course_l*/
function loadIM(fileURL){
	fileURL=rootDir+"/course/im-lesson/"+fileURL;
	new Ajax.Request(fileURL,{method:"get",onComplete:displayIM});
}
function displayIM(httpObj){
	$("imlesson").innerHTML=httpObj.responseText;
}

function loadOR(fileURL){
	fileURL=rootDir+"/course/or-lesson/"+fileURL;
	new Ajax.Request(fileURL,{method:"get",onComplete:displayOR});
}
function displayOR(httpObj){
	$("orlesson").innerHTML=httpObj.responseText;
}

function loadMS(fileURL){
	fileURL=rootDir+"/course/ms-lesson/"+fileURL;
	new Ajax.Request(fileURL,{method:"get",onComplete:displayMS});
}
function displayMS(httpObj){
	$("mslesson").innerHTML=httpObj.responseText;
}

/*_topics_for_index_&_school*/
function loadTopics(){
	var D=new Date();
	var N=D.getFullYear();
	var fileURL=rootDir+"/topics/"+N+"/toplist.html";
	new Ajax.Request(fileURL,{method:"get",onComplete:displayFile});
}

function loadHTML(fileURL){
	fileURL=rootDir+"/topics/from_schools/"+fileURL+"/sindex.html";
	new Ajax.Request(fileURL,{method:"get",onComplete:displayFile});
}

function displayFile(httpObj){
	$("nList").innerHTML=httpObj.responseText;
}