it would be better to declare the Cookie variable with others above and to only put the YAHOO.util.Cookie in it here.