Combining calender and tabbar

i tried loading calendar in 3 different pages . on their seperate pages they load perfectly but when i use the tabbar to load them in ajax only the first page called loads the calender the other two pages cant load d calendar. Please help:

Calling page has this script :

flight page has

hotel page has :

any clues !!!

If you used this code with iframe loading mode, it could work. However, in case of ajax loading, it can not work. window.onload is called when the page is loaded. And the content is loaded after window.onload handler could be called.

So, the following would be more correct:

[code]

[/code]

Morever, the calendar libraries must be included in the page with tabbar.

Thanks, its solved the problem. I was thinking if i removed the windows.onload that it wont work!!