//首页顶部搜索关键字验证
function check(){
if(document.form2.skey.value==""){
alert("请输入您搜索的关键字！")
document.form2.skey.focus()
return false
}
return true
}
//顶部会员登录
function check11(){
if (document.form11.login_user.value==""){
alert("请输入厂商登录名！");
document.form11.login_user.focus();
return false;
}
if (document.form11.login_pwd.value==""){
alert("请输入厂商登录密码！");
document.form11.login_pwd.focus();
return false;
}
if (document.form11.ps.value==""){
alert("请输登录验证码！");
document.form11.ps.focus();
return false;
}
return true;
}

//顶部搜索关键字
function Check12(){
if (document.form12.sk.value=="" || document.form12.sk.value=="请输入搜索关键字"){
alert("请输入您要搜索的关键字！");
document.form12.sk.value='';
document.form12.sk.focus();
return false;
}
return true;
}

//login.html页面会员登录验证
function check(){
if (document.form1.login_user.value==""){
alert("请输入厂商登录名！");
document.form1.login_user.focus();
return false;
}
if (document.form1.login_pwd.value==""){
alert("请输入厂商登录密码！");
document.form1.login_pwd.focus();
return false;
}
if (document.form1.ps.value==""){
alert("请输登录验证码！");
document.form1.ps.focus();
return false;
}
return true;
}


//在线留言(联系我们&&供应页意见反馈)
function checklxwm(){
if (document.formlxwm.contactus_content.value==""){
alert("请填写您的留言内容!");
document.formlxwm.contactus_content.focus();
return false;
}
if (document.formlxwm.contactus_content.value.length>1000){
alert("留言内容不能超过1000个汉字!");
document.formlxwm.contactus_content.focus();
return false;
}
if (document.formlxwm.contactus_email.value==""){
alert("请填写您的邮件地址!");
document.formlxwm.contactus_email.focus();
return false;
}
if (document.formlxwm.contactus_email.value.charAt(0)=="." || document.formlxwm.contactus_email.value.charAt(0)=="@"|| document.formlxwm.contactus_email.value.indexOf('@', 0) == -1 || document.formlxwm.contactus_email.value.indexOf('.', 0) == -1 || document.formlxwm.contactus_email.value.lastIndexOf("@")==document.formlxwm.contactus_email.value.length-1 || document.formlxwm.contactus_email.value.lastIndexOf(".")==document.formlxwm.contactus_email.value.length-1){
      document.formlxwm.contactus_email.focus();
	    window.alert("您的邮箱地址填写不正确！");
      return false;
      }
return true;
}

//友情链接添加验证
function checkweblink(){
if (document.formweblink.weblink_webname.value==""){
alert("请填写网站名称！");
document.formweblink.weblink_webname.focus();
return false;
}
if (document.formweblink.weblink_weburl.value==""){
alert("请填写链接地址！");
document.formweblink.weblink_weburl.focus();
return false;
}
if (document.formweblink.weblink_linkname.value==""){
alert("请填写联系人！");
document.formweblink.weblink_linkname.focus();
return false;
}
if (document.formweblink.weblink_tel.value==""){
alert("请填写联系电话！");
document.formweblink.weblink_tel.focus();
return false;
}
if (document.formweblink.today.value==""){
alert("请填写今天是几号！");
document.formweblink.today.focus();
return false;
}
if (document.formweblink.yzm.value==""){
alert("请填写验证码！");
document.formweblink.yzm.focus();
return false;
}
return true;
}

//代理合作搜索验证
function checkagent(){
if(document.formagent.akey.value==""){
alert("请输入您搜索的关键字！")
document.formagent.akey.focus()
return false
}
return true
}

//产品关键字验证搜索
function  checkpkey(){
if (document.formpkey.comkey.value==""){
alert("请输入查询产品关键字")
document.formpkey.comkey.focus()
return false;
}
return true
}

//产品库搜索验证
function checkpro(){
if(document.formpro.pkey.value==""){
alert("请输入您搜索的关键字！")
document.formpro.pkey.focus()
return false
}
return true
}

//液压型号搜索验证
function checkmodel(){
if (document.formmodel.keyword.value==""){
alert("请输入搜索关键字")
document.formmodel.keyword.focus()
return false
}
return true
}


//液压技术页验证
function checkjishu(){
if (document.formjishu.techkey.value==""){
alert("请输入搜索关键字！")
document.formjishu.techkey.focus()
return false
}
return true
}

//液压品牌搜索验证
function checkbrand(){
if (document.formbrand.Brandkey.value==""){
alert("请输入搜索关键字！");
document.formbrand.Brandkey.focus();
return false;
}
return true;
}

//液压人才搜索验证
function rencaikey(){
if(document.formrencai.jobkey.value==""){
alert("请输入您搜索的关键字！")
document.formrencai.jobkey.focus()
return false
}
return true
}

//液压招聘搜索验证
function Checkzp(){
if (document.formzp.zpkey.value==""){
alert("请输入搜索关键字！");
document.formzp.zpkey.focus();
return false;
}
return true;
}






<!--
window.onload = getMsg;
window.onresize = resizeDiv;
window.onerror = function(){}
//***提示使用(asilas添加)
var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0;
function getMsg()
{
 try{
 divTop = parseInt(document.getElementById("eMeng").style.top,10)
 divLeft = parseInt(document.getElementById("eMeng").style.left,10)
 divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10)
 divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10)
 docWidth = document.body.clientWidth;
 docHeight = document.body.clientHeight;
 document.getElementById("eMeng").style.top = parseInt(document.body.scrollTop,10) + docHeight + 10;//  divHeight
 document.getElementById("eMeng").style.left = parseInt(document.body.scrollLeft,10) + docWidth - divWidth
 document.getElementById("eMeng").style.visibility="visible"
 objTimer = window.setInterval("moveDiv()",10)
 }
 catch(e){}
}

function resizeDiv()
{
 i+=1
 //if(i>300) closeDiv() //客户想不用自动消失由用户来自己关闭所以屏蔽这句
 try{
 divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10)
 divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10)
 docWidth = document.body.clientWidth;
 docHeight = document.body.clientHeight;
 document.getElementById("eMeng").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,10)
 document.getElementById("eMeng").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10)
 }
 catch(e){}
}

function moveDiv()
{
 try
 {
 if(parseInt(document.getElementById("eMeng").style.top,10) <= (docHeight - divHeight + parseInt(document.body.scrollTop,10)))
 {
 window.clearInterval(objTimer)
 objTimer = window.setInterval("resizeDiv()",1)
 }
 divTop = parseInt(document.getElementById("eMeng").style.top,10)
 document.getElementById("eMeng").style.top = divTop - 1
 }
 catch(e){}
}
function closeDiv()
{
 document.getElementById('eMeng').style.visibility='hidden';
 if(objTimer) window.clearInterval(objTimer)
}
-->

