﻿function validate(select)
{
	if (select.options[select.selectedIndex].disabled == true)
	{
		select.selectedIndex = 0;
	}
	else
	{
		window.open(select.options[select.selectedIndex].value, '_self');
	}
}
function resetSelect()
{
	if (document.getElementById('mainSelect') != null)
	{
		var setMain = document.getElementById('mainSelect');
		setMain.selectedIndex = 0;
	}

	if (document.getElementById('nextSelect') != null)
	{
		var setNext = document.getElementById('nextSelect');
		setNext.selectedIndex = 0;
	}
}