function checkemail()
{
 if(checkspace(document.addfrm.username.value)) {
	document.addfrm.username.focus();
    alert("对不起，请填写您的姓名，方便我们与您联系！");
	return false;
if(checkspace(document.addfrm.tel.value)) {
	document.addfrm.tel.focus();
    alert("对不起，为了更好的为您服务，请留下您的联系电话！");
	return false;
  } if(checkspace(document.addfrm.add.value)) {
	document.addfrm.add.focus();
    alert("对不起，为了更好的为您服务，请留下您的联系地址！");
	return false;
  } if(checkspace(document.addfrm.con.value)) {
	document.addfrm.con.focus();
    alert("对不起，请填写您来游人数！");
	return false;
  } if(checkspace(document.addfrm.atime.value)) {
	document.addfrm.atime.focus();
    alert("对不起，为了更好的为您服务，请填写来游日期！");
	return false;
  } if(checkspace(document.addfrm.ctime.value)) {
	document.addfrm.ctime.focus();
    alert("对不起，为了更好的为您服务，请填写返程日期！");
	return false;
  }
}
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}