// JavaScript Document

function compare()
{
	var obj = new Array()
	obj[0] = document.getElementById('firstChoice');
	obj[1] = document.getElementById('secondChoice');
	obj[2] = document.getElementById('thirdChoice');
	if (obj[0].value!="" && obj[1].value!="") //compare only after the first 2 drop downs have been properly selected
	{
		for(i=0;i<obj.length;i++)
		{
			if (obj[0].value==obj[1].value||obj[0].value==obj[2].value||obj[1].value==obj[2].value)
			{
				alert("You have selected a duplicate series choice. Please select 3 unique series choices.");
				return false;
			}
		}
	}
}