function validator(theForm)
{
	if (theForm.firstname.value == "")
	{
		alert("Please enter a proper value for the \"First Name\" field.");
		theForm.firstname.focus();
		return (false);
	}
	
	if (theForm.lastname.value == "")
	{
		alert("Please enter a proper value for the \"Last Name\" field.");
		theForm.lastname.focus();
		return (false);
	}
	
	if (theForm.email.value == "" || theForm.email.value.indexOf ('@', 0) == -1)
	{
		alert("Please enter proper value for the \"Email\" field.");
		theForm.email.focus();
		return (false);
	}
	
	if (theForm.email.value.length < 5)
	{
		alert("Please enter proper value for the \"Email\" field.");
		theForm.email.focus();
		return (false);
	}
	
	if (theForm.email.value.length > 80)
	{
		alert("Please enter proper value for the \"Email\" field.");
		theForm.email.focus();
		return (false);
	}
	
	if (theForm.phone.value == "")
	{
		alert("Please enter a proper value for the \"Phone\" field.");
		theForm.phone.focus();
		return (false);
	}
	
	if (theForm.company.value == "")
	{
		alert("Please enter a proper value for the \"Company\" field.");
		theForm.company.focus();
		return (false);
	}
	
	if (theForm.country.value == "-")
	{
		alert("Please enter a proper value for the \"Country\" field.");
		theForm.country.focus();
		return (false);
	}
	
	if (theForm.purpose.value == "")
	{
		alert("Please enter a proper value for the \"Purpose of meeting\" field.");
		theForm.purpose.focus();
		return (false);
	}
	
	return (true);
}