
<script language='javascript'>
<!--
	function add_to_form()
	{
		
		var separator = '$sep';
		var entry     = '$entry';
		
		var name = document.finduser.username.options[document.finduser.username.selectedIndex].value;
		
		if (separator == 'line')
		{
			separator = '\\n';
		}
		
		if (entry == 'textarea')
		{
			// Where shall we put the separator?
			
			var tbox     = opener.document.REPLIER.$name.value;
			var tboxSize = opener.document.REPLIER.$name.value.length;
			
			// Remove leading spaces...
			
			while ( opener.document.REPLIER.$name.value.slice(0,1) == " " )
			{
				opener.document.REPLIER.$name.value = opener.document.REPLIER.$name.value.substr(1, opener.document.REPLIER.$name.value.length - 1);
				opener.document.REPLIER.$name.value.length = opener.document.REPLIER.$name.value.length;
			}
			
			// Remove trailing spaces...
			
			while ( opener.document.REPLIER.$name.value.slice(opener.document.REPLIER.$name.value.length - 1, opener.document.REPLIER.$name.value.length) == " " )
			{
				opener.document.REPLIER.$name.value = opener.document.REPLIER.$name.value.substr(0, opener.document.REPLIER.$name.value.length - 1);
				opener.document.REPLIER.$name.value.length = opener.document.REPLIER.$name.value.length;
			}
			
			// Do we have a leading comma?
			
			while ( opener.document.REPLIER.$name.value.slice(0,1) == "\\n" )
			{
				opener.document.REPLIER.$name.value = opener.document.REPLIER.$name.value.substr(1, opener.document.REPLIER.$name.value.length - 1);
				opener.document.REPLIER.$name.value.length = opener.document.REPLIER.$name.value.length;
			}
			
			// Do we have a trailing comma?...
			
			while ( opener.document.REPLIER.$name.value.slice(opener.document.REPLIER.$name.value.length - 1, opener.document.REPLIER.$name.value.length) == "\\n" )
			{
				opener.document.REPLIER.$name.value = opener.document.REPLIER.$name.value.substr(0, opener.document.REPLIER.$name.value.length - 1);
				opener.document.REPLIER.$name.value.length = opener.document.REPLIER.$name.value.length;
			}
			
			// First in box?
			
			if ( opener.document.REPLIER.$name.value.length == 0)
			{
				opener.document.REPLIER.$name.value += name;
			}
			else
			{
				opener.document.REPLIER.$name.value += separator + name;
			}
		}
		
	}
//-->
</script>
<form name='finduser'>
<!-- Borderline skin by InvisionSkins.com - copyright 2003 Goof Muilwijk [Roadkill71] -->
<div class='border'>
<div class='tableborder'>
<div style='float: right;padding:3px;'><{CAT_IMG}></div>
<div class='maintitle'><{CAT_IMG}>&nbsp;{$ibforums->lang['fu_title']}</div>
<{SPACER}>
<div class='content' style='padding: 3px; text-align: center;'>{$ibforums->lang['fu_add_desc']}<br /><br /><select name='username' class='forminput'>$names</select><br /><br /><input type='button' name='add' onClick='add_to_form()' value='{$ibforums->lang['fu_add_mem']}'></div>
<div class='titlemedium' style='text-align: center;'>[ <a href='javascript:history.go(-1);'>{$ibforums->lang['fu_back']}</a> | <a href='javascript:window.close();'>{$ibforums->lang['fu_close_win']}</a> ]</div>
</div>
</div>
</form>
