<script language="javascript" type="text/javascript">
<!--
function refresh_username(selected_username)
{
opener.document.forms['post'].username.value = selected_username;
opener.focus();
window.close();
}
//-->
</script>

<form method="post" name="search" action="<?php $this->_echo($d['.'][0]['S_SEARCH_ACTION']); ?>">
<table width="100%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td><table width="100%" class="forumline" cellpadding="4" cellspacing="1" border="0">
<tr> 
<th class="thHead" height="25"><?php $this->_echo($d['.'][0]['L_SEARCH_USERNAME']); ?></th>
</tr>
<tr> 
<td valign="top" class="row1"><span class="genmed"><br /><input type="text" name="search_username" value="<?php $this->_echo($d['.'][0]['USERNAME']); ?>" class="post" />&nbsp; <input type="submit" name="search" value="<?php $this->_echo($d['.'][0]['L_SEARCH']); ?>" class="liteoption" /></span><br /><span class="gensmall"><?php $this->_echo($d['.'][0]['L_SEARCH_EXPLAIN']); ?></span><br />
<?php if($_switch_select_name_count = count($d['switch_select_name'])) {for ($_switch_select_name_i = 0; $_switch_select_name_i < $_switch_select_name_count; $_switch_select_name_i++){ ?>
<span class="genmed"><?php $this->_echo($d['.'][0]['L_UPDATE_USERNAME']); ?><br /><select name="username_list"><?php $this->_echo($d['.'][0]['S_USERNAME_OPTIONS']); ?></select>&nbsp; <input type="submit" class="liteoption" onClick="refresh_username(this.form.username_list.options[this.form.username_list.selectedIndex].value);return false;" name="use" value="<?php $this->_echo($d['.'][0]['L_SELECT']); ?>" /></span><br />
<?php }} ?>
<br /><span class="genmed"><a href="javascript:window.close();" class="genmed"><?php $this->_echo($d['.'][0]['L_CLOSE_WINDOW']); ?></a></span></td>
</tr>
</table></td>
</tr>
</table>
</form>