if (window.addEventListener)
    window.addEventListener("load", RunInit, false)
else if (window.attachEvent)
    window.attachEvent("onload", RunInit)
else if (document.getElementById)
    window.onload=RunInit

function RunInit() //3.20.20.9 6/11/2008 Added
{
    if (typeof(edIDs) == "string")
      {jaxDID(edIDs);}

}

var gDebugMode = false;
function jaxDID(pedIDs)
{
	        AjaxRequest.get( {
                  'url' : 'calendar_ajax.asp'
                  ,'Mode'  : 'DIDmore'
                  ,'DIDs'  : pedIDs
                  , 'onSuccess' : function(req) {
	                        var oJSON = eval(req.responseText);
	                        fillMORE(oJSON);
	                    }
                  , 'onError' : function(req) {
                                  if (req.status == 500)  //was unhandled error
                                        {
                                        ElementStuff('ajax_errorDetail', req.responseText);
                                        ElementShow('ajax_errorDetail');
                                        }
                                }
                } );        

}
function fillMORE(poJSON)
{
    if (poJSON != null) 
      {
		for (var i=0;i < poJSON.RowCount;i++)
		    {
		    var o = poJSON.Records[i]
		    if (o.HasLD == '1')
		      {
		      try{document.getElementById('x'+o.DID).innerHTML = "...more";} //3.20.23.10
		      catch(exception)
		        {//do nothing
		        }
		      }
		    }
      }
		    
}
