Hallo <-- Einfache Anrede :-)
function postform(var1,var2)
{
»» document.var1.var2.value="1";
»» document.var1.submit();
}
probier mal:
function postform(var1,var2)
{
document.forms[var1].elements[var2].value="1";
document.forms[var1].var1.submit();
}
bin mir mit der syntax niccht so ganz sicher, aber näheres zu javascript und objecten findest du in selfHTML :-))
< http://www.teamone.de/selfhtml/tec.htm>
Gruss, Eeye <-- Einfacher Gruss :-)