﻿
Calendar._DN=new Array
("C.N","Hai","Ba","Tư","Năm","Sáu","Bảy","C.N");Calendar._SDN=new Array
("C.N","Hai","Ba","Tư","Năm","Sáu","Bảy","C.N");Calendar._MN=new Array
("Tháng 01","Tháng 02","Tháng 03","Tháng 04","Tháng 05","Tháng 06","Tháng 07","Tháng 08","Tháng 09","Tháng 10","Tháng 11","Tháng 12");Calendar._SMN=new Array
("Tháng 01","Tháng 02","Tháng 03","Tháng 04","Tháng 05","Tháng 06","Tháng 07","Tháng 08","Tháng 09","Tháng 10","Tháng 11","Tháng 12");Calendar._TT={};Calendar._TT["INFO"]="Giới thiệu lịch";Calendar._TT["ABOUT"]="Chọn ngày / Chọn thời gian\n\n"+"Chọn ngày:\n"+"- Sử dụng \xab, \xbb để chọn năm\n"+"- Sử dụng "+String.fromCharCode(0x2039)+", "+String.fromCharCode(0x203a)+" để chọn tháng\n"+"- Nắm giữ nguyên chuột để lựa chọn nhanh.";Calendar._TT["ABOUT_TIME"]="\n\n"+"Chọn thời gian:\n"+"- Click chuột vào các button thời gian để tăng giá trị\n"+"- Hoặc giữ Shift và click chuột để giảm giá trị\n"+"- Hoặc click và kéo chuột để lựa chọn nhanh.";Calendar._TT["PREV_YEAR"]="Năm trước";Calendar._TT["PREV_MONTH"]="Tháng trước";Calendar._TT["GO_TODAY"]="Ngày hôm nay";Calendar._TT["NEXT_MONTH"]="Tháng tiếp theo";Calendar._TT["NEXT_YEAR"]="Năm tiếp theo";Calendar._TT["SEL_DATE"]="Chọn ngày";Calendar._TT["DRAG_TO_MOVE"]="Kéo chuột để di chuyển";Calendar._TT["PART_TODAY"]="(hôm nay)";Calendar._TT["MON_FIRST"]="Hiển thị Thứ Hai trước";Calendar._TT["SUN_FIRST"]="Hiển thị Chủ Nhật trước";Calendar._TT["CLOSE"]="Đóng";Calendar._TT["TODAY"]="Hôm nay";Calendar._TT["TIME_PART"]="(Shift -) Click chuột để thay đổi giá trị";Calendar._TT["DEF_DATE_FORMAT"]="%Y-%m-%d";Calendar._TT["TT_DATE_FORMAT"]="Thứ %a, ngày %e, %b ";Calendar._TT["WK"]="Tuần";function selectedCalendarObj(cal,date){cal.sel.value=date;if(cal.dateClicked)cal.callCloseHandler();}
function closeHandlerCalendarObj(cal){cal.hide();cal.destroy();calendar=null;}
function showCalendar(pos,id,format,showsTime){var el=document.getElementById(id);var posshow=document.getElementById(pos);if(calendar!=null)
calendar.hide();else{var cal=new Calendar(true,null,selectedCalendarObj,closeHandlerCalendarObj);cal.weekNumbers=true;if(typeof showsTime=="string"){cal.showsTime=true;cal.time24=(showsTime=="24");}
calendar=cal;cal.setRange(1900,2070);cal.create();}
calendar.setDateFormat(format);calendar.parseDate(el.value);calendar.sel=el;calendar.showAtElement(posshow,"Br");return false;}
