var oPopup = document.createElement('div'); var PageLoaded; var LogPageLoaded; var PageLoadedCancell; var fixedX = -1; // x position (-1 if to appear below control) var fixedY = -1; // y position (-1 if to appear below control) var startAt = 0; // 0 - sunday ; 1 - monday var showWeekNumber = 0; // 0 - don't show; 1 - show var showToday = 1; // 0 - don't show; 1 - show var imgDir = "/common/images/images2/"; // directory for images ... e.g. var imgDir="/img/" var gotoString = "현재 달로 이동"; var todayString = "오늘"; var weekString = "Wk"; var scrollLeftMessage = "Click to scroll to previous month. Hold mouse button to scroll automatically."; var scrollRightMessage = "Click to scroll to next month. Hold mouse button to scroll automatically."; var selectMonthMessage = "월을 선택하세요."; var selectYearMessage = "연도를 선택하세요"; var selectDateMessage = "날짜 [date] 선택."; // do not replace [date], it will be replaced by date. var crossobj, crossMonthObj, crossYearObj, monthSelected, yearSelected, dateSelected, omonthSelected, oyearSelected, odateSelected, monthConstructed, yearConstructed, intervalID1, intervalID2, timeoutID1, timeoutID2, ctlToPlaceValue, ctlNow, dateFormat, nStartingYear; var bPageLoaded=false; var ie=document.all; var dom=document.getElementById; var ns4=document.layers; var today = new Date(); var dateNow = today.getDate(); var monthNow = today.getMonth(); var yearNow = today.getFullYear(); var imgsrc = new Array("down.gif","drop2.gif","arrow.gif","left2.gif","right1.gif","right2.gif"); var img = new Array(); var bShow = false; /* hides and objects (for IE only) */ function show_Element( elmID ){ if( ie ){ for( var i = 0; i < document.all.tags( elmID ).length; i++ ){ obj = document.all.tags( elmID )[i]; if( !obj || !obj.offsetParent ) continue; obj.style.visibility = ""; } } } function HolidayRec (d, m, y, desc){ this.d = d; this.m = m; this.y = y; this.desc = desc; } var HolidaysCounter = 0; var Holidays = new Array(); function addHoliday (d, m, y, desc){ Holidays[HolidaysCounter++] = new HolidayRec ( d, m, y, desc ); } if (dom){ for (var i=0;i