function validatePollForm(form)
{
	if ( form.opt1.value == null || form.opt1.value == "" )
	{
		alert ( "Please enter your first song selection." );
		form.opt1.focus();
		return false;
	}
	if ( form.opt2.value == null || form.opt2.value == "" )
	{
		alert ( "Please enter your second song selection." );
		form.opt2.focus();
		return false;
	}
	if ( form.opt3.value == null || form.opt3.value == "" )
	{
		alert ( "Please enter your third song selection." );
		form.opt3.focus();
		return false;
	}
	if ( form.opt4.value == null || form.opt4.value == "" )
	{
		alert ( "Please enter your fourth song selection." );
		form.opt4.focus();
		return false;
	}
	if ( form.opt5.value == null || form.opt5.value == "" )
	{
		alert ( "Please enter your fifth song selection." );
		form.opt5.focus();
		return false;
	}
	if ( form.firstName.value == null || form.firstName.value == "" )
	{
		alert ( "Please enter your first name." );
		form.firstName.focus();
		return false;
	}
	if ( form.lastName.value == null || form.lastName.value == "" )
	{
		alert ( "Please enter your last name." );
		form.lastName.focus();
		return false;
	}
	if ( form.address.value == null || form.address.value == "" )
	{
		alert ( "Please enter your address." );
		form.address.focus();
		return false;
	}
	if ( form.city.value == null || form.city.value == "" )
	{
		alert ( "Please enter your city." );
		form.city.focus();
		return false;
	}
	
	
	if ( form.phone.value == null || form.phone.value == "" )
	{
		alert ( "Please enter your phone number." );
		form.phone.focus();
		return false;
	}
  if ( form.email.value == null || form.email.value == "" )
	{
		alert ( "Please enter your email." );
		form.email.focus();
		return false;
	}
	return true;
}


function add(songnum,songname) 
{
	var pollForm = document.forms["voteForm"];
	if (pollForm.opt1.value == "")
	{
		pollForm.opt1.value = songname;
		pollForm.vote_1.value = songnum;
	}
	else if (pollForm.opt2.value == "")
	{
		pollForm.opt2.value = songname;
		pollForm.vote_2.value = songnum;
	}
	else if (pollForm.opt3.value == "")
	{
		pollForm.opt3.value = songname;
		pollForm.vote_3.value = songnum;
	}
	else if (pollForm.opt4.value == "")
	{
		pollForm.opt4.value = songname;
		pollForm.vote_4.value = songnum;
	}
	else if (pollForm.opt5.value == "")
	{
		pollForm.opt5.value = songname;
		pollForm.vote_5.value = songnum;
	}
	else {
		
		alert("You must clear out one of the song areas before you select another song!");
	}
}

function GetValue(input_num,input_val)
{
	document.forms["voteForm"].elements["vote_" + input_num].value = input_val;
}

function clear(input_value) 
{
	var this_input = parseInt(input_value.charAt(5));
	document.forms["voteForm"].elements[input_value].value="";
	document.forms["voteForm"].elements["vote_" + this_input].value="";
}