var calTrigerObject;var calTargetBox;var calScript;var tmrHideCal;function dcrwwgk0_(script,obj_name,alignX,alignY){gummgkq0_(obj_name);var theElement=calTrigerObject;var r =  {x: 0, y: theElement.clientHeight,w:theElement.clientWidth  };while(theElement != null&&theElement.tagName!='DIV'){r.x += theElement.offsetLeft;r.y += theElement.offsetTop;theElement = theElement.offsetParent;}calTargetBox.style.position = 'absolute';if(alignX=='left'){calTargetBox.style.left = r.x;}else if(alignX=='right'){calTargetBox.style.left = (r.x+r.w)-150;}if(alignY=='bottom'){calTargetBox.style.top = r.y;}else if(alignY=='top'){calTargetBox.style.top = r.y-150;}else  {calTargetBox.style.top = r.y-parseInt(alignY);}calTargetBox.style.width = 150;calTargetBox.style.display ='block';calScript=script;eufjjvp0_();}function eufjjvp0_(){calTargetBox.innerHTML='Зареждане...';var http_request;http_request=zjcftgp0_();http_request.open('POST', calScript, true);http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=windows-1251");http_request.setRequestHeader("Connection", "close");http_request.onreadystatechange = function(){if (http_request.readyState == 4){if (http_request.responseText.indexOf('/*evalme*/')>0)eval(http_request.responseText);else  calTargetBox.innerHTML =http_request.responseText;}};s='triger='+calTrigerObject.name+'&value='+escape(calTrigerObject.value);http_request.send(s);}function gummgkq0_(obj_name){if (calTrigerObject!=null){calTargetBox.style.display='none';}calTrigerObject=document.getElementById(obj_name);calTargetBox=document.getElementById(obj_name+'.calendar');}function mclwqbt0_(val){calTrigerObject.value=val;calTargetBox.style.display='none';if (calTrigerObject.onchange){calTrigerObject.onchange.call();}}function cptttln0_(val){mclwqbt0_(val);dcrwwgk0_(calScript,calTrigerObject.id);}