

var isDOM = (document.getElementById ? true : false); 
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}
var isNS = navigator.appName == "Netscape";
function moveRightEdge() {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
	if (isNS4) {
		yMenuFrom   = divMenu.top;
		yMenuTo     = windows.pageYOffset + 260;   // À§ÂÊ À§Ä¡
	} else if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 260; // À§ÂÊ À§Ä¡
	}
	timeoutNextCheck = 500;
	if (yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
		if (yMenuTo < yMenuFrom)
			yOffset = -yOffset;
		if (isNS4)
			divMenu.top += yOffset;
		else if (isDOM)
			divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
			timeoutNextCheck = 10;
	}
	setTimeout ("moveRightEdge()", timeoutNextCheck);
}




function PagePrint(){
if (confirm('¼±ÅÃÇÑ ¹®¼­¸¦ ÀÎ¼âÇÏ·Á¸é »õ·Î¿î Ã¢À» ¶ç¿ö¾ß ÇÕ´Ï´Ù °è¼ÓÇÏ½Ã°Ú½À´Ï±î?'))
    {
      var objWin = window.open('', 'printerWindow', 'width=640,height=500,resizable=no,scrollbars,toolbar=no,menubar=no');
      var strHtml = '';
      strHtml += '<html>';
      strHtml += '<table width=100% cellpadding=5 bgcolor=#efefef><tr><td><input type=button onClick=print() value=Print><\/td><\/tr><\/table>';
      strHtml += objContents.innerHTML;
      strHtml += '<br>';
      strHtml += '<\/html>';
      objWin.document.open();
      objWin.document.write(strHtml);
      objWin.document.close();
    }

}