function SetFocus(){
if (document.Login.username.value=="")
	document.Login.username.focus();
else
	document.Login.username.select();
}
function CheckForm()
{
	if(document.Login.login_username.value=="")
	{
		alert("请输入用户名！");
		document.Login.login_username.focus();
		return false;
	}
	if(document.Login.login_password.value == "")
	{
		alert("请输入密码！");
		document.Login.login_password.focus();
		return false;
	}
	if (document.Login.login_codestr.value==""){
       alert ("请输入您的验证码！");
       document.Login.login_GetCode.focus();
       return(false);
    }
}

function CheckBrowser()
{
  var app=navigator.appName;
  var verStr=navigator.appVersion;
  if (app.indexOf('Netscape') != -1) {
    alert("提示：\n    你使用的是Netscape浏览器，可能会导致无法使用后台的部分功能。建议您使用 IE6.0 或以上版本。");
  }
  else if (app.indexOf('Microsoft') != -1) {
    if (verStr.indexOf("MSIE 3.0")!=-1 || verStr.indexOf("MSIE 4.0") != -1 || verStr.indexOf("MSIE 5.0") != -1 || verStr.indexOf("MSIE 5.1") != -1)
      alert("提示：\n    您的浏览器版本太低，可能会导致无法使用后台的部分功能。建议您使用 IE6.0 或以上版本。");
  }
}
function CheckSearch()
{
	if(document.Search.keyword.value=="" ||document.Search.keyword.value=="请输入关键字")
	{
		alert("请输入关键字！");
		document.Search.keyword.focus();
		return false;
	}
}
function clearSearch() {
	if(document.Search.keyword.value=="请输入关键字")
	{
		document.Search.keyword.value=="" ;
		document.Search.keyword.focus();
		return false;
	}
}