<?php
$options = array();
while($myrow = mysql_fetch_object($result))?>{
$options[] = $myrow;
}
?>
var options = <?=json_encode($options)?>;
for (var i = 0; i < options.length; i++) {
objSel.options[i] = new Option(options[i].name_region, options[i].name_filial)
}