document.writeln("<script type=\"text\/javascript\" src=\"lib\/jquery\/jquery.ui.core.js\"><\/script>");
document.writeln("<script type=\"text\/javascript\" src=\"lib\/jquery\/jquery.ui.datepicker.js\"><\/script>");
document.writeln("<script type=\"text\/javascript\" src=\"lib\/jquery\/i18n/jquery.ui.datepicker-zh-CN.js\"><\/script>");
document.writeln("<script type=\"text\/javascript\" src=\"lib\/jquery\/i18n/jquery.ui.datepicker-zh-TW.js\"><\/script>");

$(document).ready(function(){
    $("#time_begin").datepicker({changeMonth: true, changeYear: true, yearRange: '-50:+50', dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: 'admin/template/default/{$dir_images_admin}/icon_calendar.gif', buttonImageOnly: true});
    $("#time_end").datepicker({changeMonth: true, changeYear: true, yearRange: '-50:+50', dateFormat: 'yy-mm-dd', showOn: 'button', buttonImage: 'admin/template/default/{$dir_images_admin}/icon_calendar.gif', buttonImageOnly: true});
});
