<!--
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

var url=location.href

function checkloginInfo()
{
   if(checkspace(document.loginform.username.value)) {
	document.loginform.username.focus();
    alert("请填写您的用户名！");
	return false;
  }
     if(checkspace(document.loginform.userpassword.value)) {
	document.loginform.userpassword.focus();
    alert("请填写您的密码！");
	return false;
}

document.loginform.comeurl.value=url;
}

function logout()
{
  window.location.href='logout.asp?comeurl='+url;
}

function notlogin()
{
  alert("请您登陆后进行此操作！");
}

function shoucang(id)
{
  window.open('shoucang.asp?id='+id+'&action=add','','width=632,height=388,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');
  return false;
}

function shopping(id)
{
  window.open('shopping.asp?id='+id,'','width=632,height=388,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');
  return false;
}

function queshu()
{
  window.open('queshu.asp','','width=600,height=440,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');
  return false;
}

function checkss()
{
   if(checkspace(document.searchform.searchkey.value !='请输入关键字'))  {
	document.searchform.searchkey.focus();
	alert("请输入查询关键字！");
	return false;
  }
  if(checkspace(document.searchform.searchkey.value))  {
	document.searchform.searchkey.focus();
	alert("请输入查询关键字！");
	return false;
  }
   document.searchform.submit();
}
//-->