	<input type="hidden" name="my_pro_sig" value="">
	<input type="hidden" name="my_profile_name" value="">
	<h3>User Profiles</h3>

	<table cellspacing="0" cellpadding="0">
	<tr>	<td align="right"><b>Profile Name:</b></td>
		<td>
                       	<input name="profile_name" size="12" value="||ifnempty||my_profile_name||||my_profile_name||||else||||profile_name||||endif||">
                        eg. Default,Home,Work
		</td>
	</tr>

<!--- determine if the WYSIWYG should be displayed --->
||define||wys_height||100||
||define||wys_width||500||

||define||display_wys||true||
||ifnequal||_ns_wysiwyg||true||
	||undef||display_wys||
||endif||

||ifndef||show_wysiwyg||
	||undef||display_wys||
||endif||

<input type="hidden" name="_ns_wysiwyg" value="||_ns_wysiwyg||">

||ifdef||display_wys||
	<tr>	<td align="right"><b>Signature:</b></td>
		<td>
||ifnempty||pro_sig||
	||ifnempty||my_pro_sig||
		||define||quote_body||my_pro_sig||
	||else||
		||define||quote_body||pro_sig||
	||endif||
||endif||



<input type="hidden" name="msg_alternative" value="true">
<input type="hidden" name="pro_sig" value="||ifnempty||my_pro_sig||||html_text||my_pro_sig||||else||||html_text||pro_sig||||endif||">
<SCRIPT>
	function salvar_html(htmlcode)
	{
		document.configform.pro_sig.value = htmlcode;
	}

	function do_save()
	{
		document.configform.cmd.value = "profile_add";
		document.configform.submit();
	}
	function do_wys()
	{
		document.configform.my_pro_sig.value = document.configform.pro_sig.value;
		document.configform.my_profile_name.value = document.configform.profile_name.value;
		document.configform.cmd.value = "profile";
		document.configform._ns_wysiwyg.value='false'; 
		document.configform.submit();
	}

</SCRIPT>

||ifdef||ie_version||
	||include||ie_htmltext.tpl||
||else||
	||include||ns_htmltext.tpl||
||endif||
		</td>

||ifdef||display_wys||
		<td><a href="" onclick="obj_editor=tbCE; tbCE_guardar(); do_wys(); return false;"><img border="0" src="||nwimg||/textmode.gif" name="Text Mode"></a></td>
||endif||		
	</tr>
||else||
<SCRIPT>
	function do_wys()
	{
		document.configform.my_pro_sig.value = document.configform.pro_sig.value;
		document.configform.my_profile_name.value = document.configform.profile_name.value;
		document.configform.cmd.value = "profile";
		document.configform._ns_wysiwyg.value='true'; 
		document.configform.submit();
	}
</SCRIPT>

	<tr>	<td align="right"><b>Signature:</b></td>
		<td><textarea name="pro_sig" rows="8" cols="60" wrap="physical">||ifnempty||my_pro_sig||||my_pro_sig||||else||||pro_sig||||endif||</textarea></td>
	||ifdef||show_wysiwyg||
		<td valign="center"><a href="javascript:do_wys();"><img border="0" src="||nwimg||/wysiwyg.gif" name="wysiwyg"></a></td>
	||endif||
	</tr>
||endif||

	<tr>	<td align="right" nowrap><b>Default Profile:</b></td>
		<td valign="top"><select name="_default_profile" size="1" onChange="setnew(this)">
		||begin_profile||
			||ifnequal||_default_profile||profile_name||
				<option>||profile_name||</option>
			||else||
				<option selected>||profile_name||</option>
			||endif||
		||end_profile||
		</select>
		</td>
	</tr>


	<tr>	<td></td>
||ifdef||display_wys||
		<td align="center"><a href="" onclick="obj_editor=tbCE; tbCE_guardar(); do_save(); return false;" ><input type="image" border="0" src="||nwimg||/add.gif" alt="Add Profile" name="profile_add"></a></td>
||else||
		<td align="center"><a href="javascript:add_profile()" ><input type="image" border="0" src="||nwimg||/add.gif" alt="Add Profile" name="profile_add"></a></td>
||endif||
	</tr>
	<tr>	<td></td>
		<td align="center"><p><b>Note:</b> To add a new profile all you need to do is change the<br>
				<b>Profile Name</b> and then add the profile.</p></td>
	</table>

	<hr>

	<table border="1" width="100%" cellspacing="0" cellpadding="0">
	<th></th><th width="10%">Name</th><th width="90%">Value</th>

||begin_profile||
	<tr bgcolor="#ffffff">
		<td><a href="||action||?cmd=profile_delete-||profile_name||&con_display=||con_display||&utoken=||utoken||">dele</a></td>
		<td><a href="||action||?cmd=profile-||profile_name||&con_display=||con_display||&utoken=||utoken||">||profile_name||</a></td>
		<td>
		||ifdef||pro_sig||
			||pro_sig||
		||else||
			(No Signature)
		||endif||
		</td>
	</tr>
||end_profile||
	</table>

||ifdef||netscape_version||
<div id="nsnote" style="position:absolute; visibility: hidden" >
	<table>
	<tr>	<td><b>Note: To use the Styletext 'WYSIWYG' Editor on Netscape you need to install a few Plug-in's<br>
				For more information click this link '<a href="||action||?cmd=show&utoken=||utoken||&page=plugin.tpl">Plugin Info</a>'</b>
		</td>
	</tr>
	</table>
</div>
||endif||

||ifdef||display_wys||
	<script language="JavaScript">
	<!--- hide script from old browsers
		wysiwyg_start();
	// end hiding from old browsers -->
	</script>
||endif||
