function crossmatchCheckValues()
{
    result = false;
    min = 0;
    max = 0.0028; /* roughly 10 arcsec */
    
    if(countTables() != 1)
        alert("Catalogue table must be selected!");
    else if(document.crossmatch_form.file.value == "")
        alert("User table must be selected!");
    else if(document.crossmatch_form.rad.value <= min || document.crossmatch_form.rad.value > max)
        alert("Radius must be larger than " + min + " and smaller than " + max);
    else
        result = true;
    
    return result;
}

