
var Months=new Array("Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez");function createOptions(){var date=new Date();var month=date.getMonth();var year=date.getFullYear();var opt;var selYear;var att;for(var i=0;i<3;i++){if(month+i>11)selYear=year+1;else
selYear=year;opt=document.createElement("option");opt.appendChild(document.createTextNode(Months[((month+i)%12)]+" "+selYear));att=document.createAttribute("value");att.nodeValue=Months[((month+i)%12)]+"-"+selYear;opt.setAttributeNode(att);document.getElementById('from_month').appendChild(opt);document.getElementById('until_month').appendChild(opt.cloneNode(true));}for(i=0;i<=31;i++){opt=document.createElement("option");opt.appendChild(document.createTextNode(i));att=document.createAttribute("value");att.nodeValue=i;opt.setAttributeNode(att);document.getElementById('from_day').appendChild(opt);document.getElementById('until_day').appendChild(opt.cloneNode(true));if(i>=0&&i<24){opt=document.createElement("option");if(i<10)opt.appendChild(document.createTextNode("0"+i));else
opt.appendChild(document.createTextNode(i));att=document.createAttribute("value");att.nodeValue=i;opt.setAttributeNode(att);document.getElementById('from_hour').appendChild(opt);document.getElementById('until_hour').appendChild(opt.cloneNode(true));}}}
