/* !フラッシュ貼付け用処理 ──────────────────────────────── */
function FlashWrite(){
	AC_FL_RunContent(
		'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
		'width', '625',
		'height', '460',
		'src', 'ibero_japan',
		'quality', 'high',
		'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
		'align', 'middle',
		'play', 'true',
		'loop', 'true',
		'scale', 'showall',
		'wmode', 'window',
		'devicefont', 'false',
		'id', 'ibero_japan',
		'bgcolor', '#ffffff',
		'name', 'ibero_japan',
		'menu', 'true',
		'allowFullScreen', 'false',
		'allowScriptAccess','sameDomain',
		'movie', 'ibero_japan',
		'salign', ''
	)
}



/* !このページの先頭へ戻るボタン処理 ─────────────────────── */
function pageTop() {
	var sc1 = sc2 = sc3 = 0;
	if (document.documentElement) {
		sc1 = document.documentElement.scrollTop || 0;
	}
	if (document.body) {
		sc2 = document.body.scrollTop || 0;
	}
	sc3 = window.scrollY || 0;
	var sc = Math.max(sc1, Math.max(sc2, sc3));
	window.scrollTo(0, Math.floor(sc / 1.1));
	if (sc > 0) {
		window.setTimeout("pageTop()", 10);
	}
}



/* !削除用アラート処理 ────────────────────────────────── */
function delChk(url){
	if(window.confirm('削除してもよろしいですか？\n削除しない場合は[キャンセル]ボタンを押して下さい')){
		location.href = url;
	}
}



/* !CSVダウンロード処理 ───────────────────────────────── */
function openWin(win){
	window.open(win,"_self");
}



/* !順序切り替え用ジャンプリスト処理 ─────────────────────── */
function menuLink(linkLoc) {
	if(linkLoc !="") {
		window.location.href=linkLoc;
	} 
}



/* !2度押し回避処理 ───────────────────────────────────── */
var set=0;
function twoclick() {
	if(set==0){
		set=1;
	}else{
		alert("2度押しを検出しました。\nOKボタンをクリックしてください。");
		return false;
	}
}



/* !ウインドウポップアップ処理 ──────────────────────────── */
function openwin(win){
	window.open(win,"_self");
}



/* !画像アップ用ウインドウポップアップ処理 ───────────────── */
function openPhWin() {
	url = "./ph.php";
	window.name="mainwin";
	sw=screen.availWidth; 
	sh=screen.availHeight;
	wl = (sw-450)/2;
	wt = (sh-200)/2;
	mainwin = window.open(url,"phupload","width=450,height=200,,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=" + wl + ",top=" + wt);
}

