obj expected error when run javascript function in asp form (visual studio)
<p>i get obj expected error when click on asp button. where is the problem?</p>

<p>code:</p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;script type"text/javascript"&gt;
    Hmove=-100;
    function moveObjRight(obj) {
    obj.style.left=Hmove;
    Hmove+=2;
    if(Hmove&lt;100)           
    window.setTimeout("moveObjRight(" +obj.id+ ");", 0);
    }
&lt;/script&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
&lt;title&gt;Untitled Page&lt;/title&gt;
&lt;style type="text/css"&gt;
    #AS
    {
        top: 141px;
        left: 118px;
        position: absolute;
        height: 25px;
        width: 25px;
    }
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id="form1" runat="server"&gt;
&lt;div&gt;
&lt;img alt="asd" src="pic 3-4.jpg" id="AS"/&gt;

&lt;asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="moveObjRight(AS);"/&gt;
&lt;/div&gt;
&lt;/form&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
