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