<html><div style='background-color:'><P><FONT size=2>&gt;Here is a BASIC style instruction I need to convert to Javascript<BR>&gt;<BR>&gt;a="nor pri"<BR>&gt;b="sel"+right(a,length(a)-3)<BR>&gt;<BR>&gt;RESULT:<BR>&gt;a="nor pri"<BR>&gt;b="sel pri"<BR>&gt;<BR>&gt;Thanks for any help.<BR></FONT></P>
<P>This could emulate your BASIC exemple: </P><PRE>&lt;script&gt;
</PRE><PRE>a='nor pri'
b='sel' + a.substring(a.length, 3)

alert('a='+a)
alert('b='+b)


/*-------But here is another way you can use to treat the left member as variabile-----
  -------while maintaining the right one as static, for more universal use,------------
  -------no matter what is on the right, it will be preserved and whatever-------------
  -------is on the left, it will get updated.------------------------------------------*/

a2='nor pri'
b2 ='sel'+ a2.substring(a2.indexOf(' '), a2.length)
b3 ='sel'+ a2.substring(a2.length, a2.indexOf(' '))//this is to add some confusion!
alert('a2='+a2)
alert('b2='+b2)
alert('b3='+b3)
</PRE><PRE>&lt;/script&gt;</PRE><PRE>
<BR><BR></PRE>
<DIV>
<P align=center>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>Troy III<BR>progressive art enterprise<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</P></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>
</FONT></BLOCKQUOTE></div><br clear=all><hr>Express yourself instantly with MSN Messenger! <a href="http://g.msn.com/8HMAEN/2740??PS=47575" target="_top">MSN Messenger</a> Download today it's FREE!</html>