<!--
//===========================================================
// 直イメージ変更関数:jpg
// Netscape 4.xには未対応：imgタグにonMouseイベントが無い為
//===========================================================
function	srChangeMyself(obj, path, name, onoff)
{
	if( onoff == 'on' ) {
		obj.src = "/top/" + path + "/images/" + name + "_a.jpg";
	}
	else {
		obj.src = "/top/" + path + "/images/" + name + "_s.jpg";
	}
}


//===========================================================
// 直イメージ変更関数:gif
// Netscape 4.xには未対応：imgタグにonMouseイベントが無い為
//===========================================================
function	gsrChangeMyself(obj, path, name, onoff)
{
	if( onoff == 'on' ) {
		obj.src = "/top/" + path + "/images/" + name + "_a.gif";
	}
	else {
		obj.src = "/top/" + path + "/images/" + name + "_s.gif";
	}
}


//===========================================================
// 直イメージ変更関数:jpg（ファイル指定・汎用）
// Netscape 4.xには未対応：imgタグにonMouseイベントが無い為
// Created : (2003-07-10) MUKAS
//===========================================================
function	imgChangeMyself(obj, path, name, id)
{
	obj.src = "/top" + path + "/images/" + name + "_" + id + ".jpg";
}


//===========================================================
// 直イメージ変更関数:gif（ファイル指定・汎用）
// Netscape 4.xには未対応：imgタグにonMouseイベントが無い為
// Created : (2003-07-10) MUKAS
//===========================================================
function	gimgCM(obj, path, name, id)
{
	obj.src = "/top" + path + "/images/" + name + "_" + id + ".gif";
}
function	gimgChangeMyself(obj, path, name, id)
{
	gimgCM(obj, path, name, id);
}


//===========================================================
// 直イメージ変更関数 : （ファイル直接指定・汎用）
// Created : (2003-11-13) MUKAS  from FS-SITE.
//===========================================================
function imgCMR(obj, path, name)
{
	obj.src = "/main/soft/yoshitsune" + path + "/images/" + name;
}
function imgChangeMyselfR(obj, path, name)
{
	imgCMR(obj, path, name);
}


//===========================================================
// 直イメージ変更関数 : （ファイル直接指定・汎用）
// Created : (2003-11-13) MUKAS  from FS-SITE.
//===========================================================
function imgCMRp(obj, name)
{
	obj.src = "/main/soft/yoshitsune" + name;
}
function imgChangeMyselfR_path(obj, name)
{
	imgCMR(obj, name);
}


//===========================================================
// 直イメージ変更関数 : gif（ファイル指定・汎用）
// Cewated : (2003-11-13) MUKAS  from FS-SITE.
//===========================================================
function gimgChangeRemote(path, id, name, type)
{
//	document.images[ id ].src = "/top" + path + "/images/" + name + "_" + type + ".gif";
}


//===========================================================
// 直イメージ変更関数 : （ファイル直接指定・汎用）
// Created : (2003-11-13) MUKAS  from FS-SITE.
//===========================================================
function imgCRR(path, id, name)
{
	if( id == "" ) { return; }
	document.images[ id ].src = "/main/soft/yoshitsune" + path + "/images/" + name;
}
function imgChangeRemoteR(path, id, name)
{
	imgCRR(path, id, name);
}


//===========================================================
// 直イメージ変更関数 : jpg（ファイル指定・汎用）
// Copyed : (2003-10-10) MUKAS  from FS-SITE.
//===========================================================
function imgChange(url, id, type)
{
	//sid : 同じイメージAを違うイメージオブジェクトに使う際に指定('a', 'b', 'c', ...)
	//iid : 同じイメージオブジェクトに違うイメージを使う際に指定('A', 'B', 'C', ...)
	
    var real_id;
    
	if( id<10 ) { id="0"+id; }
    real_id = id;
	
	document.images["chg"+id].src = "/top"+url+"/images/btn"+real_id+"_"+type+".jpg";
}


//===========================================================
// 直イメージ変更関数 : gif（ファイル指定・汎用）
// Copyed : (2003-10-10) MUKAS  from FS-SITE.
//===========================================================
function gimgChange(url, id, type)
{
    var real_id;
    
	if( id<10 ) { id="0"+id; }
    real_id = id;
	
	document.images["chg"+id].src = "/top"+url+"/images/btn"+real_id+"_"+type+".gif";
}


//===========================================================
// ウィンドウを開く（オープナー判定）
// Created : (2003-07-10) MUKAS
//===========================================================
function	OpenOpener(opnr, url, name)
{
	if( ( opnr == undefined ) || ( opnr.closed ) ){
		var NewWin;
		NewWin = window.open( url, name );
		NewWin.focus();
	}
	else{
		opnr.location.href = url;
		opnr.focus();
	}
}


//===========================================================
// ウィンドウを開く
// Created : (2003-07-23) MUKAS
// 天誅ティザ用に改造（改造前は OpenWindowDefault ）
//===========================================================
function	OpenWindowNormal(url, name, wid, hei)
{
	wid += 0;
	hei += 3;

	var NewWin;
	var WinStt = "scrollbars=yes,directories=no,location=no,status=no,resizable=yes,toolbar=no,menubar=no,width=" + wid;
	WinStt += ",height=" + hei + ",screenX=20, screenY=20,left=20,top=20";
	NewWin = window.open( url, name, WinStt );

	NewWin.focus();
}

//===========================================================
// ウィンドウを開く
// Created : (2003-07-23) MUKAS
//===========================================================
function	OpenWindowDefault(url, name, wid, hei)
{
	wid += 31;
	hei += 134;

	var NewWin;
	var WinStt = "scrollbars=yes,directories=yes,location=yes,status=yes,resizable=yes,toolbar=yes,menubar=yes,width=" + wid;
	WinStt += ",height=" + hei + ",screenX=20, screenY=20,left=20,top=20";
	NewWin = window.open( url, name, WinStt );
}

//===========================================================
// ウィンドウを開く（新規：サイズ指定）
// Created : (2003-07-18) MUKAS
//===========================================================
function	OpenWindowResize(url, name, wid, hei)
{
	wid += 12;
	hei += 132;

	var NewWin;
	var WinStt = "scrollbars=no,directories=yes,location=yes,status=yes,resizable=yes,toolbar=yes,menubar=yes,width=" + wid;
	WinStt += ",height=" + hei + ",screenX=20, screenY=20,left=16,top=16";
	NewWin = window.open( url, name, WinStt );
}


//===========================================================
// ウィンドウを開く（新規：サイズ指定：簡素ウィンドウ）
// Created : (2003-07-18) MUKAS
//===========================================================
function	OpenWindowResizePure(url, name, wid, hei)
{
	var NewWin;
	var WinStt = "scrollbars=no,directories=no,location=no,status=no,resizable=no,toolbar=no,menubar=no,width=" + wid;
	WinStt += ",height=" + hei + ",screenX=20, screenY=20,left=16,top=16";
	NewWin = window.open( url, name, WinStt );
}


//===========================================================
// ウィンドウを閉じる（オープナーにフォーカス当てる）
// Created : (2003-07-18) MUKAS
//===========================================================
function	CloseWindowAndFocus2Opener(opnr, self )
{
	if( ( self != undefined ) && !( self.closed ) ){
		self.close();
	}

	if( ( opnr != undefined ) && !( opnr.closed ) ){
		opnr.focus();
	}
}


//===========================================================
// オブジェクト検索
// Created : (2003-11-27) MUKAS
//===========================================================
function fsFindObject( lName, lDoc )
{	
	var	x = null;

	if( !lDoc ) { lDoc = document; }
	if( document.getElementById( lName ) ) { x = document.getElementById( lName ); }	//IE5.x,NN6.xのメソッド
	if( !( x == lDoc[ lName ] ) && lDoc.all ) { x = lDoc.all[ lName ]; }				//IE4.x IE5.xのスタイルシート
	for( i = 0 ; !x && i < lDoc.links.length ; i++ ) { x = lDoc.links[ lName ]; }		//Formオブジェクトを探す場合
	for( i = 0 ; !x && lDoc.layers && i < lDoc.layers.length ; i++ ) { x = fsFindObject( lName, lDoc.layers[i].document ); }
																						//NN4.xのレイヤーオブジェクト
    return x;
}


-->
