var hour;
var month_tb = eval('month_'+page_lang);
/*for(var i=2010; i<2012; i++){
if(i==cur_year)
take_year_obj.options[take_year_obj.options.length] = new Option(i, i, true, true);
else
take_year_obj.options[take_year_obj.options.length] = new Option(i, i);
}*/
/*for(var i=1; i<13; i++){
if(i==cur_month)
take_month_obj.options[take_month_obj.options.length] = new Option(month_tb[i], i, true, true);
else
take_month_obj.options[take_month_obj.options.length] = new Option(month_tb[i], i);
}*/
for(var j=0; j<24; j++){
hour = ''+j;
if(hour.length == 1)
hour = "0"+j;
else
hour = j;
if (hour=='09') take_time_obj.options[take_time_obj.options.length] = new Option(hour+':00', hour+'_00', true, true);
else take_time_obj.options[take_time_obj.options.length] = new Option(hour+':00', hour+'_00');
take_time_obj.options[take_time_obj.options.length] = new Option(hour+':30', hour+'_30');
}
/*for(var j=1; j<32; j++){
if(j==cur_day)
take_day_obj.options[take_day_obj.options.length] = new Option(j, j, true, true);
else
take_day_obj.options[take_day_obj.options.length] = new Option(j, j);
}*/
split_arr = ['take_year', 'take_month', 'take_day', 'take_time'];
Calendar.setup({
inputField     :    "date_1",     // id of the input field
ifFormat       :    "%Y %m %d %H_%M",      // format of the input field
button         :    "f_trigger_a",  // trigger for the calendar (button ID)
align          :    "Tl",           // alignment (defaults to "Bl")
singleClick    :    true,
showsTime      :    true,
timeFormat     :    "24",
firstDay       :	1,
split          :    split_arr
});



var give_year_obj = document.getElementById("give_year");
var give_month_obj = document.getElementById("give_month");
var give_time_obj = document.getElementById("give_time");
var give_day_obj = document.getElementById("give_day");
var hour;
/*for(var i=2010; i<2012; i++){
if(i==cur_year)
give_year_obj.options[give_year_obj.options.length] = new Option(i, i, true, true);
else
give_year_obj.options[give_year_obj.options.length] = new Option(i, i);
}
for(var i=1; i<13; i++){
if(i==cur_month)
give_month_obj.options[give_month_obj.options.length] = new Option(month_tb[i], i, true, true);
else
give_month_obj.options[give_month_obj.options.length] = new Option(month_tb[i], i);
}*/
for(var j=0; j<24; j++){
hour = ''+j;
if(hour.length == 1)
hour = "0"+j;
else
hour = j;
if (hour=='09') give_time_obj.options[give_time_obj.options.length] = new Option(hour+':00', hour+'_00', true, true);
else give_time_obj.options[give_time_obj.options.length] = new Option(hour+':00', hour+'_00');
give_time_obj.options[give_time_obj.options.length] = new Option(hour+':30', hour+'_30');
}
/*for(var j=1; j<32; j++){
if(j==cur_day)
give_day_obj.options[give_day_obj.options.length] = new Option(j, j, true, true);
else
give_day_obj.options[give_day_obj.options.length] = new Option(j, j);
}*/
split_arr = ['give_year', 'give_month', 'give_day', 'give_time'];
Calendar.setup({
inputField     :    "date_2",     // id of the input field
ifFormat       :    "%Y %m %d %H_%M",      // format of the input field
button         :    "f_trigger_b",  // trigger for the calendar (button ID)
align          :    "Tl",           // alignment (defaults to "Bl")
singleClick    :    true,
showsTime      :    true,
timeFormat     :    "24",
firstDay       :	1,
split          :    split_arr
});