hice unos cambios, la idea es que con cada clic, recorra el arreglo completo:
Código Javascript
:
Ver original<script type="text/javascript">
var i
window.onload = function(){
f = document.forms.item("formulario");
for ( i = 0 ; i < f.length ; i++ ){
if ( f.elements.item(i).type=="radio" ) f.elements.item(i).onclick = function(){recorrer();}
}
}
function recorrer(){
texto = document.getElementById("search_query_block")
texto.value = ""
sep = ""
for ( i = 0 ; i < f.length ; i++ ){
if ( f.elements.item(i).type=="radio" && f.elements.item(i).checked==true)
{
var nombre = f.elements.item(i).value
texto.value = texto.value + sep + nombre
if ( sep == "" ) sep = " ";
}
}
}
</script>
<div id="search_block_left" class="block exclusive">
<form name="formulario" method="post" action="{$link->getPageLink('search', true)}" id="searchbox">
<p class="block_content">
<label for="search_query_block">{l s='Enter a product name or description.' mod='blocksearch'}</label>
<input type="hidden" name="orderby" value="position" />
<input type="hidden" name="controller" value="search" />
<input type="hidden" name="orderway" value="desc" />
<!-- Selectores Personal Shoppers -->
<div>
<label><input type="radio" name="search_query1" value="moreno" />Moreno</label>
<label><input type="radio" name="search_query1" value="Rubio"/>Rubio</label>
</div>
<div>
<label><input type="radio" name="search_query2" value="con curvas"/>con Curvas</label>
<label><input type="radio" name="search_query2" value="atletica"/>Atlética</label>
</div>
<div>
<label><input type="radio" name="search_query3" value="atrevida"/>Atrevida</label>
<label><input type="radio" name="search_query3" value="elegante"/>Elegante</label>
</div>
<label><input class="search_query" type="text" id="search_query_block" name="search_query" value="" size="120"/>
<label><input type="submit" id="search_button" class="button_mini" value="{l s='Go!' mod='blocksearch'}" />
</p>
</form>
</div>