/*'#################################################################################
' Inputs :
'		(strFormName)		: the name of the current form
'		(strListName)		: the name of the droplist being checked
'		(strMessage)		: message to display if droplist is not selected
'		(strEmpty)			: the string which specifies that the list is empty
'
' Actions :
'		checks to see if the current droplist value equals the string value
'		specified by strEmpty (typically '' or '0')
'		if values match then and alert is shown and the droplist received focus
'
' Outputs : FALSE if the droplist value equals the strEmpty value
'			TRUE if the droplist value does not equal the strEmpty value
'################################################################################# */
function isListSelected(strFormName, strListName, strMessage, strEmpty)
{
	var listName = eval('document.'+strFormName+'.'+strListName)

	if (listName.selectedIndex > -1)
		{
		if (listName.options[listName.selectedIndex].value == strEmpty)
			{
			if (strMessage > "")
				{
				alert(strMessage)
				}
			listName.focus();
			return false;
			}
		else
			return true;
		}
	else
		{
		if (strMessage > "")
			{
			alert(strMessage)
			}
		listName.focus();
		return false;
		}
}

