function checkInput()
{
	if(document.loginFrm.username.value == '' || document.loginFrm.password.value == ''){
		alert('Username and Password are Required!');
		return false;
	} else {
		return true;
	}
}

function doLogin()
{
	if(checkInput()){
		document.loginFrm.action = '/z/member/login/';
	}
		
	document.loginFrm.submit();
}

function swap(div,background)
{
	document.getElementById('content').style.display = "none";
	document.getElementById(div).style.display = "block";
	document.getElementById('divider').style.backgroundColor = background;
	document.getElementById('container').style.backgroundColor = background;
	document.getElementById('footer').style.backgroundColor = background;
}