var isDOM=document.getElementById;
function el(id){return(isDOM)?document.getElementById(id):document.all(id);}
function getBounds(e){var left=e.offsetLeft;var top=e.offsetTop;for(var parent=e.offsetParent;parent;parent=parent.offsetParent){left+=parent.offsetLeft;top+=parent.offsetTop;}return{l:left,t:top,w:e.offsetWidth,h:e.offsetHeight};}
function attachHint(e,html){if(!isDOM) return;var b=getBounds(e);var h=document.createElement('div');h.className='hint';h.style.left=b.l+'px';h.style.top=b.t+b.h+5+'px';document.body.appendChild(h);h.innerHTML=html;e.hint=h;e.onfocus=function(){this.hint.style.visibility='visible';};e.onblur=function(){this.hint.style.visibility='hidden';};e.onfocus();}
function updateFee(value){var fee = 0;if(value == 0){fee = value;}else if(value <= 999999){fee = 8000;}else if(value <= 4999999){fee = 16000;}else if(value >= 5000000){fee = 22000;}document.submitrequest.membershipfee.value = fee;}