function questionsend(s){
	if(checkspace(s.username.value)){
		alert("请填写姓名!");
		s.username.focus();
		return;
	}
	if(!is_email(s.email.value)){
     s.email.value="";
		alert("请填写电子邮箱!\n注意格式!");
		s.email.focus();
		return;
	}
     if((checkspace(s.moblie.value)||s.moblie.value.length < 7)){
		alert("请填写不小于7位数的电话号码!");
		s.moblie.focus();
		return;
	}
	  if(checkspace(s.addr.value)){
	  alert("请真写您的省份或城市、区名!");
	  s.addr.focus();
	  return;
	}
     if(checkspace(s.body.value)){
		alert("请填写留言内容");
		s.body.focus();
		return;
	}
	s.action="";
	s.submit();
}
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
function is_email(str)
{ 
	if((str.indexOf("@")==-1)||(str.indexOf(".")==-1))
	{
	
	return false;
	}
	return true;
}