src="http://style.org.hc360.com/js/detail/s/ajax/prototype.js" type="text/"> language="" type="text/"> //var urlhttp://detail.b2b.hc360.com/detail/turbine/a**ion/sendbusnote.SendBusnoteA**ion/eventsubmit_dosendbusnote/doSendbusnote; //var urlhttp://detail.b2b.hc360.com/detail/turbine/template/shop%2Casync%2Cbusnoteresult.html; var urlhttp://b2b.hc360.com/a**ion/shop,async,busnoteresult.html; fun**ion sendIsOnline(){ var content=getElementById(busnotecontent).value; var vaildcode=getElementById("vaildcode").value; var LoginTicket=getElementById("LoginTicket").value; if(content==""){ alert("請填寫留言內容!"); return false; } if (content.length>2000){ alert("留言內容不能超過2000個字!"); return false; } if (vaildcode==""){ alert("請填寫驗證碼!"); return false; } if (vaildcode.length!=4){ alert("請正確填寫4位驗證碼!"); return false; } var myAjaxnew Ajax.Request( url, { method: post, parameters: {validcode:vaildcode,content:content,sendconta**er:姜文法,corname:昆山旭日重工有限公司, email:xycxthy@126.com,tel:86-1871-7724533,infoid:112514448,infotype:0,recvproviderid:100001789263,sendproviderid:100001789263,title:出租落地鏜床 平旋盤, LoginTicket:LoginTicket}, onComplete: fun**ion(req){ ret=req.responseXML; parxmlrs(ret); }, onException:fun**ion(e){alert(系統故障暫時無法返回正確結果,請您稍后再試試);} }); } fun**ion sendNotOnline(){ var vaildcode=getElementById("vaildcode").value; var content=getElementById(busnotecontent).value; var sendconta**ergetElementById(busnoteyourname).value; var cornamegetElementById(busnotecorname).value; var emailgetElementById(busnoteemail).value; var telgetElementById(busnotetel).value; var LoginTicket=getElementById("LoginTicket").value; if(sendconta**er==""){ alert("請輸入您的姓名!"); return false; } if(sendconta**er.length>31){ alert("您輸入的姓名太長,請不要超過30個字!"); return false; } if(corname.length>51){ alert("您輸入的公司名稱太長,請不要超過50個字!"); return false; } if(email==""){ alert("請輸入您的電子郵件!"); return false; } if(email.length>51){ alert("您輸入的Email太長,請不要超過50個字!"); return false; } if(content==""){ alert("請填寫留言內容!"); return false; } if (content.length>2000){ alert("留言內容不能超過2000個字!"); return false; } if (vaildcode==""){ alert("請填寫驗證碼!"); return false; } if (vaildcode.length!=4){ alert("請正確填寫4位驗證碼!"); return false; } var myAjaxnew Ajax.Request( url, { method: post, parameters: {validcode:vaildcode,content:content,sendconta**er:sendconta**er,corname:corname, email:email,tel:tel,infoid:112514448,infotype:0,recvproviderid:100001789263,sendproviderid:0,title:出租落地鏜床 平旋盤, LoginTicket:LoginTicket}, onComplete: fun**ion(req){ ret=req.responseXML; parxmlrs(ret); }, onException:fun**ion(e){alert(系統故障暫時無法返回正確結果,請您稍后再試試+e);} }); } fun**ion parxmlrs(obj){ var busnoters=obj.getElementsByTagName(busnoteresult); var tckeybusnoters[0].getElementsByTagName(key)[0].firstChild.data; var tcvaluebusnoters[0].getElementsByTagName(value)[0].firstChild.data; var statusbusnoters[0].getElementsByTagName(status)[0].firstChild.data; var returninfobusnoters[0].getElementsByTagName(returninfo)[0].firstChild.data; if(status == 1){ getElementById("vaildcode").value=""; getElementById(busnotecontent).value=""; getElementById(LoginTicket).valuetckey; var newsrchttp://my.b2b.hc360.com/my/ValidImage.jsp?Seed=+tcvalue; getElementById(validimg).srcnewsrc; alert("發送留言成功"); } else{ getElementById("vaildcode").value=""; getElementById(LoginTicket).valuetckey; var newsrchttp://my.b2b.hc360.com/my/ValidImage.jsp?Seed=+tcvalue; getElementById(validimg).srcnewsrc; alert(returninfo); } }