// flash_javascript
	function flashWrite(url,w,h,id,bg,win,scale,it){

	var flashStr=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='wmode' value='"+win+"'>"+
	"<param name='Menu' value='false'>"+
	"<param name='quality' value='high'>"+
	"<param name='bgcolor' value='"+bg+"' />"+

	"<param name='allowScriptAccess' value='always'>"+
	"<embed src='"+url+"' wmode='transparent' width='"+w+"' height='"+h+"' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>"+
	"</object>";

 document.write(flashStr);

}


function OpenWindow(url,intWidth,intHeight) {
      window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",resizable=1,scrollbars=1") ;
} 
var oakRsrvWin;

function OpenFlashWindow(url,intWidth,intHeight) {
	var winPosLeft	= (screen.width  - intWidth) / 2;
	var winPosTop	= (screen.height - intHeight) / 2;
	
	
	var ua = navigator.userAgent;
	//alert(ua);
	/*
	if (navigator.appName == "Microsoft Internet Explorer")	{
		IE55 = (ua.indexOf('MSIE 5.5')>0);
		IE6 = (ua.indexOf('MSIE 6')>0);
		IE7 = (ua.indexOf('MSIE 7')>0);
		IE8 = (ua.indexOf('MSIE 8')>0);
	}
	if (ua.indexOf('MSIE 6') > 0 || ua.indexOf('MSIE 5.5') > 0) {
		//intHeight += 2;
	}
	*/

	winPosTop = 10;
	if (isLoginChk == 1) {
		/*
		if (window.showModalDialog && navigator.appName == "Microsoft Internet Explorer") {
			
			// ¸ð´Þ Ã¢À¸·Î ¶ç¿ì±â#####################
			var mdOption = "";
			mdOption	 += "edge:sunken; help:0;status:0; scroll:0; resizable:0;";
			mdOption	 += "dialogWidth:"+intWidth+"px; dialogHeight:"+intHeight+"px;";
			mdOption	 += "dialogTop:" + winPosTop + "px; dialogLeft:" + winPosLeft + "px";

			oakRsrvWin = window.showModalDialog(url, "oakReservation", mdOption);
			// ¸ð´Þ Ã¢À¸·Î ¶ç¿ì±â#####################
		} else {
		*/	
			// »õ Ã¢À¸·Î ¶ç¿ì±â#######################
			oakRsrvWin = window.open(url, "oakReservation", "width="+intWidth+",height="+intHeight+",top="+winPosTop+", left="+winPosLeft+", status=1,resizable=0,scrollbars=0") ;
			oakRsrvWin.focus();
			// »õ Ã¢À¸·Î ¶ç¿ì±â#######################
		//}

		
	} else {
		alert("·Î±×ÀÎÀÌ ÇÊ¿äÇÕ´Ï´Ù. ·Î±×ÀÎ ÇÑ ÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä");
		location.href = "/member_2009/login.asp?pageCode=frt011202&nexturl=/new_index.asp?pageCode=frt01";
	}

} 
function logout(url) {
	
	location.href=url;
}

function expandingWindow(website) {

var windowprops='width=100,height=100,scrollbars=yes,status=yes,resizable=yes' 
// ¡è ÃÊ±â¿¡ Á¶±×¸¶ÇÑ À©µµ¿ì¸¦ ¿­¶§ÀÇ ¿É¼ÇÀ» ÁöÁ¤ÇÕ´Ï´Ù
var heightspeed = 2;
// ¡è ¼öÁ÷ ½ºÅ©·Ñ ¼Óµµ¸¦ ÁöÁ¤ÇÕ´Ï´Ù
var widthspeed = 7;
// ¡è ¼öÆò ½ºÅ©·Ñ ¼Óµµ¸¦ ÁöÁ¤ÇÕ´Ï´Ù
var leftdist = 0;
// ¡è À©µµ¿ìÀÇ ¿ÞÂÊ ³¡ À§Ä¡
var topdist = 0;
// ¡è À©µµ¿ìÀÇ À§ÂÊ ³¡ À§Ä¡

if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
var winwidth = window.screen.availWidth - leftdist;
var winheight = window.screen.availHeight - topdist;
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist +","+ windowprops);
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)
sizer.resizeTo("1", sizeheight);
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)
sizer.resizeTo(sizewidth, sizeheight);
sizer.location = website;
}
else
window.open(website,'mywindow');
}


function fieldAutoNextFocus(curObj, nextObj, vlength) {
  //alert("!");
  //alert(curObj.value+":"+nextObj.value+":"+vlength);
  if (curObj.value.length == vlength) {
	 nextObj.focus();
	 return;
  }
}




function changeImage(filename) { mainimage.src = filename; }


// Tab Content
function initTabMenu(tabContainerID) {
	var tabContainer = document.getElementById(tabContainerID);
	var tabAnchor = tabContainer.getElementsByTagName("a");
	var i = 0;

	for(i=0; i<tabAnchor.length; i++) {
		if (tabAnchor.item(i).className == "tab")
			thismenu = tabAnchor.item(i);
		else
			continue;

		thismenu.container = tabContainer;
		thismenu.targetEl = document.getElementById(tabAnchor.item(i).href.split("#")[1]);
		thismenu.targetEl.style.display = "none";
		thismenu.imgEl = thismenu.getElementsByTagName("img").item(0);
		thismenu.onclick = function tabMenuClick() {
			currentmenu = this.container.current;
			if (currentmenu == this)
				return false;

			if (currentmenu) {
				currentmenu.targetEl.style.display = "none";
				if (currentmenu.imgEl) {
					currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_c.gif", ".gif");
				} else {
					currentmenu.className = currentmenu.className.replace(" c", "");
				}
			}
			this.targetEl.style.display = "";
			if (this.imgEl) {
				this.imgEl.src = this.imgEl.src.replace(".gif", "_c.gif");
			} else {
				this.className += " on";
			}
			this.container.current = this;

			return false;
		};

		if (!thismenu.container.first)
			thismenu.container.first = thismenu;
	}
	if (tabContainer.first)
		tabContainer.first.onclick();
}
//ÇÁ¸°Æ® °ü·Ã ½ºÅ©¸³Æ® div ¿µ¿ª¸¸ ÇÁ¸°Æ®ÇÔ 
var win=null;
  function printIt(printThis)  {
    win = window.open();
    self.focus();
    win.document.open();
    win.document.write('<'+'html'+'><'+'head'+'>');
    win.document.write("<"+"link"+" rel='stylesheet'"+" type="+"'text"+"/"+"css'"+" href="+"'/"+"arthall"+"/"+"common"+"/"+"css"+"/"+"print.css'"+"/"+">");
	win.document.write("<"+"/"+"head"+"><"+"body"+">");
    win.document.write(printThis);
    win.document.write('<'+'/'+'body'+'><'+'/'+'html'+'>');
    win.document.close();
    win.print();
    win.close();
  }

