var sRowPreviousColor="#FFFFFF",sBoxPreviousColor="#FFFFFF",sBoxValueSet="#e2eaef",sData="",sGridHighlightColor="#e2eaef",boxFocusColor="#ffe3b9",ems_winDetails="menubar=no,toolbar=no,scrollbars=yes,resizable=yes";function goTo(a){window.location.href=a;return false}function getKey(a){shiftKeyPressed(a);var b;if(!a)var a=window.event;if(a.keyCode)b=a.keyCode;else if(a.which)b=a.which;return b}var _shiftKeyPressed=false;function shiftKeyPressed(a){_shiftKeyPressed=window.event?event.shiftKey:a.shiftKey;return _shiftKeyPressed}function ctrlKeyPressed(a){return window.event?event.ctrlKey:a.ctrlKey}function doNothing(){return}function openDetails(c,f,d,e){if(c)sData=c;if(sData==""){Dea.setAlert(ems_NoItemSelected);return}var b=f+sData;if(d){var a=window.open(b,e,ems_winDetails,0);a&&a.focus()}else window.location.href=b;return}function SetCurrentPos(d){var a=document.getElementById(d).style,b=document.getElementById(d);if(b){var c=Dea.Mouse.X,e=Dea.Mouse.Y;a.visibility="hidden";if(c+20+b.offsetWidth>Dea.Mouse.windowWidth)a.left=c-(b.offsetWidth+20)+"px";else a.left=c+20+"px";if(e+20+b.offsetHeight>Dea.Mouse.windowHeight)a.top=Dea.Mouse.windowHeight-b.offsetHeight+"px";else a.top=e+"px";a.visibility="visible"}}function SetCurrentPosWithOffset(e,f){var a=document.getElementById(e).style,b=document.getElementById(e);if(b){var d=Dea.Mouse.X,c=Dea.Mouse.Y;c=c-f;a.visibility="hidden";if(d+20+b.offsetWidth>Dea.Mouse.windowWidth)a.left=d-(b.offsetWidth+20)+"px";else a.left=d+20+"px";if(c+20+b.offsetHeight>Dea.Mouse.windowHeight)a.top=Dea.Mouse.windowHeight-b.offsetHeight+"px";else a.top=c+"px";a.visibility="visible"}}function getInternetExplorerVersion(){var a=-1;if(navigator.appName=="Microsoft Internet Explorer"){var c=navigator.userAgent,b=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");if(b.exec(c)!=null)a=parseFloat(RegExp.$1)}return a}function checkVersion(b){var a=getInternetExplorerVersion();if(a>-1)if(a<7)window.location.href="ExpectedError.aspx?"+b}function setObjectPosition(a){if(a){var b=Dea.Mouse.X,c=Dea.Mouse.Y;a.style.visibility="hidden";if(b+20+a.offsetWidth>Dea.Mouse.windowWidth)a.style.left=b-(a.offsetWidth+20)+"px";else a.style.left=b+20+"px";if(c+20+a.offsetHeight>Dea.Mouse.windowHeight)a.style.top=Dea.Mouse.windowHeight-a.offsetHeight+"px";else a.style.top=c+"px";a.style.visibility="visible"}}
