
// expand the Insurance and Education section for physician with specified SharpFocus ID
//
function expandDetails(sharpFocusID) {
    asyncGET("/bhc/PhysicianDirectory/?__doExpanddetails=" + sharpFocusID, handleExpandDetails, sharpFocusID);
}

// callback for xmlhttp expandDetails action
//
function handleExpandDetails(xmlhttp, sharpFocusID) {
	var details = document.getElementById("moreDetail"+sharpFocusID);
	// set div content innerHTML to xmlhttp.responseText
	details.innerHTML = xmlhttp.responseText;
}

// collapse the Insurance and Education section for physician with specified SharpFocus ID
//
function collapseDetails(sharpFocusID) {
	asyncGET("/bhc/PhysicianDirectory/?__doCollapsedetails=" + sharpFocusID, handleCollapseDetails, sharpFocusID);
}

// callback for xmlhttp collapseDetails action
//
function handleCollapseDetails(xmlhttp, sharpFocusID) {
	var details = document.getElementById("moreDetail"+sharpFocusID);
	details.innerHTML = xmlhttp.responseText;
}