ajax validatio not working


i am using external jquery modal(popup window) to insert new records first time when modal is open then

ajax validation is working fine but if i close that and open it again then its not working

2nd problem is

i am using CJuiTabs inside this i am using cgridview but sorting is not working when i click on column header its comming out from the design

thanks in advance