function customBodyLoad(a){repositionDiv("language",357,955,705)}function customBodyResize(a,b){repositionDiv("language",357,955,705)}function customBodyScroll(a){}function repositionDiv(a,b,c,d){if(a=document.getElementById(a))a.style.left=document.body.offsetWidth>c?Math.round(b+document.body.offsetWidth/2)+"px":d+"px"}function onAfter(){for(var a=1;a<=maxNav;a++)$("tab_"+a).className="";a=this.id.replace("item_","");$("tab_"+a).className="current"}
function mouseOverDoelgroep(a,b){slider&&slider.cycle(b);slider.cycle("pause");for(b=1;b<=maxNav;b++)$("tab_"+b).className="";a.className="current"}function mouseOutDoelgroep(){slider.cycle("resume")}function showFront(a){var b=$("ecardFront"),c=$("ecardBack");if(b&&c){b.style.display="";c.style.display="none"}if(b=$("linkBack"))b.className="";a.className="current"}
function showBack(a){var b=$("ecardFront"),c=$("ecardBack");if(b&&c){b.style.display="none";c.style.display=""}a.className="current";if(a=$("linkFront"))a.className=""}function defaultValue(a,b){JQ.query(document).ready(function(){if($(a).value=="")$(a).value=b;JQ.query("#"+a).focus(function(){if($(a).value==b)$(a).value=""});JQ.query("#"+a).blur(function(){if($(a).value=="")$(a).value=b})})}
function checkRecaptcha(){if(document.getElementById("recaptcha_challenge_field")){var a=document.getElementById("recaptcha_challenge_field").value,b=document.getElementById("recaptcha_response_field").value,c=new Url("misc/checkRecaptcha.aspx");if(!a||!b)return false;c=c.add("challenge",a);c=c.add("response",b);return c.request()=="true"}else return true}
function checkAfspraak(){if(!$("birthdate").value){alert("U heeft nog geen geboortedatum ingevuld");$("birthdate").focus();return false}if(!$("patientnummer").value){alert("U heeft nog geen patientnummer ingevuld");$("patientnummer").focus();return false}if(!$("registratiecode").value){alert("U heeft nog geen registratiecode ingevuld");$("registratiecode").focus();return false}if(!checkRecaptcha()){alert("De ingevulde controle tekst is niet correct.");document.getElementById("recaptcha_response_field").focus();
return false}$("btnAfspraak").style.display="none";$("loader").style.display="";document.frmAfspraakMaken.submit()}function burn(){candles.tpl_13.rows[0].tdt_45.value($("edtCandles_tpl_13_tdt_45_0").value);for(var a=candles.tpl_13.current().canSave(),b=true,c=0;c<a.length;c++){b=false;a[c].message?a[c].showError():a[c].showError("U heeft dit veld nog niet ingevuld.")}if(b){a=new Url;a=a.add("action",1);location.href=a}}
function checkFieldLength(){return $("edtCandles_tpl_13_tdt_45_0").value.length>220?false:true}function textCounter(){var a=$("edtCandles_tpl_13_tdt_45_0");if(a.value.length>220)a.value=a.value.substring(0,220)};
