<!--
// define whitespace characters
var whitespace = " \t\n\r";
function isEmpty(s)
{
   var i;
   if((s == null) || (s.length == 0))
     return true;
   // Search string looking for characters that are not whitespace
    for (i = 0; i < s.length; i++)
    {   
     var c = s.charAt(i);
     if (whitespace.indexOf(c) == -1) 
        return false;
    }
   
    // All characters are whitespace.
    return true;
}

function ValidateDeath() {
if ((frmDeath.selCDeath.value == "all") && (isEmpty(frmDeath.txtNDeath.value ))){
   	alert("Please enter a name to search -OR- Select a specific County");
    frmDeath.txtNDeath.focus();
	return false;
	}
else { return true; }
}

function ValidateCountyRecs() {
if ((frmCountyRecs.selCRCounty.value == "all") && (isEmpty(frmCountyRecs.txtCRType.value))) {
	alert("Please enter all or part of a name for a record type -OR- Select a specific County");
	frmCountyRecs.txtCRType.focus();
	return false;
	}
else { return true; }
}

function ValidateBirths() {
if ((frmBirths.selCBirth.value == "all") && (isEmpty(frmBirths.txtNBirth.value))) {
	alert("Please enter a name to search -OR- Select a specific County");
	frmBirths.txtNBirth.focus();
	return false;
	}
else { return true; }	
}	
-->

