
var emailValidatorElm = new Array("SignupAddress","SignupAddress",1,"This email address does not appear to be properly formatted","");
var emailRequiredElm = new Array("SignupAddress","SignupAddress",1,"Please enter an email address to sign up","");
var SwapMessage = "";

function DisableSubbmission()
{}

function EnableSubbmission()
{}

function EmailSignup(address)
{
	ClearErrors();
	
	Form_ErrorCount = 0;
	keepErrors = true;
	
	RequiredFieldValidator(emailRequiredElm);
	ValidateEmail(emailValidatorElm);
	

	
	if (Form_ErrorCount == 0)
	{
		SwapMessage = $("SignUpArea").innerHTML;
		$("SignUpArea").innerHTML = "<h5>Updating...</h5>"
		new Json.Remote("Ajax/SignUp.asp", {onComplete: ConfirmSignup,method: 'get'}).send({'address': address,'rndId':Math.random()});
	}
}	
	
function ConfirmSignup(response)
{
	if(response.success)
	{
		$("SignUpArea").innerHTML = "<h5>Your request has been recieved</h5>Thank you for your iterest."
		
		setTimeout("RestoreMessage();",5000);
	}
	else
		alert("An Error has occured.  Please try again");
}
	
function RestoreMessage()
{
		$("SignUpArea").innerHTML = SwapMessage;
}

function fp_hilight(id){
	$('fp-graphic-'+id).style.backgroundColor="#eeeeee";
	$('fp-graphic-'+id).style.fontWeight="bold";
}

function fp_unhilight(id){
	$('fp-graphic-'+id).style.backgroundColor="#ffffff";
	$('fp-graphic-'+id).style.fontWeight="normal";
}
    