function resWell()
{
	document.opt.well.selectedIndex = 0;
}

function valForm()
{

if(document.opt.well.options.selectedIndex == -1)
{
alert("You must select a well")
return false;
}

if(document.opt.when.selectedIndex == 0)
{
alert("Date must be selected in the First Date Box")
return false;
}


var choice = document.opt.well;
var wells = choice.options.length;
if(choice.options.selectedIndex == 0)
{
	for(i=1; i<wells; i++)
	{
	if(choice.options[i].selected == true)
		{
		alert("You can not select 'All Wells' and individual wells at the same time")
		return false;
		}
	}

return true;
}}
