//	PNTA-210 prototype-to-jQuery conversion - not started
/**
 * @description [get references associated with a record]
 */
 
//gets a reference for a uid
function openReferences(id,uid,currentPage)	{		
	//clear and hide/show
	
	var elementID = "#"+id;
	jQuery(elementID).html("").toggle();
	
	if(jQuery(elementID).is(":visible")){
		getReferences(id,uid,currentPage);
	}
}

function getReferences(id,uid,currentPage){
	if(currentPage==null) currentPage=1;
	jQuery("#"+id).html(getLoadingMarkup("Loading references..."));	
	DWREngine._execute(_ajaxConfig._cfscriptLocation + 'Navigation.cfc', null, 'GetReferences', uid, id, currentPage, pasteReferences);
}

// call back function
function pasteReferences(responseStruct) {
	jQuery("#"+responseStruct.elementid).html(responseStruct.referenceoutput);
}
