function getNodeValue(obj,tag){return obj.getElementsByTagName(tag)[0].firstChild.nodeValue;}
addL(doFunctions);function doFunctions(){showHover();Cclick();cal()}
function changeCal(e){cancelE(e);var status=aR.get({'parameters':{'day':'1', 'monyear':this.attributes.getNamedItem('value').nodeValue},"url":"/cal.php",'onSuccess':function(req){$('calH').innerHTML=req.responseText;doFunctions();showW('a','receptiondatehelp');}});return status;}	
function showHover(){var helpArr=document.getElementsByClassName('helpW');for(var i=helpArr.length-1;i>=0;i--){o=helpArr[i].id;$(o).className="helpW helpBox noshow";var ob=$(o.substr(0,o.length-4));ob.onfocus=bShow;var cl=$('cl'+i);if(cl){cl.onclick=bShow};}}
function bShow(e){t=this;if(t.className!="cl"){showW(t.id,t.id+"help")}else{t=t.parentNode.id;t=t.substr(0,t.length-4);showW(t,t+"help")}}
function showW(p,c){$(c).className=($(c).className=="helpW helpBox noshow")?"helpW helpBox showing" : "helpW helpBox noshow";}
function Cclick(e){tas=$("calendar").getElementsByTagName("button");for(var i=0;i<tas.length;i++){tas[i].onclick=spl}};
function spl(e){cancelE(e);$('receptiondate').value=this.attributes.getNamedItem('value').nodeValue;$('receptiondate').focus();$('receptiondatehelp').className="helpW helpBox noshow";}
function cal(){$('next').onclick=changeCal;$('prev').onclick=changeCal}