
function SelectPriceL(selctprice)
{
	var priceValue = selctprice.options[selctprice.selectedIndex].value;
	DL_FontSearchCtrl.GetPriceList(priceValue, 0, SetSelectPriceH);
}


function SelectPriceH(selctprice)
{
	var priceValue = selctprice.options[selctprice.selectedIndex].value;
	DL_FontSearchCtrl.GetPriceList(priceValue, 1, SetSelectPriceL);
}


function SetSelectPriceH(response)
{

	var restxt = response.value;
	var resary = restxt.split("\t");
	
	if(resary.length<1){return;}

	var PriceH_DDList = document.getElementById("DL_FontSearchCtrl1_DDL_PriceH");
	var PHSelectedIndex = PriceH_DDList.options.selectedIndex;
	var PHSelectedValue = PriceH_DDList.options[PHSelectedIndex].value;
	
	PriceH_DDList.options.length = 0;

	for(var c=0;c<resary.length;c=c+2)
	{
		PriceH_DDList.options[PriceH_DDList.options.length]=new Option(resary[c] ,resary[c+1]);
		if(resary[c+1]==PHSelectedValue){
			PriceH_DDList.value = PHSelectedValue;
		}

	}

}


function SetSelectPriceL(response)
{
	
	var restxt = response.value;
	var resary = restxt.split("\t");

	if(resary.length<1){return;}

	var PriceL_DDList = document.getElementById("DL_FontSearchCtrl1_DDL_PriceL");
	var PLSelectedIndex = PriceL_DDList.options.selectedIndex;
	var PLSelectedValue = PriceL_DDList.options[PLSelectedIndex].value;

	PriceL_DDList.options.length = 0;

	for(var c=0;c<resary.length;c=c+2)
	{
		PriceL_DDList.options[PriceL_DDList.options.length]=new Option(resary[c] ,resary[c+1]);
		if(resary[c+1]==PLSelectedValue)
		{
			PriceL_DDList.value = PLSelectedValue;
		}
	}
	
}
