


//Check the name of the form is correct
function validateForm(frm) {
	
	//State the variables and the intro message
	var notfilled = true;
	var message = "";
	message += "We need a little more information to assist you.\n\nPlease enter the following:\n\n";

	//1) Change the field names to suit your form
	//2) Change the message to suit your field name
	if (document.frm.Name.value == '')
			{
			message += "Your name\n";
			notfilled = false;
			}	
			
	if (document.frm.Email.value == '')
			{
			message += "A valid email address\n";
			notfilled = false;
			}	
			
	if (document.frm.Phone.value == '')
			{
			message += "Your phone number\n";
			notfilled = false;
			}
			
						
	if (notfilled == false) 
		{
		alert(message);
		return false;
		}
	else 
		{
		return true;
		}

}

