       var sCourtID = nd.childNodes[0].nodeValue;

                    nd = x[i].getElementsByTagName("ASTART")[0];
                    var sStart  = "";
                    if(nd.hasChildNodes()){sStart=nd.childNodes[0].nodeValue;}

                    nd = x[i].getElementsByTagName("AEND")[0];
                    var sEnd  = "";
                    if(nd.hasChildNodes()){sEnd=nd.childNodes[0].nodeValue;}

                    var bContinue  = false;
                    //check if court is selected
        