I'm wanting to pass numeric and text variables to a function that has 7 parameters. One of these parameters is generally a fairly verbose piece of text that can contain apostrophes and quotes.
It appears as though when I use onclick=, I need to surround the infomration in quotes. that's fine except in my largest parameter there is need for many quotes. In the example shown I've used "xxx" for quotes and then my function replaces "xxx" with quotes. However, I'd rather be able to pass regualr quotes or something more identifiable as quotes so that other users can use this function.
The idea of this code is to allow user to click on an image and the onclick event fires a function that opens a popup.
<a href="#" onclick="return false" style="text-decoration: none">
<img src="images/bw_palms_drop_mini.jpg" width="158" height="105"
alt="bw_palms_drop_mini.jpg" border="0" onclick="picwin2(450,550, 'Car Unveiling Party', 'Car Unveiling Party', '../images/bw_palms_drop.jpg',
'This xxxnew year\'s eve partyxxx was actually staged in October at the car dealership for a xxxNew Model Yearxxx unveiling. Palm trees with lights ' +
'($350 each) and a classic balloon drop made this party elegantly festive. At xxxmidnightxxx (okay, 8:30 pm), we had a balloon drop, confetti launch ' +
'and unveiled the xxxNew Modelxxx car!')"></a>