// JavaScript Document
function check()
{  var enkey='输入关键字，如：耳环'
   if(checkspace(document.searchform.encodesearchkey.value !=decodeURI(enkey)))  {
	document.searchform.encodesearchkey.focus();
	alert("请输入查询关键字！");
	return false;
  }
  if(checkspace(document.searchform.encodesearchkey.value))  {
	document.searchform.encodesearchkey.focus();
	alert("请输入查询关键字！");
	return false;
  }
   document.searchform.submit();
}
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

function checkpropl()
{
  if(checkspace(document.submitplform.plcontent.value))  {
	alert("评价内容不能为空！");
	document.submitplform.plcontent.focus();
	return false;
  }
  
}

function killErrors() { 
return true; 
} 
window.onerror = killErrors; 

