case 2313 - Fixed JS eror in IE 7-8.