function isEmail(string) {
	if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
		return true;
	else
		return false;
}

function isEmpty(aTextField) {
	if ( (aTextField.value.length==0 ) || (aTextField.value==null) ) 
		return true;
	else
		return false;
}

function checkTestimonialForm() {
	var msg="";
	if ( isEmpty(document.testimonial.name) )					msg += "- Please fill out the name\n";
	if ( isEmpty(document.testimonial.city) )					msg += "- Please fill out the city\n";
	if ( isEmpty(document.testimonial.state) )				msg += "- Please fill out the state\n";
	if ( isEmpty(document.testimonial.testimonial) )	msg += "- Please fill out the testimonial\n";
	if ( msg.length > 1 ) {
		alert ( msg );
		return false;
	}
	return true;	
}
