<!--

function formValidation(form){
	if(notEmpty(form.name)){
		if(notEmpty(form.from)){
			if(notEmpty(form.message)){
				if(checkEmail(form)){
					if(checkSubject(form)){
                           		return true; 
					}
				}
			}
		}
	}
	return false;
}

function notEmpty(elem){
	var str = elem.value;
	if(str.length == 0){
		alert("Please fill in all required fields (*)");
		return false;
	} else {
	return true;
	}
}

function checkEmail(theForm) {
    if (theForm.from.value != theForm.from2.value)
    {
        alert('Your e-mail address doesn\'t match!');
        return false;
    } else {
        return true;
    }
}

function checkSubject(theForm) {
    var emsubstr = theForm.Subject.selectedIndex;

    if (emsubstr == 0)
    {
        alert('Please select a subject for your inquiry.');
        return false;
    } else {
        return true;
    }
}

//-->
