var in_menu = "menu1";
var in_mado = "mado1";
if(location.href.indexOf("miyakekobo",0)==-1){location.href="http://www.yahoo.co.jp/";}
function mado_io(id_menu,id_mado){
	if(in_mado==id_mado){
	document.getElementById(id_mado).style.visibility='hidden';
	document.getElementById(id_menu).style.backgroundColor='#eeeeee';
	document.getElementById(id_menu).style.border='1px outset #ffffee';
	in_mado="";
	in_menu="";
	}else{
	if(in_menu!=""){
		document.getElementById(in_mado).style.visibility='hidden';
		document.getElementById(in_menu).style.backgroundColor='#eeeeee';
		document.getElementById(in_menu).style.border='1px outset #ffffee';
		}
	document.getElementById(id_mado).style.visibility='visible';
	document.getElementById(id_menu).style.backgroundColor='#ffffff';
	document.getElementById(id_menu).style.border='1px inset #ffffee';
	in_mado=id_mado;
	in_menu=id_menu;
	}
}
function ed(sel_ed,sel_p) {
	document.getElementById(sel_p).innerHTML = document.getElementById(sel_ed).value;
}
function ed_js(sel_ed) {
	sinw = window.open();
	sinw.document.open();
	sinw.document.write(document.getElementById(sel_ed).value);
	sinw.document.close();
}
function ed_if(sel_ed) {
	myif.document.open();
	myif.document.write(document.getElementById(sel_ed).value);
	myif.document.close();
}
function ed_win(sel_ed,ed_n,ed_x,ed_y) {
	sinw = window.open("../blank.html",ed_n,"width="+ed_y+",height="+ed_x);
	sinw.document.open();
	sinw.document.write(document.getElementById(sel_ed).value);
	sinw.document.close();
}
function resetf(){
	location.href=location.href;
}
//--------------------------------------------------
var source_hata=false;

function source_hyouji(){
if(source_hata){
document.getElementById("source_but").value="ソースを表示";
document.getElementById("source_area").style.height=10;
document.getElementById("source_area").style.visibility="hidden";
source_hata=false;
}else{
document.getElementById("source_but").value="ソースを消去";
document.getElementById("source_area").style.height=source_height;
document.getElementById("source_area").style.visibility="visible";
source_hata=true;
}}
function source_wop() {
var source_data=document.getElementById("source_area").value;
var source_data_html="<html><body><center>"+source_data+"</center>";
sinw = window.open();
sinw.document.open();
sinw.document.write(source_data_html);
sinw.document.close();
}
