function cook(){
  if(document.all.usernameshow.value == ""){
    alert('请输入您的用户名');
    document.all.usernameshow.focus();
    return  false;
  }
  if(document.all.pwshow.value==""){
    alert('请输入您的密码');
    document.all.pwshow.focus();
    return false;
  }
return true;
}
function check(){
  if(document.all.name.value == ""){
    alert('请输入您的姓名');
    document.all.name.focus();
    return false;
  }
  if(!EmailCheck(document.all.email.value)){
    alert('请输入正确的邮件地址');
    document.all.email.focus();
    return false;
  }
    if(document.all.content.value == ""){
    alert('请输入咨询内容');
    document.all.content.focus();
    return false;
  }
return true;
}

function EmailCheck(emailStr) {
 var EmailRegExp =/^[_a-z0-9]+@([_a-z0-9]+\.)+[a-z0-9]{2,3}$/;
 if (EmailRegExp.test(emailStr)){
　　return true;
　　}
　　return false;
　　}