updated index define checks

git-svn-id: http://webookplus.googlecode.com/svn/trunk@11 e4af1bdb-a942-0fa5-43bf-c3b0ff943415