function fnOpenPopUp(sFile, iWidth, iHeight) { var bIsIE4 = false; if ((navigator.appVersion).indexOf("IE 4.") != -1) { bIsIE4 = true; } var sOptions = "channelmode=no,directories=no,fullscreen=no,resizable=no,scrollbars=no,titlebar=no,status=no,toolbar=no,menubar=no,location=no"; window.open(sFile,"_blank","height="+iHeight+",width="+iWidth+","+sOptions,false); } function getStyle(el, style) { if(!document.getElementById) return; var value = el.style[toCamelCase(style)]; if(!value) if(document.defaultView) value = document.defaultView.getComputedStyle(el, "").getPropertyValue(style); else if(el.currentStyle) value = el.currentStyle[toCamelCase(style)]; return value; } function toCamelCase( sInput ) { var oStringList = sInput.split('-'); if(oStringList.length == 1) return oStringList[0]; var ret = sInput.indexOf("-") == 0 ? oStringList[0].charAt(0).toUpperCase() + oStringList[0].substring(1) : oStringList[0]; for(var i = 1, len = oStringList.length; i < len; i++){ var s = oStringList[i]; ret += s.charAt(0).toUpperCase() + s.substring(1) } return ret; } function toHex(N) { if (N==null) return "00"; N=parseInt(N); if (N==0 || isNaN(N)) return "00"; N=Math.max(0,N); N=Math.min(N,255); N=Math.round(N); return "0123456789ABCDEF".charAt((N-N%16)/16) + "0123456789ABCDEF".charAt(N%16); }