Fixed bug getBook_ID function. make sure we only use parent window
url to compute book id.