1 /**********************************************************************
2 Copyright (C) FrontAccounting, LLC.
3 Released under the terms of the GNU General Public License, GPL,
4 as published by the Free Software Foundation, either version 3
5 of the License, or (at your option) any later version.
6 This program is distributed in the hope that it will be useful,
7 but WITHOUT ANY WARRANTY; without even the implied warranty of
8 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9 See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
10 ***********************************************************************/
11 function fixPNG(myImage)
13 var arVersion = navigator.appVersion.split("MSIE")
14 var version = parseFloat(arVersion[1])
15 if ((version >= 5.5) && (version < 7) && (document.body.filters)) {
16 var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
17 var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
18 var imgTitle = (myImage.title) ?
19 "title='" + myImage.title + "' " : "title='" + myImage.alt + "' "
20 var imgStyle = "display:inline-block;" + myImage.style.cssText
21 var strNewHTML = "<span " + imgID + imgClass + imgTitle
22 + " style=width:" + myImage.width + "px; height:" + myImage.height + "px;"
23 + imgStyle + ";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
24 + "(src='" + myImage.src + "', sizingMethod='scale');></span>"
25 myImage.outerHTML = strNewHTML
29 function set_fullmode() {
30 document.getElementById('ui_mode').value = 1;
31 document.loginform.submit();