function clickIE4(){if (event.button==2||event.button==3){return false;}}
function clickNS4(e){if (document.layers||document.getElementById&&!document.all){if (e.which==2||e.which==3){return false;}}}
if (document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS4;}else if (document.all&&!document.getElementById){document.onmousedown=clickIE4;}
document.oncontextmenu=new Function("return false")
/*function disabletext(e){return false}
function reEnable(){return true}
document.onselectstart=new Function ("return false")
if (window.sidebar){document.onmousedown=disabletext;document.onclick=reEnable}*/
function copyaddr(f1,f2,f3,d1,d2,d3){$(d1).value=$(f1).value;$(d2).value=$(f2).value;$(d3).value=$(f3).value;}
function copyfrom(from,e){if (e.value==''){e.value = $(from).value}}
function confirmDelete(){return confirm('Biztosan törölni akarja a kiválasztott rekordot?')}
function ShowPostIt(){ new Effect.Opacity('post-it', { from: 0, to: 1 }); return false; }
function HidePostIt(){ new Effect.Opacity('post-it', { from: 1, to: 0 }); return false; }
function getY(oElement) { var iReturnValue = 0; while( oElement != null ) { iReturnValue += oElement.offsetTop; oElement = oElement.offsetParent; } return iReturnValue; }
function getX(oElement) { var iReturnValue = 0; while( oElement != null ) { iReturnValue += oElement.offsetLeft; oElement = oElement.offsetParent; } return iReturnValue; }
function showZoom(sender,target){ var ctrl = $(sender); var zoom = $('zoom'+target); zoom.style.top = getY(ctrl) + 25 + 'px'; zoom.style.left = getX(ctrl) + ctrl.clientWidth + 10 + 'px'; zoom.show(); }
