求解 随机验证码点击不能刷新解决思路

求解 随机验证码点击不能刷新
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="regedit.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <script charset="gb2312"  src="style/jquery-1.4.2.min.js" type="text/javascript">
         function f_refreshtype() {
             var Image1 = document.getElementByIdx_x_x_x("img");
             if (Image1 != null) {
                 Image1.src = Image1.src + "?";
             }
            
         }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    用户名:<asp:TextBox ID="LoginName" runat="server" Height="21px"></asp:TextBox>
    <br />
    密码:<asp:TextBox ID="LoginPwd" runat="server" TextMode="Password"></asp:TextBox>
    <br />
    确认密码:<asp:TextBox ID="LoginPwd1" runat="server" TextMode="Password"></asp:TextBox>
    <br />
    邮箱:<asp:TextBox ID="Email" runat="server"></asp:TextBox>
    <br />
    验证码:<asp:TextBox ID="yzm" runat="server"></asp:TextBox><img src="ValidateCode.aspx" id="img" onclick="f_refreshtype()" width="50px" alt="点击重新获取验证码"/>
    <br />
    <asp:Button ID="Button1" runat="server" EnableTheming="True" 
        onclick="Button1_Click" Text="注册" />
    </form>
</body>
</html>

能正常显示  就是点击图片没反应
求解 随机验证码点击不能刷新解决思路
------解决思路----------------------
你的函数应该是有问题的

你没有用到Jquery,因此可以吧
<script  src="style/jquery-1.4.2.min.js" type="text/javascript"></script>    这个去掉


getElementByIdx_x_x_x 这个是什么东西?不需要x_x_x_x吧,用getElementById