var locationCodes = new Array();
var locationValues = new Array();

/* 위치정보 key, value 들을 선언한다. */
locationCodes[0] = "LOC_001";
locationCodes[1] = "LOC_002";

locationValues[0] = 'home > company ';
locationValues[1] = 'home > <a href="/index.jsp?tableName=xxx&menuiId=2243">resource</a> > ticket';




/* key 에 해당하는 array 내부 index 정보를 리턴한다. */
function getLocPathIndex(key){
	for(i=0; i<locationCodes.length; i++){
		if(locationCodes[i] == key) return i;
	}//for
}

/* 해당 code의 locationPath 정보를 리턴한다. */
function getLocationPath(locCode){
	var locIndex = getLocPathIndex(locCode);
	var locationValue = locationValues[locIndex];
	document.all.locationPathDiv.innerHTML = locationValue;
}
