function ShowEnquiry(productname)
{
	document.getElementById("Item").innerHTML = productname;
	hide('ProductDiv');
	show('EnquireForm');
	hide("Loading");
}


function CallContact(result)
{
	if(result.value == 'True')
	{
		show('ProductDiv');
		hide('Loading');
		show('EnquireForm')
		alert("Thank you, your enquiry was sent off to Nortech International successfully!")
	}
	else {
		hide('Loading');
		show('EnquireForm')
		alert("We aplogise for this error: "+ result.value)
	}
}

function Contact()
{
	hide("EnquireForm");
	show("Loading");
	Amandla.Products.SendMail(
		document.getElementById("FullName").value, 
		document.getElementById("Email").value,
		document.getElementById("TelNo").value,
		document.Form.Country.options[document.forms[0].Country.selectedIndex].value,
		document.getElementById("Item").innerHTML,
		document.getElementById("Quantity").value,
		document.getElementById("Query").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"
   CanSubmit = ForceEntry(document.forms[0].FullName);
   if (CanSubmit == false) 
	{
		errormessage += "Full Name.\n";
	}
   CanSubmit = ForceEntry(document.forms[0].TelNo);
   if (CanSubmit == false) 
	{
		errormessage += "Contact number.\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";
	}
	
	CanSubmit = ForceEntry(document.forms[0].Quantity);
   if (CanSubmit == false) 
	{
		errormessage += "Number of items interested in.\n";
	}
  
   CanSubmit = ForceEntry(document.forms[0].Query);
   if (CanSubmit == false) 
	{
		errormessage += "Query\n";
	}

   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;
   }
}  