/*-------------------------------------------
	別ウィンドウ表示
	
	url・・・新しいウィンドウのURL
	h  ・・・ウィンドウの高（省略化）
	w  ・・・ウィンドウの幅（省略化）
-------------------------------------------*/
function wopen(url,w,h) {
	var cw=0, ch=0;

	if (w==null || h==null) {
		obj = window.open(url);
	}else {
		cw=(window.screen.width - w) / 2;
		ch=(window.screen.height - h) / 2;
		obj = window.open(url,'newwin','width='+ w +',height='+ h +',top='+ ch +',left=' + cw + ',menubar=yes'); 
	}
	obj.focus();
}

/*-------------------------------------------
	フラッシュ実行
	
	url・・・実行するフラッシュのURL
	h  ・・・フラッシュの高
	w  ・・・フラッシュの幅
	iurl ・・代替要素のURL
	ih ・・・代替要素の高
	iw ・・・代替要素の幅
	icm・・・代替要素の説明
-------------------------------------------*/
function exeflash(url,w,h,iurl,iw,ih,icm) {

	html = "";
	html += "<object data='" + url + "' type='application/x-shockwave-flash' width='" + w + "' height='" + h + "'>\n";
	html += "<param name='movie' value='" + url + "'/>\n";
	if (iurl!=null && iw!=null && ih!=null && icm!=null) {
		html += "<img src='" + iurl + "' width='" + iw + "' height='" + ih + "' alt='" + icm + "' />\n";
	}
	html += "</object>\n";
	document.write(html);
}

/*-------------------------------------------
	イメージ変更
	obj・・・変更元のオブジェクト
	url・・・変更先イメージのURL
-------------------------------------------*/
function chgImg(obj,url){
	document.getElementById(obj).src = url;
}

/*-------------------------------------------
	テキスト変更
	obj ・・・変更元のオブジェクト
	text・・・変更先テキスト文字列
-------------------------------------------*/
function chgTxt(obj,text){
	document.getElementById(obj).innerHTML = text;
}

/*-------------------------------------------
	背景色変更
	obj  ・・・変更元のオブジェクト
	color・・・変更する背景色
-------------------------------------------*/
function chgBKClr(obj,color){
	document.getElementById(obj).style.backgroundColor = color;
}

/*-------------------------------------------
	背景画像変更
	obj  ・・・変更元のオブジェクト
	img・・・変更する背景画像
-------------------------------------------*/
function chgBKImg(obj,img){
	document.getElementById(obj).style.backgroundImage = img;
}



