﻿	
function changeFrames(saki)
	{

		var hidari='left/'+saki+'_l.html';
		var migi='right/'+saki+'_r.html';
	     

		   parent.left.location.href = hidari;
		   parent.right.location.href =migi;
		   parent.shita.location.href='1_s.html'
	}

	function show_tizu()

	{

var path=parent.right.window.location.href; 
var file=path.substring(path.lastIndexOf('/',path.length)+1,path.length); 

//var tag=file.substring(file.lastIndexOf('_',file.length)+1,file.length); 

//var tag=file.substring(file.length,file.lastIndexOf('_',file.length)+1); 
var tag=file.lastIndexOf('_');
var ff=file.substring(0,tag)
//document.write(ff);

var vv='shita/'+ff+'_m.html';


//var vv=ff+'_m.html';

//alert(vv);

//parent.shita.location.href=vv;
//top.parent.location.href=vv;
//parent.location.href=vv;

 //win1 = window.open("http://www.yahoo.co.jp", "yahoo");
 //win1 = window.open(vv, "yahoo");


//location.replace(vv) 

//window.opener.parent.location.href = vv;

//winSet(vv);
window.open(vv,'_blank'); return false;
//win1 = window.open("http://www.yahoo.co.jp", "yahoo");


	}




function winSet(jumpurl) {
if(window.opener && !window.opener.closed) {
window.close();
window.opener.parent.location.href = jumpurl;
} else {
alert("元のウィンドウがない場合の処理に変更してください");
}
}

