//右クリック禁止
window.onload = function(){
	var tags = document.getElementsByTagName("img");
	var num = tags.length;
	for(var i=0;i<num;i++){
		tags[i].oncontextmenu = function(){
		return false;
		}
	}
}
//ページをプリントする
//指定方法（javascript:printPage();）
function printPage() { print(document); }

//ページトップに戻る
//指定方法（onclick="jumpToPageTop(event);return false;"）
function jumpToPageTop(e) {
	UAGENT = navigator.userAgent.toUpperCase();
	if (UAGENT.indexOf("MSIE") >=0) {
		pos = event.y;
	} else {
		pos = e.pageY;
	}
	pageScroll(pos);
}

function pageScroll(posi) {
	dist = posi / 6;
	nPos = parseInt(posi - dist);
	scrollTo(0,nPos);
	if (nPos > 0) {
		setTimeout("pageScroll(nPos)",10);
	}
}

//Pop Up Window
function openSubWin(path, w, h){
newWindow = window.open(path, "syosai", "width=" + w + ",height=" + h + ",scrollbars=yes");
newWindow.focus();
}

//ジャンプメニュー
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
