You must escape the slashes by doubling them up:
C:\\myFolder\\myPic.jpg
I don't know if there's a php function to do that.
Alternatively write the path to a hidden form element with a known name and use that as you functions argument:
Code:
<input type="hidden" name="filePath" value="$PicturePath">
showPic(document.forms[0].filePath.value);
--
Joe