// JavaScript Document
function tag_activate(){
	var frm = document.forms.RstSearch;
	for(i = 0; elm = frm.getElementsByTagName('select')[i]; i++){
		elm.style.display = 'none';
	}
	for(i = 0; elm = arguments[i]; i++){
		frm[elm].style.display = 'block';
	}
}

function shop_PriceChange(frm){
	shPriceList = new Array();
	shPriceList[0] = new Array('500,000.00', '1,000,000.00', '1,500,000.00', '2,000,000.00', '3,000,000.00', '5,000,0000.00', '7,500,000.00', '10,000,000.00', '15,000,000.00', '25,000,000.00 ó +');
	shPriceList[1] = new Array('1,000,000.00', '1,500,000.00', '2,000,000.00', '3,000,000.00', '5,000,000.00', '7,500,000.00', '10,000,000.00', '15,000,000.00', '25,000,000.00 ó +');
	shPriceList[2] = new Array('1,500,000.00', '2,000,000.00', '3,000,000.00', '5,000,000.00', '7,500,000.00', '10,000,000.00', '15,000,000.00', '25,000,000.00 ó +');
	shPriceList[3] = new Array('2,000,000.00', '3,000,000.00', '5,000,000.00', '7,500,000.00', '10,000,000.00', '15,000,000.00', '25,000,000.00 ó +');
	shPriceList[4] = new Array('3,000,000.00', '5,000,000.00', '7,500,000.00', '10,000,000.00', '15,000,000.00', '25,000,000.00 ó +');
	shPriceList[5] = new Array('5,000,000.00', '7,500,000.00', '10,000,000.00', '15,000,000.00', '25,000,000.00 ó +');
	shPriceList[6] = new Array('7,500,000.00', '10,000,000.00', '15,000,000.00', '25,000,000.00 ó +');
	shPriceList[7] = new Array('10,000,000.00', '15,000,000.00', '25,000,000.00 ó +');
	shPriceList[8] = new Array('15,000,000.00', '25,000,000.00 ó +');
	shPriceList[9] = new Array('25,000,000.00 ó +');
	var i = 0;
	var select_init = frm['shop_01'];
	var select_fnl = frm['shop_02'];
	var vector = shPriceList[select_init.selectedIndex];
	
	if(vector.length){ select_fnl.length = vector.length;}
	while(vector[i]){
		select_fnl.options[i].value = vector[i];
		select_fnl.options[i].text = vector[i];
		i++;
	}
	select_fnl.options[0].selected = 1;
}

function rent_PriceChange(frm){
	rtPriceList = new Array();
	rtPriceList[0] = new Array('5,000.00/Mes', '10,000.00/Mes', '15,000.00/Mes', '20,000.00/Mes', '30,000.00/Mes', '50,000.00/Mes', '75,000.00/Mes', '100,000.00/Mes', '150,000.00/Mes ó +');
	rtPriceList[1] = new Array('10,000.00/Mes', '15,000.00/Mes', '20,000.00/Mes', '30,000.00/Mes', '50,000.00/Mes', '75,000.00/Mes', '100,000.00/Mes', '150,000.00/Mes ó +');
	rtPriceList[2] = new Array('15,000.00/Mes', '20,000.00/Mes', '30,000.00/Mes', '50,000.00/Mes', '75,000.00/Mes', '100,000.00/Mes', '150,000.00/Mes ó +');
	rtPriceList[3] = new Array('20,000.00/Mes', '30,000.00/Mes', '50,000.00/Mes', '75,000.00/Mes', '100,000.00/Mes', '150,000.00/Mes ó +');
	rtPriceList[4] = new Array('30,000.00/Mes', '50,000.00/Mes', '75,000.00/Mes', '100,000.00/Mes', '150,000.00/Mes ó +');
	rtPriceList[5] = new Array('50,000.00/Mes', '75,000.00/Mes', '100,000.00/Mes', '150,000.00/Mes ó +');
	rtPriceList[6] = new Array('75,000.00/Mes', '100,000.00/Mes', '150,000.00/Mes ó +');
	rtPriceList[7] = new Array('100,000.00/Mes', '150,000.00/Mes ó +');
	rtPriceList[8] = new Array('150,000.00/Mes ó +');
	var i = 0;
	var select_init = frm['rent_01'];
	var select_fnl = frm['rent_02'];
	var vector = rtPriceList[select_init.selectedIndex];
	
	if(vector.length){ select_fnl.length = vector.length;}
	while(vector[i]){
		select_fnl.options[i].value = vector[i];
		select_fnl.options[i].text = vector[i];
		i++;
	}
	select_fnl.options[0].selected = 1;
}

