// JavaScript Document

function SubmitLogin(x_strCountry)
	{
		var strUSorCA
		var f = document.getElementById("BNA");
		
		if(hostname.toLowerCase().substring(0, 3) == "159")
		{
			if(x_strCountry == "CA")
			{
				f.action = "http://159.234.160.30/LoginPost.asp";
				
			}
			else if(x_strCountry == "SP")
			{
				f.action = "http://espanol.beautinet.com/LoginPost.asp";
			}
			else
			{
				f.action = "http://159.234.160.34/LoginPost.asp";
			}
		}
		else
		{
			if(x_strCountry == "CA")
			{
				f.action = "http://www.beautinetca.com/LoginPost.asp";
			}
			else if(x_strCountry == "SP")
			{
				f.action = "http://espanol.beautinet.com/LoginPost.asp";
			}
			else
			{
				f.action = "http://www.beautinet.com/LoginPost.asp";
			}
		}
		
		if (document.cookie.length > 0)
			f.CookieEnabled.value = "Yes"
		
		try
		{
			f.submit();
		}
		catch(err){ } //Catch Cross Domain Scripting Error
	}