function checkContactForm(form1)

{

	var valid = true;



	if (form1.email.value == "" && valid)

	{

		alert('Please enter your email address');

		form1.email.focus();

		valid = false;

	} else {

		if (!isValidEmail(form1.email.value))

		{

			alert('The email address ' + form1.email.value + ' is not valid');

			form1.email.focus();

			valid = false;

		}

	}



	if (form1.message.value == "" && valid)

	{

		alert('Please enter your message');

		form1.message.focus();

		valid = false;

	}



	if (valid)

	{

		form1.submit();

	}

}



function isValidEmail(str) {

   return (str.indexOf("@") > 0);

 }