Here it is. I found something that works part of the way. In the testing of it I have what I want until it gets passed to the last four statments in the netscape section of the function. The output text should be
&#(somenumber);
<!--#include file="functions.asp"-->
<!--#include file="header.asp"-->
<script language="javascript" type="text/javascript">
<!--
function copyTo(strVar)
{
if(window.clipboardData)
{
window.clipboardData.setData("text", strVar);
}
else if(window.netscape)
{
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
if (!clip) return;
var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
if (!trans) return;
trans.addDataFlavor('text/unicode');
var str = new Object();
var len = new Object();
var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
str.data=strVar;
trans.setTransferData("text/unicode",str,strVar.length*2);
var clipid=Components.interfaces.nsIClipboard;
if (!clip) return false;
clip.setData(trans,null,clipid.kGlobalClipboard);
}
return false;
}
-->
</script>
<% main() %>
<%
Set MyBrow=Server.CreateObject("MSWC.BrowserType"

if MyBrow.browser<>"IE" then
%>
<br><br>
<%
else
%>
<br>
<%
end if
%>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="left">
<form name="frmRange" action="escape.asp" method="post">
<select name="lstSections" onkeypress="if(event.keyCode==13) document.frmRange.submit();" onFocus="frmRange.manualInput.value='';">
<option value="">--none--</option>
<option value="48-57,65-90,97-122"> AlphaNumeric </option>
<option value="884-885,890,894,900-906,908,910-929,931-974,976-982,986,988,990,992,994-1011"> Greek and Coptic </option>
<option value="9728-9839"> Misc Symbols </option>
<option value="8592-8682"> Arrows </option>
<option value="9985-9988,9990-9993,9996-10023,10025-10059,10061,10063-10066,10070,10072-10078,10081-10087,10102-10132,10136-10174"> Dingbats </option>
<!--option value=""> </option-->
</select>
<input type="text" name="manualInput" onFocus="frmRange.lstSections.value=''">
</form>
</td>
<td align="right">
<table align="right">
<tr>
<td valign="bottom"><form action="
onload="load()" onbeforeunload="unld()"><input size=40 name=q></form></td>
<td align="right" valign="top"><font color="c0c0c0" size=4 face="comic sans ms"><strong>Google </strong></font></td>
</tr>
</table>
</td>
</tr>
</table>
<%
dim arrRange,strRange,tmp,value,strVar,tmpVar1,tmpVar2
strRange = request.form("lstSections"

& request.form("manualInput"
if strRange<>"" then
arrRange=split(strRange,","

dim i
if MyBrow.browser<>"IE" then
response.write("<br>" & chr(10))
for i=Lbound(arrRange) to Ubound(arrRange)
tmp=inStr(arrRange(i),"-"
if(tmp<>0) then
value=split(arrRange(i),"-"
tmpVar1=value(0)
tmpVar2=value(1)
for tmpVar1=tmpVar1 to tmpVar2
strVar = chr(39) & chr(38) & chr(35) & "38" & chr(59) & chr(38) & chr(35) & "35" & chr(59) & tmpVar1 & chr(38) & chr(35) & "59" & chr(59) & chr(39)
response.write("<a class=" & chr(34) & "escape" & chr(34) & " href=" & chr(34) & "#" & chr(34) & " onClick=" & chr(34))
response.write("return copyTo(" & strVar & "

;" & chr(34) & " title=" & strVar & ">"

response.write(chr(38) & chr(35) & tmpVar1 & chr(59))
response.write("</a>" & chr(10))
next
response.write("<br>" & chr(10))
else
tmpVar1=arrRange(i)
tmpVar2=0
strVar = chr(39) & chr(38) & chr(35) & "38" & chr(59) & chr(38) & chr(35) & "35" & chr(59) & tmpVar1 & chr(38) & chr(35) & "59" & chr(59) & chr(39)
response.write("<a class=" & chr(34) & "escape" & chr(34) & " href=" & chr(34) & "#" & chr(34) & " onClick=" & chr(34))
response.write("return copyTo(" & strVar & "

;" & chr(34) & " title=" & strVar & ">"

response.write(chr(38) & chr(35) & tmpVar1 & chr(59))
response.write("</a>" & chr(10))
response.write("<br>" & chr(10))
strVar=""
end if
next
else
response.write("<br>" & "<br>" & chr(10))
for i=Lbound(arrRange) to Ubound(arrRange)
tmp=inStr(arrRange(i),"-"
if(tmp<>0) then
value=split(arrRange(i),"-"
tmpVar1=value(0)
tmpVar2=value(1)
for tmpVar1=tmpVar1 to tmpVar2
strVar = chr(39) & chr(38) & chr(35) & "38" & chr(59) & chr(38) & chr(35) & "35" & chr(59) & tmpVar1 & chr(38) & chr(35) & "59" & chr(59) & chr(39)
response.write("<a class=" & chr(34) & "escape" & chr(34) & " href=" & chr(34) & "#" & chr(34) & " onClick=" & chr(34))
response.write("return copyTo(" & strVar & "

;" & chr(34) & " title=" & strVar & ">"

response.write(chr(38) & chr(35) & tmpVar1 & chr(59))
response.write("</a>" & chr(10))
next
response.write("<br>" & chr(10))
else
tmpVar1=arrRange(i)
tmpVar2=0
strVar = chr(39) & chr(38) & chr(35) & "38" & chr(59) & chr(38) & chr(35) & "35" & chr(59) & tmpVar1 & chr(38) & chr(35) & "59" & chr(59) & chr(39)
response.write("<a class=" & chr(34) & "escape" & chr(34) & " href=" & chr(34) & "#" & chr(34) & " onClick=" & chr(34))
response.write("return copyTo(" & strVar & "

;" & chr(34) & " title=" & strVar & ">"

response.write(chr(38) & chr(35) & tmpVar1 & chr(59))
response.write("</a>" & chr(10))
response.write("<br>" & chr(10))
strVar=""
end if
next
end if
end if
strRange =""
%>
<!--#include file="footer.asp"-->