cal_width = document.getElementById('edit-theme-width').value;
bg_top = '#' + document.getElementById('edit-header-bgcolor').value;
bg_bottom = '#' + document.getElementById('edit-body-bgcolor').value;
border_color = '#' + document.getElementById('edit-border-color').value;
text_color_year = '#' + document.getElementById('edit-year-color').value;
text_color_month = '#' + document.getElementById('edit-cur-month-color').value;
color_week_days = '#' + document.getElementById('edit-weekdays-color').value;
text_color_other_months = '#' + document.getElementById('edit-omd-fcolor').value;
text_color_this_month_unevented = '#' + document.getElementById('edit-cell-text-color-wevents').value;
evented_color = '#' + document.getElementById('edit-cell-text-color-events').value;
evented_color_bg = '#' + document.getElementById('edit-cell-bgcolor-events').value;
color_arrow_year = '#' + document.getElementById('edit-year-arrow-color').value;
color_arrow_month = '#' + document.getElementById('edit-month-arrow-color').value;
sun_days = '#' + document.getElementById('edit-sundays-tcolor').value;
event_title_color = '#' + document.getElementById('edit-event-title-color').value;
current_day_border_color = '#' + document.getElementById('edit-cur-day-cell-border-color').value;
cell_border_color = '#' + document.getElementById('edit-cell-border-color').value;
cell_height = document.getElementById('edit-cell-height').value;
popup_width = document.getElementById('edit-popup-width').value;
popup_height = document.getElementById('edit-popup-height').value;
number_of_shown_evetns = document.getElementById('edit-displaied-events').value;
sundays_font_size = document.getElementById('edit-sundays-fcolor').value;
other_days_font_size = document.getElementById('edit-days-fsize').value;
weekdays_font_size = document.getElementById('edit-weekdays-fsize').value;
border_width = document.getElementById('edit-border-width').value;
top_height = document.getElementById('edit-header-heidht').value;
bg_color_other_months = '#' + document.getElementById('edit-omd-bgcolor').value;
sundays_bg_color = '#' + document.getElementById('edit-sundays-cell-bgcolor').value;
weekdays_bg_color = '#' + document.getElementById('edit-weekdays-bgcolor').value;
weekstart = document.getElementById('edit-week-start-day').value;
weekday_sunday_bg_color = '#' + document.getElementById('edit-sunday-bgcolor').value;
border_radius = document.getElementById('edit-border-radius').value;
border_radius2 = border_radius - border_width;
week_days_cell_height = document.getElementById('edit-week-cell-height').value;
year_font_size = document.getElementById('edit-year-font-size').value;
month_font_size = document.getElementById('edit-cur-month-fsize').value;
arrow_size = document.getElementById('edit-arrow-size').value;
arrow_size_hover = parseInt(arrow_size) + 5;
next_month_text_color = '#' + document.getElementById('edit-next-month-color').value;
prev_month_text_color = '#' + document.getElementById('edit-prev-month-color').value;
next_month_arrow_color = '#' + document.getElementById('edit-next-month-arrow-color').value;
prev_month_arrow_color = '#' + document.getElementById('edit-prev-month-arrow-color').value;
next_month_font_size = document.getElementById('edit-next-month-fsize').value;
prev_month_font_size = document.getElementById('edit-prev-month-fsize').value;
month_type = document.getElementById('edit-month-type').value;
cell_width = cal_width / 7;
if (cell_height == '') {
cell_height = 70;
}
var head = document.getElementsByTagName('head')[0],
style = document.createElement('style'),
rules = document.createTextNode(
'#bigcalendar .cala_arrow a:link, #bigcalendar .cala_arrow a:visited{text-decoration:none;background:none;font-size:' + arrow_size + 'px; }' +
'#bigcalendar td,#bigcalendar tr, #spiderCalendarTitlesList td, #spiderCalendarTitlesList tr {border:none;}' +
'#bigcalendar .general_table_preview{border-radius: ' + border_radius + 'px;}' +
'#bigcalendar .top_table {border-top-left-radius: ' + border_radius2 + 'px;border-top-right-radius: ' + border_radius2 + 'px;}' +
'#bigcalendar .cala_arrow a:hover{font-size:' + arrow_size_hover + 'px;text-decoration:none;background:none;}' +
'#bigcalendar .cala_day a:link, #bigcalendar .cala_day a:visited {text-decoration:none;background:none;font-size:12px;color:red;}' +
'#bigcalendar .cala_day a:hover {text-decoration:none;background:none;}' +
'#bigcalendar .cala_day {border:1px solid ' + cell_border_color + ';vertical-align:top;}' +
'#bigcalendar .weekdays {border:1px solid ' + cell_border_color + '}' +
'#bigcalendar .week_days {font-size:' + weekdays_font_size + 'px;font-family:arial}' +
'#bigcalendar .calyear_table, .calmonth_table {border-spacing:0;width:100%; }' +
'#bigcalendar .calbg, #bigcalendar .calbg td {text-align:center; width:14%;}' +
'#bigcalendar .caltext_color_other_months {color:' + text_color_other_months + ';border:1px solid ' + cell_border_color + ';vertical-align:top;}' +
'#bigcalendar .caltext_color_this_month_unevented {color:' + text_color_this_month_unevented + ';}' +
'#bigcalendar .calfont_year {font-family:arial;font-size:24px;font-weight:bold;color:' + text_color_year + ';}' +
'#bigcalendar .calsun_days {color:' + sun_days + ';border:1px solid ' + cell_border_color + ';vertical-align:top;text-align:left;background-color:' + sundays_bg_color + ';}'
);
style.type = 'text/css';
if (style.styleSheet) {
style.styleSheet.cssText = rules.nodeValue;
}
else {
style.appendChild(rules);
}
head.appendChild(style);
";
echo '
Close';
}