function isNull(boxName, boxType)	
{ if (boxName.value == "")
  { alert("You must complete the ''" + boxType + "'' field!")
    return false  
  }
  else
  { return true			
  }
}


function checkRadios(theRadio, theSection)
{	var tracker = "none"   
	
	for (var i=0; i< theRadio.length; i++) 
	{	if (theRadio[i].checked) 
		{	tracker = "ok"	
		}  
	}
	
	if (tracker == "ok") 
	{	return true
	}  
	else 
	{	alert("You must make a selection in the ''" + theSection + "'' section!")
		return false
	}  
}


function checkRadiosAdvanced(theRadio, theSection, boxName)
{	var tracker = "none"   
	
	for (var i=0; i< theRadio.length; i++) 
	{	if (theRadio[i].checked) 
		{	tracker = "ok"
			radioValue = theRadio[i].value
		}  
	}
	
	if (tracker == "ok") 
	{	if (radioValue == "Yes")
		{	if (boxName.value == "")
  			{	alert("You must complete the ''" + theSection + "'' field!")
    				return false  
  			}
  			else
  			{	return true			
  			}
  		}
  		else
  		{	return true
  		}
	}  
	else 
	{	alert("You must make a selection in the ''" + theSection + "'' section!")
		return false
	}  
}


function checkRadiosAdvanced2(theRadio, theSection, boxName)
{	var tracker = "none"   
	
	for (var i=0; i< theRadio.length; i++) 
	{	if (theRadio[i].checked) 
		{	tracker = "ok"
			radioValue = theRadio[i].value
		}  
	}
	
	if (tracker == "ok") 
	{	if (radioValue == "No")
		{	if (boxName.value == "")
  			{	alert("You must complete the ''" + theSection + "'' field!")
    				return false  
  			}
  			else
  			{	return true			
  			}
  		}
  		else
  		{	return true
  		}
	}  
	else 
	{	alert("You must make a selection in the ''" + theSection + "'' section!")
		return false
	}  
}

function checkChecks(theSection, check1, check2, check3, check4, check5, check6, check7, check8)	
{	var anyChecked = "no"
	
	if (check1 != undefined)
	{  if (check1.checked == true) anyChecked = "yes"
	}
	
	if (check2 != undefined)
	{  if (check2.checked == true) anyChecked = "yes"
	}
	
	if (check3 != undefined)
	{  if (check3.checked == true) anyChecked = "yes"
	}
	
	if (check4 != undefined)
	{  if (check4.checked == true) anyChecked = "yes"
	}
	
	if (check5 != undefined)
	{  if (check5.checked == true) anyChecked = "yes"
	}
	
	if (check6 != undefined)
	{  if (check6.checked == true) anyChecked = "yes"
	}
	
	if (check7 != undefined)
	{  if (check7.checked == true) anyChecked = "yes"
	}
	
	if (check8 != undefined)
	{  if (check8.checked == true) anyChecked = "yes"
	}
	
	if (anyChecked == "no")
	{	alert("You must check at least one checkbox in the ''" + theSection + "'' section!")
    		return false 
	}
	else
	{	return true
	}
}


function checkDropdown(theDropdown, theSection)
{	if (theDropdown.selectedIndex == 0)
	{	alert("You must select an item in the ''" + theSection + "'' dropdown box!")
		return false  
	}
	else
	{	return true			
	}	
}	
