This will check if a location number is valid, i.e link is between 1 and LinkCount and percent is between 0 and 1.
Syntax: CheckLocation(loc: TLocation)