function validate(f) {
	var bErrorFound = false;
	var strErrorMsg = 'Please correct the following problems:\n'

	if (f.vCompany.value.replace(/\s*/g,'').length == 0) {
		strErrorMsg = strErrorMsg + '\n - Company Name is required';
		bErrorFound = true;
	}

	if (f.vFirstName.value.replace(/\s*/g,'').length == 0) {
		strErrorMsg = strErrorMsg + '\n - First Name is required';
		bErrorFound = true;
	}
	
	if (f.vLastName.value.replace(/\s*/g,'').length == 0) {
		strErrorMsg = strErrorMsg + '\n - Last Name is required';
		bErrorFound = true;
	}	

	if (f.vTitle.value.replace(/\s*/g,'').length == 0) {
		strErrorMsg = strErrorMsg + '\n - Title is required';
		bErrorFound = true;
	}

	if (f.vEmail.value.replace(/\s*/g,'').length == 0) {
		strErrorMsg = strErrorMsg + '\n - E-mail Address is required';
		bErrorFound = true;
	}
 
	if (f.vEmail.value.replace(/\s*/g,'').length > 0 && !verifyEmail(f.vEmail.value)) {
		strErrorMsg = strErrorMsg + '\n - E-mail Address must be a valid e-mail address';
		bErrorFound = true;
	}
	
	if (f.iInDepth.checked) {
		if (f.vMailingAddress1.value.replace(/\s*/g,'').length == 0) {
			strErrorMsg = strErrorMsg + '\n - Mailing Address, line 1 is required';
			bErrorFound = true;
		}	

		if (f.vMailingCity.value.replace(/\s*/g,'').length == 0) {
			strErrorMsg = strErrorMsg + '\n - Mailing City is required';
			bErrorFound = true;
		}
	
		if (f.vMailingState.selectedIndex == 0) {
			strErrorMsg = strErrorMsg + '\n - Mailing State is required';
			bErrorFound = true;
		}	

		if (f.vMailingCountry.selectedIndex == 0) {
			strErrorMsg = strErrorMsg + '\n - Mailing Country is required';
			bErrorFound = true;
		}	

		if (f.vMailingZip.value.replace(/\s*/g,'').length == 0) {
			strErrorMsg = strErrorMsg + '\n - Mailing Postal Code is required';
			bErrorFound = true;
		}	

		if (f.vPhone.value.replace(/\s*/g,'').length == 0) {
			strErrorMsg = strErrorMsg + '\n - Phone is required';
			bErrorFound = true;
		}
	}

	if (bErrorFound == true) {
		alert(strErrorMsg);
		return false;
	} else {		
		return true;	
	}
}