2 function MakeFormatPreview(id, selectElement)
4 var dst = document.getElementById(id);
7 date.locale = "{$user->lang}";
9 if (selectElement.value != "") {
10 format = selectElement.value;
12 format = selectElement.options[0].text;
14 dst.innerHTML = "<i>" + date.strftime(format) + "</i>";