function LoadAffiliateLoginPage()
{
	var strAgentID;
	var strPassword;
	
	var objAgentID = window.document.getElementById("Text1");
	if (objAgentID == null)
	{
		objAgentID = window.document.getElementById("UC_Login_txt_AgentID");
	}
	if (objAgentID != null)
	{
		strAgentID = objAgentID.value;
	}
	var objAgentPassword = window.document.getElementById("Text2");
	if (objAgentPassword == null)
	{
		objAgentPassword = window.document.getElementById("UC_Login_txt_Password");
	}
	if (objAgentPassword != null)
	{
		strPassword = objAgentPassword.value;
	}
	
	if ((strAgentID != "") && (strPassword != "")) 
	{
		window.location = "AffiliateLogin.aspx?LoginID=" + strAgentID + "&Pwd=" + strPassword;//"FeatureNotAvailable.aspx";
	}
	else
	{
		alert("Please enter agent ID as well as the password.");
		objAgentID.focus();
	}
}
