主要生產防盜鎖,球形鎖,卷閘鎖,火車鎖,防火鎖,三方位插芯鎖,逃生鎖,雙快鎖,磁性鎖,磁卡鎖,自動鎖,龍頭鎖,垃圾箱鎖,電控鎖,電機鎖,空轉防鉆原子鎖,不銹鋼鎖,鎖頭,鎖體和報警鎖及鎖具配件加工。
//var url = 'http:///detail/turbine/action/sendbusnote.SendBusnoteAction/eventsubmit_dosendbusnote/doSendbusnote';
//var url = 'http:///detail/turbine/template/shop%2Casync%2Cbusnoteresult.html';
var url = 'http:///action/shop,async,busnoteresult.html';
function sendIsOnline(){
var content=document.getElementById('busnotecontent').value;
var vaildcode=document.getElementById("vaildcode").value;
var LoginTicket=document.getElementById("LoginTicket").value;
if(content==""){
alert("請?zhí)顚懥粞詢热荩?);
return false;
}
if (content.length>2000){
alert("留言內容不能超過2000個字!");
return false;
}
if (vaildcode==""){
alert("請?zhí)顚戲炞C碼!");
return false;
}
if (vaildcode.length!=4){
alert("請正確填寫4位驗證碼!");
return false;
}
var myAjax = new Ajax.Request( url, {
method: 'post',
parameters: {validcode:vaildcode,content:content,sendcontacter:'張華明',corname:'中山市小欖鎮(zhèn)安盾五金加工廠',
email:'907022339@',tel:'86-0760-86164177',infoid:'53601620',infotype:'0',recvproviderid:'100009327389',sendproviderid:'100009327389',title:'供應舌鎖產品',
LoginTicket:LoginTicket},
onComplete: function(req){
ret=req.responseXML;
parxmlrs(ret);
},
onException:function(e){alert('系統(tǒng)故障暫時無法返回正確結果,請您稍后再試試');}
});
}
function sendNotOnline(){
var vaildcode=document.getElementById("vaildcode").value;
var content=document.getElementById('busnotecontent').value;
var sendcontacter = document.getElementById('busnoteyourname').value;
var corname = document.getElementById('busnotecorname').value;
var email = document.getElementById('busnoteemail').value;
var tel = document.getElementById('busnotetel').value;
var LoginTicket=document.getElementById("LoginTicket").value;
if(sendcontacter==""){
alert("請輸入您的姓名!");
return false;
}
if(sendcontacter.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("請?zhí)顚懥粞詢热荩?);
return false;
}
if (content.length>2000){
alert("留言內容不能超過2000個字!");
return false;
}
if (vaildcode==""){
alert("請?zhí)顚戲炞C碼!");
return false;
}
if (vaildcode.length!=4){
alert("請正確填寫4位驗證碼!");
return false;
}
var myAjax = new Ajax.Request( url, {
method: 'post',
parameters: {validcode:vaildcode,content:content,sendcontacter:sendcontacter,corname:corname,
email:email,tel:tel,infoid:'53601620',infotype:'0',recvproviderid:'100009327389',sendproviderid:'0',title:'供應舌鎖產品',
LoginTicket:LoginTicket},
onComplete: function(req){
ret=req.responseXML;
parxmlrs(ret);
},
onException:function(e){alert('系統(tǒng)故障暫時無法返回正確結果,請您稍后再試試'+e);}
});
}
function parxmlrs(obj){
var busnoters=obj.getElementsByTagName('busnoteresult');
var tckey = busnoters[0].getElementsByTagName('key')[0].firstChild.data;
var tcvalue = busnoters[0].getElementsByTagName('value')[0].firstChild.data;
var status = busnoters[0].getElementsByTagName('status')[0].firstChild.data;
var returninfo = busnoters[0].getElementsByTagName('returninfo')[0].firstChild.data;
if(status == 1){
document.getElementById("vaildcode").value="";
document.getElementById('busnotecontent').value="";
document.getElementById('LoginTicket').value = tckey;
var newsrc = 'http:///my/ValidImage.jsp?Seed='+tcvalue;
document.getElementById('validimg').src = newsrc;
alert("發(fā)送留言成功");
}
else{
document.getElementById("vaildcode").value="";
document.getElementById('LoginTicket').value = tckey;
var newsrc = 'http:///my/ValidImage.jsp?Seed='+tcvalue;
document.getElementById('validimg').src = newsrc;
alert(returninfo);
}
}