//-----------------
// Standard Javascript functions
//-----------------


//-----------
// EmptyField - form validation
// if a field is empty, output warning and return true
//-----------
function EmptyField( input ) {
    if ( isEmpty( input.value ) ) {
        input.focus() ;
        alert ("You did not enter a value for '" + input.name  +
            "'\n\nThis is a required field. Please enter it now.");
        return true ;
    }
    return false ;
}

// return true if the string is null or its length = 0
function isEmpty(str) {
    return ((str == null) || (str.length == 0))
}
