<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>Apostrophise in JavaScript Functions (ASP created)</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=2>I have an iccle problem.</FONT>
</P>

<P><FONT SIZE=2>People should be banned from having apostrophise in their names ...</FONT>
</P>

<P><FONT SIZE=2>Below is some HTML code, notice the 3rd passed parameter when calling the onClick and it contains a text string ... With an apostrophise I need to keep the apostrophise visually but lose it to code - what did people come up with ?</FONT></P>

<P><FONT SIZE=2>I have tried replacing a single apostrophise with a double apostrophise without luck.</FONT>
</P>

<P><FONT SIZE=2>ASP -o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-</FONT>
</P>

<P><FONT SIZE=2>&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;delete&quot; onClick=&quot;confirmdelete('emergency/delete.asp?id=&lt;%=emergency_emergencyID%&gt;&amp;amp;tabsheet=Emergency&amp;amp;EmpID=&lt;%=EmpID%&gt;','Emergency Contact','&lt;%=emergency_name%&gt;');&quot; id=&quot;email/delete.asp?id=&lt;%=emergency_emergencyID%&gt;&amp;amp;tabsheet=Emergency&quot;&gt;</FONT></P>

<P><FONT SIZE=2>&lt;IMG SRC=&quot;<A HREF="http://intranet/images/delete.gif" TARGET="_blank">http://intranet/images/delete.gif</A>&quot; title=&quot;Delete the Emergency record for &lt;%=emergency_name%&gt;.&quot;&gt;</FONT>
</P>

<P><FONT SIZE=2>&lt;/span&gt;</FONT>
</P>

<P><FONT SIZE=2>Rendered HTML -o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-</FONT>
</P>

<P><FONT SIZE=2>&lt;span class=&quot;delete&quot; onClick=&quot;confirmdelete('emergency/delete.asp?id=76&amp;amp;tabsheet=Emergency&amp;amp;EmpID=1028','Emergency Contact','Mrs Margaret D'Souza');&quot; id=&quot;email/delete.asp?id=76&amp;amp;tabsheet=Emergency&quot;&gt;</FONT></P>

<P><FONT SIZE=2>&lt;IMG SRC=&quot;<A HREF="http://intranet/images/delete.gif" TARGET="_blank">http://intranet/images/delete.gif</A>&quot; title=&quot;Delete the Emergency record for Mrs Margaret D'Souza.&quot;&gt;</FONT>
</P>

<P><FONT SIZE=2>&lt;/span&gt;</FONT>
</P>

<P><FONT SIZE=2>___________________________________________</FONT>
<BR><FONT SIZE=2>Phil Winstanley</FONT>
<BR><FONT SIZE=2>MIS Database Support</FONT>
<BR><FONT SIZE=2>Software Creations (Holdings) Ltd</FONT>
<BR><FONT SIZE=2>&quot;A Computer Games Developer with Balls!&quot;</FONT>
<BR><FONT SIZE=2>140 Cheetham Hill Road</FONT>
<BR><FONT SIZE=2>Manchester</FONT>
<BR><FONT SIZE=2>M8 8PZ</FONT>
<BR><FONT SIZE=2>England</FONT>
<BR><FONT SIZE=2>Tel: +44(0)161 839 2239</FONT>
<BR><FONT SIZE=2>fax: +44(0)161 832 0412 ___________________________________________</FONT>
<BR><FONT SIZE=2>ICQ: 29163700</FONT>
<BR><FONT SIZE=2><A HREF="http://www.creations.co.uk/" TARGET="_blank">http://www.creations.co.uk/</A></FONT>
<BR><FONT SIZE=2>phil.winstanley@creations.co.uk</FONT>
<BR><FONT SIZE=2>&quot;We don't do Duvets, Leather or JavaScript.&quot; </FONT>
</P>

</BODY>
</HTML>