String.prototype.Trim = function(){return this.replace(/^\s+|\s+$/g,"");} function baidu_query(){ var obj = { param:{}, construct:function(){ var name, value, index; var query = location.search.substr(1); var pairs = query.split("&"); for(var i=0;i < pairs.length; i++){ index = pairs[i].indexOf("="); if(index){ name = pairs[i].substr(0,index); value = pairs[i].substr(index+1); this.param[name] = value; } } return this; }, getParam: function(name, def){ return this.param[name]==undefined?def:this.param[name]; } }; return obj.construct(); } function valid_message() { objMess = document.lea_mess.message; objContact = document.lea_mess.contact; objmail = document.lea_mess.mail; objMess.value = objMess.value.Trim(); objContact.value = objContact.value.Trim(); strMess = objMess.value; strContact = objContact.value; if (strMess.length > 200) { alert('您的留言过长,请减少至200字内,谢谢!'); return false; } if (strContact.length > 50) { alert('您的联系方式过长,请减少至50字内,谢谢!'); return false; } if ((strMess.length < 1 || strMess==objMess.defaultValue) && strContact.length>0) { alert('您还没有填写留言内容,请在留言内容框内填写完提交,谢谢!'); return false; } if ((strContact.length < 1 || strContact==objContact.defaultValue) && strMess.length>0) { alert('您还没有填写联系方式,请在联系方式框内填写完提交,谢谢!'); return false; } if ((strContact.length < 1 && strMess.length< 1 ) || (strMess==objMess.defaultValue && strContact==objContact.defaultValue)) { alert('您好,留言不能为空,谢谢!'); return false; } if(!confirm('发送成功,我们会尽快回复与您,谢谢您的参与!')) { return false; } document.lea_mess.submit(); msee_init(); return false; } function msee_init () { document.lea_mess.message.value = document.lea_mess.message.defaultValue; document.lea_mess.contact.value = document.lea_mess.contact.defaultValue; document.lea_mess.mail.value = document.lea_mess.mail.defaultValue; } function ChangeDiv1() { document.getElementById("YM_Call_Div").style.display = "none"; document.getElementById("YM_Call_Small").style.display = ""; document.getElementById("YM_Call_Small").style.position = "fixed"; document.getElementById("YM_Call_Small").style.bottom = "0"; document.getElementById("YM_Call_Small").style.right = "0"; document.getElementById("YM_Call_Small").style.width = "130px"; document.getElementById("YM_Call_Small").style.height = "51px"; } function ChangeDiv2() { document.getElementById("YM_Call_Small").style.display = "none"; document.getElementById("YM_Call_Div").style.display = ""; } document.writeln("