function swap_album(album) {
	switch(album) {
		case 1:
			var text = "Lisa and the CO-OP.";
			var form_value = "lisa";
			break;
		case 2:
			var text = "Patrick and the CO-OP.";
			var form_value = "patrick";
			break;
		case 3:
			var text = "Syd and the CO-OP.";
			var form_value = "syd";
			break;
		case 4:
			var text = "the CO-OP.";
			var form_value = "sampler09";
			break;
		case 5:
			var text = "the CO-OP.";
			var form_value = "all";
			break;
		default:
			var text = "the CO-OP.";
			var form_value = "";
	}
	$('artist').update(text);
	$('list_keywords_artist').value = form_value;
}

function validate_form(form) {
	var valid = true;
	var message = "";
	if((!$('download_select').album[2].checked) && (!$('download_select').album[1].checked) && (!$('download_select').album[0].checked)) {
		message = "Please select which album you would like to download.";
		valid = false;
	}
	
	if($('list_email').value == '') {
		message = message + "\nPlease enter your email address.";
		valid = false;
	}
	
	if(valid) {
		new Ajax.Request('ajax/post_album_request.php', {asynchronous:true, evalScripts:true, onLoading:function(request){ }, parameters:Form.serialize(form)}); return false;
	} else {
		alert(message);
	}
	
	return false;
}
