// Top画面用
function ajaxReqTop(url){
	var msec = (new Date()).getTime();
	new Ajax.Request(url,{
		method: "get",
		parameters: "cache="+msec,
		onSuccess: function(httpObj){
			//$("def").style.display = "none";
			$("reserve_table").innerHTML = httpObj.responseText;
		},
		onFailure: function(httpObj){
		 	$("reserve_table").innerHTML = "";
		}
	});
}




//体操のススメ用
function ajaxReqT(url){
	var msec = (new Date()).getTime();
	new Ajax.Request(url,{
		method: "get",
		parameters: "cache="+msec,
		onSuccess: function(httpObj){
			$("def").style.display = "none";
			$("taisouText").innerHTML = httpObj.responseText;
		},
		onFailure: function(httpObj){
		 	$("taisouText").innerHTML = "<img src='img/making.png' style='margin-left:150px;margin-top:80px' />";
		}
	});
}



//体の痛みをとる２４の方法用
function openwin(url){
	var textUrl;
	switch(url){
	case 1:
		textUrl = "http://kinseiin.net/contents/ho24/1_heso.html";
		break;
	case 2:
		textUrl = "http://kinseiin.net/contents/ho24/2_mizo.html";
		break;
	case 3:
		textUrl = "http://kinseiin.net/contents/ho24/3_youtu_kihon.html";
		break;
	case 4:
		textUrl = "http://kinseiin.net/contents/ho24/4_youtu_jinzo.html";
		break;
	case 5:
		textUrl = "http://kinseiin.net/contents/ho24/5_youtu_kanzo.html";
		break;
	case 6:
		textUrl = "http://kinseiin.net/contents/ho24/6_youtu_fujin.html";
		break;
	case 7:
		textUrl = "http://kinseiin.net/contents/ho24/7_youtu_chugosi.html";
		break;
	case 8:
		textUrl = "http://kinseiin.net/contents/ho24/8_youtu_tanin.html";
		break;
	case 9:
		textUrl = "http://kinseiin.net/contents/ho24/9_katakori_kihon.html";
		break;
	case 10:
		textUrl = "http://kinseiin.net/contents/ho24/10_katakori_me.html";
		break;
	case 11:
		textUrl = "http://kinseiin.net/contents/ho24/11_katakori_ude.html";
		break;
	case 12:
		textUrl = "http://kinseiin.net/contents/ho24/12_katakori_tanin.html";
		break;
	case 13:
		textUrl = "http://kinseiin.net/contents/ho24/13_gojukata.html";
		break;
	case 14:
		textUrl = "http://kinseiin.net/contents/ho24/14_hizatu.html";
		break;
	case 15:
		textUrl = "http://kinseiin.net/contents/ho24/15_kenshoen.html";
		break;
	case 16:
		textUrl = "http://kinseiin.net/contents/ho24/16_nenza.html";
		break;
	case 17:
		textUrl = "http://kinseiin.net/contents/ho24/17_haita.html";
		break;
	case 18:
		textUrl = "http://kinseiin.net/contents/ho24/18_ji.html";
		break;
	case 19:
		textUrl = "http://kinseiin.net/contents/ho24/19_zutu.html";
		break;
	case 20:
		textUrl = "http://kinseiin.net/contents/ho24/20_zensoku.html";
		break;
	case 21:
		textUrl = "http://kinseiin.net/contents/ho24/21_seki.html";
		break;
	case 22:
		textUrl = "http://kinseiin.net/contents/ho24/22_kafukubu.html";
		break;
	case 23:
		textUrl = "http://kinseiin.net/contents/ho24/23_itu.html";
		break;
	case 24:
		textUrl = "http://kinseiin.net/contents/ho24/24_ikaiyou.html";
		break;
	case 25:
		textUrl = "http://kinseiin.net/contents/ho24/25_seiritu.html";
		break;
	}

	var win = window.open(textUrl,"newwin","width=750,resizable=yes,scrollbars=yes,toolbar=yes");
	win.focus();
}

function win_close(){
	window.close();
}

function win_open(){
	SubWindow = window.open("contents/map.html","mapWin","width=600,height=500")
}

function ajaxReq(url){
	var msec = (new Date()).getTime();
	new Ajax.Request(url,{
		method: "get",
		parameters: "cache="+msec,
		onSuccess: function(httpObj){
			$("def").style.display = "none";
			$("kanjaText").innerHTML = httpObj.responseText;
		},
		onFailure: function(httpObj){
		 	$("kanjaText").innerHTML = "<img src='img/making.png' style='margin-left:150px;margin-top:80px' />";
		}
	});
}

function ajaxReqK(url){
	var msec = (new Date()).getTime();
	new Ajax.Request(url,{
		method: "get",
		parameters: "cache="+msec,
		onSuccess: function(httpObj){
			$("kouzaText").innerHTML = httpObj.responseText;
		},
		onFailure: function(httpObj){
		 	$("kouzaText").innerHTML = "<img src='img/making.png' style='margin-left:150px;margin-top:80px' />";
		}
	});
}


