Function rightchange(char, n)
{
Returns char.substr (char.length-n)+char.substr (0, char.length-n-1);
}
//used for demonstration
alert(rightchange("abcdefg ",2));
& lt/script & gt;