button不能触发Ajax的步骤

button不能触发Ajax的方法?
<script language="javascript">
var XMLHttpReq;  //创建XMLHttpRequest对象         
   function createXMLHttpRequest() {  
    if(window.XMLHttpRequest) { //Mozilla 浏览器   
   XMLHttpReq = new XMLHttpRequest();  
   }  
   else if (window.ActiveXObject) { // IE浏览器  
    try {    XMLHttpReq = new ActiveXObject("Msxml2.XMLHTTP");   
    } catch (e) {   
    try {    
     XMLHttpReq = new ActiveXObject("Microsoft.XMLHTTP");    
    } catch (e) {
    }
       }
         }
          } 
          //发送请求函数
   function sendRequest(url) {  
   createXMLHttpRequest();  
   XMLHttpReq.open("GET", url, true);  
    XMLHttpReq.onreadystatechange = processResponse;//指定响应函数  
    XMLHttpReq.send(null);  // 发送请求 } // 处理返回信息函数    
   function processResponse() {     
   if (XMLHttpReq.readyState == 4) { // 判断对象状态         
   if (XMLHttpReq.status == 200) { // 信息已经成功返回,开始处理信息             
   var res=XMLHttpReq.responseXML.getElementsByTagName("res")[0].firstChild.data;     
           window.alert(res);                            
    } else {
     //页面不正常               
    window.alert("您所请求的页面有异常。");           
    }       
     }
         } 
         // 注册函数    
  function signUp() {  
  alert("eeeeeeeeeeeeeeeeeeeeeee");
   var mer = document.myform.mer.value;  
   alert(mer);
   var quality = document.myform.quality.value;  
   
   if(mer=="") {   window.alert("商品名不能为空。");   
   document.myform.mer.focus();  
    return false;
      }  
   else if(quality=="") {
      window.alert("数量不能为空。");  
   document.myform.quality.focus(); 
     return false;
       }  else {   
   sendRequest('rfMer?op=2&mer='+ mer + '&quality=' + quality);
     }
      }

    </script>
 <form action="rfMer?op=2" method="post" name="myform"> 
<table cellpadding="0" cellspacing="0" border="1" align="center" bgcolor="#EEF2FB"
width=800px>
<tr>
<td>
商品名称&nbsp;&nbsp;
<select name="mer" id="select1" >
<c:forEach items="${merchInfos}" var="m">
<c:if test="${merString!=m.m_id}">
<option value="${m.m_id}" >
${m.m_name }
</option>
</c:if>
<c:if test="${merString==m.m_id}">
<option value="${m.m_id}" selected>
${m.m_name }
</option>
</c:if>
</c:forEach>
</select>
</td>
<td>
应付金额&nbsp;&nbsp;
<input name="mon" type="text" size="5" value="${moString}" />
</td>
</tr>
<tr>
<td>
商品数量&nbsp;&nbsp;
<input name="quality" type="text" size="5"
value="${qualiString }" />
<span id="num">*<font size="-1" color="#000099"></font></span>
</td>
<td>
实收金额
<input name="really" type="text" size="10" />
</td>
</tr>
<tr>
<td>
商品单价&nbsp;&nbsp;
<input name="price" type="text" size="10"
value="${merchInfo.m_price }" />
</td>
<td>
找零&nbsp;&nbsp;