function validateSaveProfile(f) {
	var bErrorFound = false;
	var strErrorMsg = 'Please correct the following problems:\n'

	if (empty(f.vFirstName)) {
		strErrorMsg = strErrorMsg + '\n - First Name is required';
		bErrorFound = true;
	}

	if (empty(f.vLastName)) {
		strErrorMsg = strErrorMsg + '\n - Last Name is required';
		bErrorFound = true;
	}

	if (empty(f.vEmail)) {
		strErrorMsg = strErrorMsg + '\n - Email Address is required';
		bErrorFound = true;
	}
 
	if (!empty(f.vEmail) && !verifyEmail(f.vEmail.value)) {
		strErrorMsg = strErrorMsg + '\n - Email Address must be a valid e-mail address';
		bErrorFound = true;
	}

	if (empty(f.vPassword)) {
		strErrorMsg = strErrorMsg + '\n - Password is required';
		bErrorFound = true;
	}

	if (!empty(f.vPassword) && (f.vPassword.value.length < 6 || f.vPassword.value.length > 15)) {
		strErrorMsg = strErrorMsg + '\n - Password must be between 6 and 15 characters';
		bErrorFound = true;
	}
	
	if (empty(f.vConfirm)) {
		strErrorMsg = strErrorMsg + '\n - Password Confirmation is required';
		bErrorFound = true;
	}	
	
	if (f.vConfirm.value != f.vPassword.value) {
		strErrorMsg = strErrorMsg + '\n - Password Confirmation failed';
		bErrorFound = true;		
	}
	
	if (!empty(f.vPhoto) && Right(f.vPhoto.value.toLowerCase(),4) != ".jpg" && Right(f.vPhoto.value.toLowerCase(),4) != ".gif") {
		strErrorMsg = strErrorMsg + '\n - Your photo/icon must end in .jpg or .gif';
		bErrorFound = true;
	}

	if (!empty(f.vMP3_2) && Right(f.vMP3_2.value.toLowerCase(),4) != ".mp3") {
		strErrorMsg = strErrorMsg + '\n - Your \'Listen To sample\' clip must end in .mp3';
		bErrorFound = true;
	}	

	if (!empty(f.vMP3_1) && Right(f.vMP3_1.value.toLowerCase(),4) != ".mp3") {
		strErrorMsg = strErrorMsg + '\n - Your \'Free Download\' clip must end in .mp3';
		bErrorFound = true;
	}

	// need to combine the Instrument checkboxes
	strTemp = '';

	for (i=0; i < f.elements['laInstrumentID'].length; i++) {
		if (f.elements['laInstrumentID'][i].checked) {
			strTemp = strTemp + f.elements['laInstrumentID'][i].value + ',';
		}
	}
	
	f.elements['strInstruments'].value = strTemp;	

	if (bErrorFound == true) {
		alert(strErrorMsg);
		return false;
	} else {		
		return true;	
	}
}

