function refreshElement(levelName, elementFieldName){
	if(levelName=="CoinType")
		loadCoinTypeList();		
}

function loadCoinTypeList(){   
 	writeLoadingInfo("tdCoinTypeList"); 	
 	sendHttpRequest("./coinTypeList.do?originId=" + getElementById("originId").value +"&coinClassId="+getElementById("elementId").value, showCoinTypeList,false);   		
}

function showCoinTypeList(httpRequest){   		
 	if(isHttpRequestReady(httpRequest)){
		setControlContent("tdCoinTypeList", httpRequest.responseText);		
	}		
}

function clientOnLoad(){
	loadCoinTypeList();
	loadCompAuctionList();
}
  
function loadList(originId){
	writeLoadingInfo("coinTypeListContent"); 
	sendHttpRequest("./coinTypeList.do?originId=" + originId, showList);
}

function showList(){
	if(isHttpRequestReady())
	setControlContent("coinTypeListContent", defaultHttpRequest.responseText);
}

function ShowCoinTypeDef(){
	OpenInsetPage(500,200,"./coinTypeDef.do?changeAction=Create&originId=" + getElementById("originId").value+"&coinClassId="+getElementById("elementId").value);
}
