if ($data=='fac') {
$sql="select * from tb_fac order by fac_id";
$result = mysql_query($sql) or die (mysql_error());
echo "<select name='fac' onChange=\"dochange('part', this.value)\">\n";
echo "<option value='0'>---Pls choose faction--</option>\n";
echo "<option value='-'>-</option>\n";