the expression is :
you do not need to escape the single quotes inside of double quotes. Escape characters are required only if you have single quotes inside single quotes or double quotes inside double quotes. Where is the error coming? In the call to the function or somewhere inside the function.. put alert messages to figure out.
Life called,so here I am.<br />Cheers<br />Niki.:-)