	function setscode(scode){
		document.cookie = "cts=1;path=/";
		cookie_data = document.cookie+";";
		ckchk = cookie_data.indexOf("cts");

		if (ckchk != -1){
			theURL = 'http://www.gakkou.net/myscl/?md=set&scode='+scode;
			winName = 'myshools';
			height = screen.height;
			features = 'scrollbars=yes,resizable=no,location=no,menubar=no,width=520,height=505';
			win=window.open(theURL,winName,features);
			win.moveTo(0,0);
		}else{
			alert("Cookieを有効にしてください。");
		}

	}

	
	
	function deleteCookie(cookieName){
		document.cookie = cookieName + "=;expires=Thu,01-Jan-89 00:00:01 GMT" + ";path=/"
		return true;
	}

	function mysc_go(scode,kdir){
		window.opener.location='http://www.gakkou.net/'+kdir+'/view/index_'+scode+'.html';
//		window.close();
//		win.window.focus();
	}


	function WinOopen(theURL,winName,features) {
		window.open(theURL,winName,features);
	}

	function MyScOpen() {
		theURL = 'http://www.gakkou.net/myscl/';
		winName = 'myshools';
			height = screen.height;
			features = 'scrollbars=yes,resizable=no,location=no,menubar=no,width=520,height=505';
		win=window.open(theURL,winName,features);
		win.moveTo(0,0);
	}
