A bozo's blog
/* "." and ":" are problematic within the context of a jQuery selector
* because they indicate a pseudo-class and class, respectively */
myId = myId.replace(/(:|\.)/g,
"\\$1"
);