dialog: fixed zIndex issue in Opera 10.63, fixed JS for IE6-8