some problems solved, while some remains

Unnecessary functions have been removed.
The Ajax javascript now have a support ajax function to check if the
browser supports ajax.
However there is a problem with the time out function.THE FUNCTION GETS
CALLED EVEN AFTER SUCCESSFUL REQUEST COMPLETE