fixed ie6,7 bugs of dialog