> though I probably would use a single id.substring(1) I take it back :-) -- in this case I'd just use id2 = id.replace(/q/,'c'); FWIW, -- Hassan Schroeder ----------------------------- hassan at webtuitive.com Webtuitive Design === (+1) 408-621-3445 === http://webtuitive.com dream. code.