function InsertDay(form, DayCode) { // var DayCode; wieso nochmal? var newInsert; newInsert = DayCode; top.document.forms[form].am.value=newInsert; return; } InsertDay("register", "heute"); InsertDay("posting", "heute");