﻿// JavaScript Document

function addFav(title)
{
	if(isLogin!=true)
	{
		if(confirm("请您先登录！现在登录吗？"))
		{
			window.location.href = "/login/default.asp?Referer="+escape(window.location.href);
		}
		return false;
	}
}

function CheckLogin(thisform)
{
	if (document.thisform.LoginName.value=="")
	{
		alert("请输入您的用户名！");
		document.thisform.LoginName.focus();
		return false;
	}
	if (document.thisform.Password.value=="")
	{
		alert("请输入您的密码！");
		document.thisform.Password.focus();
		return false;
	}
}
