function CallContact(result)
{
	if(result.value == 'True')
	{
		hide("Loading")
		hide("Panel1")
		show("Panel2");
	}
	else {
		show("Panel1");
		hide("Loading");
		alert("We aplogise for this error: "+ result.value)
	}
}

function Contact()
{
	hide("Panel1");
	show("Loading");
	Cindy.Newsletter.SendMail(
		document.getElementById("FullName").value, 
		document.getElementById("Email").value,
		CallContact
		);
}

  function ValidateData() {
	   var CanSubmit = false;
	   var errormessage = "Please make sure that you have filled in the following fields before clicking Send:\n\n"

	   // Check to make sure that the full name field is not empty.
	   CanSubmit = ForceEntry(document.forms[0].FullName);
	   if (CanSubmit == false) 
		{
			errormessage += "Full Name.\n";
		}
	   CanSubmit = ForceEntry(document.forms[0].Email);
	   if (CanSubmit == false) 
		{
			errormessage += "E-mail address.\n";
		}
		CanSubmit = checkEmailAddress(document.forms[0].Email);
	   if (CanSubmit == false) 
		{
			errormessage += "Please enter a Valid E-mail Address.\n";
		}
	   // Check to make sure ranking is between 1 and 10
	   if (errormessage == 'Please make sure that you have filled in the following fields before clicking Send:\n\n')
	   {
		return true;
	   }
	   else 
	   {
		alert(errormessage)
		return false;
	   }
  }