draw_ErrorPage function code updated.