function PopUp(page_nm) { 

	//営業日カレンダー
	if(page_nm == 'cal') w=window.open('http://www.brother.co.jp/contact/callcenter-cal/index.htm','litpguidesub','width=715,height=650,toolbar=no,toolbar=0,location=no,location=0,status=no,status=0,menubar=no,menubar=0,scrollbars=1,resizable=0,resizable=no');

	//営業日カレンダー
	if(page_nm == 'cal02') w=window.open('http://www.brother.co.jp/contact/callcenter-cal/calender2/index.htm','litpguidesub','width=715,height=650,toolbar=no,toolbar=0,location=no,location=0,status=no,status=0,menubar=no,menubar=0,scrollbars=1,resizable=0,resizable=no');

	//営業日カレンダー
	if(page_nm == 'cal03') w=window.open('http://www.brother.co.jp/contact/callcenter-cal/calender3/index.htm','litpguidesub','width=715,height=650,toolbar=no,toolbar=0,location=no,location=0,status=no,status=0,menubar=no,menubar=0,scrollbars=1,resizable=0,resizable=no');
	
	//検索キーワード一覧
	if(page_nm == 'keyword') w=window.open('/support/faq_keyword/lazer_printer.html','litpguidesub','width=800,height=650,toolbar=no,toolbar=0,location=no,location=0,status=no,status=0,menubar=no,menubar=0,scrollbars=1,resizable=0,resizable=no');

	//OS一覧
	if(page_nm == 'os_ichiran') w=window.open('/public/osl_list.html','litpguidesub','width=650,height=650,toolbar=no,toolbar=0,location=no,location=0,status=no,status=0,menubar=no,menubar=0,scrollbars=1,resizable=0,resizable=no');
	
	if(w){
		w.focus();
	}
	void(0);
}

function PopUp(strURL,strWidth,strHeight)
{ 
	var strFeature = "width=" + strWidth + ",height=" + strHeight + ",toolbar=no,toolbar=0,location=no,location=0,status=no,status=0,menubar=no,menubar=0,scrollbars=1,resizable=0,resizable=no";
	var pWindow = window.open(strURL,'litpguidesub',strFeature);

	if(pWindow){
		pWindow.focus();
	}
	void(0);
}

//ページトップに戻る
//指定方法（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);
	}
}	


//ポップアップ--（フォーカス機能追加）
//指定方法（DWのビヘイビアで設定）
function MM_openBrWindow(theURL,winName,features) { //v2.0
var winFocus;
winFocus=window.open(theURL,winName,features);
winFocus.focus();
}


//ページトップに戻る
//指定方法（javascript:jumpToPageTop();)
function getScrollLeft() { // 020225
 if ((navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1)) {
  return document.body.scrollLeft;
 } else if (window.pageXOffset) {
  return window.pageXOffset;
 } else {
  return 0;
 }
}

function getScrollTop() { // 020225
 if ((navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1)) {
  return document.body.scrollTop;
 } else if (window.pageYOffset) {
  return window.pageYOffset;
 } else {
  return 0;
 }
}

function getScrollWidth() { // 010317
 if ((navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1)) {
  return document.body.scrollWidth;
 } else if (window.innerWidth) {
  return window.innerWidth;
 }
 return 0;
}

function getScrollHeight() { // 010317
 if ((navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1)) {
  return document.body.scrollHeight;
 } else if (window.innerHeight) {
  return window.innerHeight;
 }
 return 0;
}

var pageScrollTimer;
function pageScroll(toX,toY,frms,cuX,cuY) { // 020314
 if (pageScrollTimer) clearTimeout(pageScrollTimer);
 if (!toX || toX < 0) toX = 0;
 if (!toY || toY < 0) toY = 0;
 if (!cuX) cuX = 0 + getScrollLeft();
 if (!cuY) cuY = 0 + getScrollTop();
 if (!frms) frms = 6;

 if (toY > cuY && toY > (getAnchorPosObj('end','enddiv').y) - getInnerSize().height) toY = (getAnchorPosObj('end','enddiv').y - getInnerSize().height) + 1;
 cuX += (toX - getScrollLeft()) / frms; if (cuX < 0) cuX = 0;
 cuY += (toY - getScrollTop()) / frms;  if (cuY < 0) cuY = 0;
 var posX = Math.floor(cuX);
 var posY = Math.floor(cuY);
 window.scrollTo(posX, posY);

 if (posX != toX || posY != toY) {
  pageScrollTimer = setTimeout("pageScroll("+toX+","+toY+","+frms+","+cuX+","+cuY+")",16);
 }
}

function jumpToPageTop() { // 020301
  pageScroll(0,0,5);
}


//ページをプリントする
//指定方法（javascript:printPage();）
function printPage() { print(document); }

function closeWindow() { 
window.opener = window; 
var win = window.open( location.href, "_self" ); 
win.close(); 
} 
function openAgree(url){
	location.href=url;
}

