You are missing a right paren in this line: > while (j<length(days) { A text editor that does syntax highlighting is a great deal of help for these sorts of things. Sarah -- Sarah Goslee http://www.functionaldiversity.org