//Tracking

function handleTracking(txtControl){
	window.open("Agility_Tracking.html", "Agility");
}

function handleCustomerLogin(txtControl_1, txtControl_2){
    window.open("Agility_Customer_Login.html.aspx", "Agility");
}


function showLogin(){
	document.getElementById("logIn").style.display = "inline";
}

function enableLogin(username,password,chk)
{
	var chkconditions = document.getElementById(chk).checked;
	var txtusername = document.getElementById(username).value;
	var txtpassword = document.getElementById(password).value;
	var btnLogin = document.getElementById('LoginUC1_1_ImgBtnLogin');

	if(txtusername.length > 0 && txtpassword.length > 0 && chkconditions)
	{
		btnLogin.style.cursor="hand";
		btnLogin.src = "../PublishingImages/Login/logIn.gif";
		btnLogin.disabled = false;
	}
	else
	{
		btnLogin.style.cursor="default";
		btnLogin.src = "../PublishingImages/Login/logIn_disable.gif";
		btnLogin.disabled = true;
	}
}


