<?if($USER_LOGGED_IN$)?> 
<div class="login">
<div class="login2">
<strong>: $USERNAME$</strong> <br />
<a href="$PERSONAL_PAGE_LINK$"> </a> <br />
<a href="$LOGOUT_LINK$"></a>
</div>

<div class="login3">
<a href="javascript:openOnClick('send')"> </a> <br />
<a id="upml2" href="javascript:openOnClick('mail')">  (<b>$UNREAD_PM$</b>)</a> <br />

</div>
</div>

<script language=javascript type=text/javascript>
 function openOnClick(client_type)
 {
 if(client_type=="mail")clientWindow = window.open("$PM_URL$","pmw","scrollbars=1,top=0,left=0,resizable=1,width=850,height=350") || alert("   !");
 if(client_type=="send")clientWindow = window.open("/index/14-999-0-1","pms","scrollbars=1,top=0,left=0,resizable=1,width=850,height=350") || alert("   !");
 if(client_type=="options")clientWindow = window.open("/index/11","options","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("   !");
 if(client_type=="users")clientWindow = window.open("$USERS_LIST_URL$","users","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("   !");

 }
</script> 

<?endif?>