function validate_miniquote(theform){
	var useremail;
	var name = document.getElementById('name');
	var phone = document.getElementById('phone');
	var email1 = document.getElementById('email');
	var comments = document.getElementById('feedbackdescription');
	var msg="";
	
	useremail=email1.value;

	if (name.value==""){
		msg+="a";
		alert("Name cannot be blank.");
		name.focus();
		return false;
	}

	if (phone.value==""){
		msg+="a";
		alert("Phone cannot be blank.");
		phone.focus();
		return false;
	}

	if (!email(useremail)){
		msg+="a";
		alert("Please enter your proper email address.");
		email1.focus();
		return false;
	}

	if (comments.value==""){
		msg+="a";
		alert("Description of your needs cannot be blank.");
		comments.focus();
		return false;
	}
	
	if (msg==""){
	document.getElementById("frmQuote").submit();
	}
}

//email address
function email(input){
	return input.match(/^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/);
}

