<script language='javascript' type="text/javascript">
//<![CDATA[
function showblogtype()
{
	itm = my_getbyid( 'blog_type' );
	type = itm.value;
	if (type=='local')
	{
		hide1 = 'external';
		hide2 = 'rssfeed';
	}
	else if (type=='external')
	{
		hide1 = 'local';
		hide2 = 'rssfeed';
	}
	else
	{
		hide1 = 'local';
		hide2 = 'external';
	}
	my_show_div( my_getbyid( 'setting_'+type  ) );
	my_hide_div( my_getbyid( 'setting_'+hide1 ) );
	my_hide_div( my_getbyid( 'setting_'+hide2 ) );
}
//]]>
</script>
<tr>
  <td class="pformleft"><b>{$this->ipsclass->lang['blog_type']}</b></td>
  <td class="pformright">&nbsp;
  	<select class='forminput' name='blog_type' id='blog_type' onchange='javascript:showblogtype();'>
	 <option value='local' {$blog['type_local']}>{$this->ipsclass->lang['blog_local']}</option>
	 <option value='external' {$blog['type_external']}>{$this->ipsclass->lang['blog_external']}</option>
    </select>
  </td>
</tr>