// Turn the note on (visible)
// and load it

function jq(myid) { //colons can't be in jquery's ids! 
   return '#' + myid.replace(/(:|\.)/g,'\\$1');
}

function displayNote(refobject, theURL) {
	theID = jq("note_" + refobject);
	theID2 = "#note_" + refobject;
	if ($(theID).css("display") == "block") {
	    $(theID).css({"display" :  "none"});
       } else {
		//theID = "#note_" + refobject;
		if ($(theID2).html() == null) {
		    	$(theID).html("Loading note...");		
			$(theID).load(theURL);    		
			//new ajax (theURL, {update: $(theID)});
		}
		$(theID).css({"display" : "block" });
	}
}

// Kill it...

function hideNote(refobject) {
    $("#note_" + refobject).css({"display": "none"});
}

