function onContinue()
{
	f = document.forms["loginForm"];
	
	if (f)
	{
		
		if (document.getElementById("customerNew") && document.getElementById("customerNew").checked)
		{
			document.location.href = "new_account.php?email=" + f.email.value;
		}
		else
		{
			f.action.value = "login";
			f.submit();
		}
	}
	
	return false;
}

function onCustomerNew()
{
	var password = document.getElementById('password');
	password.className='pwd_input_disabled'; 
	password.disabled = true;
	var email = document.getElementById('email_e');
	email.className='pwd_input_disabled'; 
	email.disabled = true;
	var email1 = document.getElementById('email');
	email1.className='pwd_input'; 
	email1.disabled = false;
	return true;
	
}

function onCustomerExisting()
{
	var password = document.getElementById('password');
	password.className='pwd_input'; 
	password.disabled = false;
	var email = document.getElementById('email_e');
	email.className='pwd_input'; 
	email.disabled = false;
	var email1 = document.getElementById('email');
	email1.className='pwd_input_disabled'; 
	email1.disabled = true;
	return true;
}

function onInit()
{
	if (errorMsg)
		alert(errorMsg);
		
	f = document.forms["loginForm"];
	input = f ? f.elements["email"] : null;
	if (input)
		input.focus();
}
