function isValidEmail( fieldValue ) {
	if ( /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,7})+$/.test(fieldValue) )
		return true;

	return false;
}
function isAlphabetic( val ) {
	if ( /[A-Za-z]/.test ( val ) )
		return true;
	return false;
}
function checkContacts (contact_form)
{
  if ( contact_form.name.value == '' ) {
		alert ( 'Please enter your name!' );
		contact_form.name.focus();
		return false;
	} else if ( !isAlphabetic( contact_form.name.value ) ) {
		alert ( 'Please enter valid name!' );
		contact_form.name.focus();
		return false;
	} else if ( contact_form.email.value == '' ) {
		alert ( 'Please enter your Email!' );
		contact_form.email.focus();
		return false;
	} else if ( !isValidEmail( contact_form.email.value ) ) {
		alert ( 'Please enter valid Email!' );
		contact_form.email.focus();
		return false;
	} else {
		return true;
	}
	return false;
}
