<select id="categories" name="id_razd" onchange="vahtaChange(this)" >
<option value="0">Все категории</option>
<?
$res = mysql_query("SELECT id,name FROM ".PREF."razd");
while($row = mysql_fetch_assoc($res)){
?>
<option value="<?=$row['id']?>"><?=$row['name']?></option>
<?
}
?>
</select>
<div id="drakon">
Дракон
[JS]
function vahtaChange(combo){
var val=document.getElementById('categories').value
if(val == '1'){
document.write('синий');
}else{
document.write();
}
}
[/JS]
<br>
<label>
от:
<input name="min" class="p_search" type="text" size="2">
до:
<input name="max" class="p_search" type="text" size="2">
</label>
</div>