<!--
function showcombo(loci1value,loci2) {
//********************************************************************************************
// 
//	Developed by:	Rick Smith
//	Date:			September 29, 2003
//	Description:	This function switches the visibility of the combo boxes 
//					on the user input form when there are two in a group
//********************************************************************************************
//	Revision History:
// Date		Name		Description
// 2/5/05	Rick Smith	Added the "OR" logic to test for zero. This is necessary becaue
//						when the user selects either * or null, no additional combo box
//						should be enabled.
//********************************************************************************************
	if(loci1value == '*' || loci1value=='0')
		{
			loci2.value='*'
			loci2.style.visibility='hidden'
		}
		else
		{
			loci2.style.visibility='visible'
		}
	checkvalues(loci1value,loci2.value,loci2)
}
function showcombo2(loci1value,loci2,loci3)	{
//********************************************************************************************
// 
//	Developed by:	Rick Smith
//	Date:			September 29, 2003
//	Description:	This function switches the visibility of the combo boxes 
//					on the user input form when there are three in a group
//********************************************************************************************
//	Revision History:
// Date		Name		Description
// 2/5/05	Rick Smith	Added the "OR" logic to test for zero. This is necessary becaue
//						when the user selects either * or null, no additional combo box
//						should be enabled.
//********************************************************************************************

	if(loci1value == '*' || loci1value=='0')
		{
			loci2.value='*'
			loci2.style.visibility='hidden'
			loci3.value='*'
			loci3.style.visibility='hidden'
		}
		else
		{
			loci2.style.visibility='visible'
		}
	checkvalues(loci1value,loci2.value,loci2)
}
function checkvalues(loci1value,loci2value,loci2) {
//********************************************************************************************
// 
//	Developed by:	Rick Smith
//	Date:			January 18, 2005
//	Description:	This function ensures that each successive combo box has a
//					higher value than the previous one
//********************************************************************************************
//	Revision History:
// Date		Name		Description
//********************************************************************************************


	if(loci2value != '*')
		{
		if(parseFloat(loci2value) <= parseFloat(loci1value))
    		{
    			alert("Each locus should have values entered in ascending order.\r\n\r\n" +
    			"Please change the value for " + loci2.name + " currently set to " + loci2value + "\r\n" +
    			"to a value greater than " + loci1value + ".\r\n\r\n" + loci2.name +
    			 " will now be reset to '*'.");
    			loci2.value='*';
    		}
    	}
}
//-->
