// JavaScript Document
// By: Lodging Interactive

function checkFormFields()
{	
	if (document.contactus.profileName.value == "")
	{
		alert("Please enter First Name!");
		document.contactus.profileName.focus();
		return false;
	}
	
	if (document.contactus.profileLName.value == "")
	{
		alert("Please enter Last Name!");
		document.contactus.profileLName.focus();
		return false;
	}
			
	var email = document.contactus.profileMail.value;
	
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if (filter.test(email))
	{ }
	else
	{	
		alert("Please enter a valid E-mail!");
		document.contactus.profileMail.focus();
		return false;
	}

	return;
}

