Attentional functions of parietal and frontal cortex