I am getting the following error in IE7
Line: 20
Char: 4
Error: ‘CurrentFontSize’ is undefined
Code: 0
The code at issue is the line in ja_script.js
<blockquote>function switchFontSize (ckname,val){ var bd = $E(‘BODY’); switch (val) { case ‘inc’: if (CurrentFontSize+1 < 7) { bd.removeClass(‘fs’+CurrentFontSize); CurrentFontSize++; bd.addClass(‘fs’+CurrentFontSize); } break; case ‘dec’: if (CurrentFontSize-1 > 0) { bd.removeClass(‘fs’+CurrentFontSize); CurrentFontSize–; bd.addClass(‘fs’+CurrentFontSize); } break; default: bd.removeClass(‘fs’+CurrentFontSize);
CurrentFontSize = val;
bd.addClass(‘fs’+CurrentFontSize); } Cookie.set(ckname, CurrentFontSize,{duration:365});}</blockquote>
Any ideas how to resolve this?
Thanks