// JavaScript Document
function Element(id)
{
	return document.getElementById(id);
}

function imgMove(imgId,imgUrl)
{
	var obj=document.getElementById(imgId);
	obj.src=imgUrl;
}

function checkLogin(txtEnterprise,txtUser,txtPwd)
{
	//var enterprise =  Element(txtEnterprise);
	//var user =  Element(txtUser);
	//var pwd =  Element(txtPwd);
	var enterprise =  txtEnterprise;
	var user =  txtUser;
	var pwd =  txtPwd;
	
	if(enterprise.value == "")
	{
		alert("企业名不能为空！");
		enterprise.focus();
		return;
	}
	if(user.value == "")
	{
		alert("用户名不能为空！");
		user.focus();
		return;
	}
	if(pwd.value == "")
	{
		alert("密码不能为空！");
		pwd.focus();
		return;
	}
	window.location.href="frmLogin.htm";
}

function SetFocusColor(txtId)
{
	var txt = Element(txtId);
	txt.style.backgroundColor = "#99FFFF";
}
function SetBlurColor(txtId)
{
	var txt = Element(txtId);
	txt.style.backgroundColor = "";
}

function SetFocusColorTwo(obj)
{
	obj.style.backgroundColor = "#99FFFF";
}
function SetBlurColorTwo(obj)
{
	obj.style.backgroundColor = "";
}

function frmRegister()
{
	window.location.href="frmRegister.htm";
}

function checkUserLogin(txtEmail,txtPwd)
{
	var email = txtEmail;
	var pwd = txtPwd;
	
	if(email.value == "")
	{
		alert("邮箱名不能为空！");
		email.focus();
		return;
	}
	if(pwd.value == "")
	{
		alert("密码不能为空！");
		pwd.focus();
		return;
	}
	window.location.href="frmJobLogin.htm";
}

function returnIndex()
{
	window.location.href = "index.html";
}
