The code for my button on click event doesnt work....think the syntax is incorrect..any suggestions?


Function btnUpdate_onclick(){

var strAddress = 'FinancialYear.asp?Action="U"' +

'&yearstart=' + document.form1("yearstart").value +
'&yearend=' + document.form1("yearend").value +
'&userid=' + document.form1("userid").value +

window.location = strAddress



Thanks In advance!