function D_bug() {

    this.debugElement = "debug";
    this.lineBreak = "<BR />";
    this.enabled = "true";
    this.print = function (txt) {
        if (this.enabled == "true") {
            document.getElementById(this.debugElement).innerHTML += txt + this.lineBreak;
        }
    }
}

function loadTooltips() {
    var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50, fixed: false });
}

function getBaseURL() {
    var url = location.href;  // entire url including querystring - also: window.location.href;
    var baseURL = url.substring(0, url.lastIndexOf('/'));
        return baseURL;
}

function D_Print(text) {
	try
	{
		document.getElementById(d_calendar.div).innerHTML = text;
	}
	catch(err)
	{
		document.getElementById("calendar").innerHTML = text;
	}
	
}
