or is it window.location?

anyway, why doesn't this work?


Any ideas why this doesn't work?

<script language="javascript">

function goclaims()
{
document.location.replace = "../webapplication2/webform1.aspx";
}
</script>

<asp:ImageButton onlick="goclaims();" id="Image5" onmouseover="this.className='applyBorder'" onmouseout="this.className='removeBorder'" runat="server" Width="24px" Height="18px" ImageUrl="file:///C:\Documents and Settings\gregb\Desktop\icons\Claims.ico" CssClass="removeBorder"></asp:ImageButton>