Hi,
I have discontinued my efforts and went with a solution that already works, however would still like to resolve this as it adds greater functionality. The popup window code that I have include is the original. If you need more info then I would be glad to send you the templates that I was trying to use. Either way the javascript is the same in both instances. The only difference is that the original popup has no form post where as the new one did.
thx
This is the code from the parent window (less the .js files):
<script language="JavaScript1.2">
<!--
if (typeof eWebEditPro == "object"

{
document.frmEdit.eWebEditProSubmitHandled=true;
eWebEditPro.create("MyContent1", 640, 500);
}
//-->
</script>
Here is the javascript code from the popup that accesses the object eWebEditPro["MyContent1"]:
And btw, some of the code you see in here is tcl and storyserver, jicyww.
<html>
<head>
[INCLUDE LIBNAME "CMA Stylesheet"]
<title>Hyperlink</title>
<script language="JavaScript">
<!--
var objQuery = new Object();
var selectedText;
var selectedHTML;
var strQuery = location.search.substring(1);
var aryQuery = strQuery.split("&"

;
var pair = \[\];
for (var i = 0; i < aryQuery.length; i++)
{
pair = aryQuery\[i\].split("="

;
if (pair.length == 2)
{
objQuery\[unescape(pair\[0\])\] = unescape(pair\[1\]);
}
}
/*if the a hyperlink in the eWebEditPro control has been highlighted then
display the selected hyperlink text in the "Text" text box, display its path in the "Link"
text box and display the quick link in the "Quick Links" list.
NOTE: External links must have the "
prefix otherwise these links will be
treated as internal links which causes the "HTTP 404 Not Found" error.
*/
function loadselectedtext() {
var testimage;
var thePath="";
selectedText = top.opener.eWebEditPro\[objQuery\["editorName"\]\].getSelectedText();
selectedHTML = top.opener.eWebEditPro\[objQuery\["editorName"\]\].getSelectedHTML();
testimage = selectedHTML.substring(0, 4);
if (testimage.toLowerCase() == "<img"

{
document.frmHyperlinks.text2.value = selectedHTML;
}
else
{
document.frmHyperlinks.text2.value = selectedText;
tmpstr = selectedHTML.toLowerCase();
tmpstrEWP = selectedHTML;
//debug selected html value
//var htmlval_alert = tmpstr.substring( tmpstr.indexOf('"')+1, tmpstr.lastIndexOf('"') );
//alert(htmlval_alert);
if (tmpstrEWP.indexOf("<ewp>"

== -1) {
if (tmpstr.indexOf("href"

!= -1) {
if (tmpstr.indexOf("http"

== -1) {
//get the path without the html tags for internal links
thePath = selectedHTML.substring( tmpstr.indexOf("/"

, tmpstr.lastIndexOf('"') );
for (var i = 0; i < document.frmHyperlinks.hyperlinklist.length; i++) {
if (document.frmHyperlinks.hyperlinklist.options\[i\].value == thePath) {
document.frmHyperlinks.hyperlinklist.options\[i\].selected = true;
movelink();
break;
}
}
//get the target window
if (tmpstr.indexOf("target"

!= -1) {
tmpTarget = tmpstr.substring( tmpstr.lastIndexOf("="

+1, tmpstr.lastIndexOf('<') );
targetWin = tmpTarget.split(">"

;
for (var i = 0; i < document.frmHyperlinks.Target.length; i++) {
if (document.frmHyperlinks.Target.options\[i\].value == targetWin\[0\]) {
document.frmHyperlinks.Target.options\[i\].selected = true;
break;
}
}
}
} else {
//get the path without the html tags for external links
thePath = tmpstr.substring( tmpstr.indexOf("http"

, tmpstr.lastIndexOf('"') );
document.frmHyperlinks.httpLink.value = thePath;
//get the target window
if (tmpstr.indexOf("target"

!= -1) {
tmpTarget = tmpstr.substring( tmpstr.indexOf("_"

, tmpstr.lastIndexOf('>') );
targetWin = tmpTarget.split(">"

;
for (var i = 0; i < document.frmHyperlinks.Target.length; i++) {
if (document.frmHyperlinks.Target.options\[i\].value == targetWin\[0\]) {
document.frmHyperlinks.Target.options\[i\].selected = true;
break;
}
}
}
}
}
} else {
thePath = tmpstrEWP.substring( tmpstr.indexOf('"')+1, tmpstr.lastIndexOf('"') );
document.frmHyperlinks.httpLink.value = thePath;
}
}
}
//trim leading and trailing spaces
function trim(strText) {
// this will get rid of leading spaces
while (strText.substring(0,1) == ' ')
strText = strText.substring(1, strText.length);
// this will get rid of trailing spaces
while (strText.substring(strText.length-1,strText.length) == ' ')
strText = strText.substring(0, strText.length-1);
return strText;
}
//display the path of the selected image in the "Link" text box
function movelink() {
var hyperlinkvalue;
var pastevalue;
hyperlinkvalue = document.frmHyperlinks.hyperlinklist.options\[document.frmHyperlinks.hyperlinklist.selectedIndex\].value;
if (hyperlinkvalue == ""

{
document.frmHyperlinks.httpLink.value = "
} else {
document.frmHyperlinks.httpLink.value = hyperlinkvalue;
}
}
//insert the select hyperlink into the eWebEditPro control
function inserthyperlink() {
if (top.opener.closed){
alert("Your hyperlink could not be inserted because the editor page has been closed."

;
}
else if (document.frmHyperlinks.text2.value == ''){
alert("Your hyperlink text is blank and would create an empty link."

;
}
else{
var hyperlinkvalue;
var pastevalue;
var targetvalue;
var targetvaluepaste
targetvalue = document.frmHyperlinks.Target.options\[document.frmHyperlinks.Target.selectedIndex\].value;
if (targetvalue == ""

{
targetvaluepaste = "";
}
else {
targetvaluepaste = "target=" + targetvalue;
}
hyperlinkvalue = trim(document.frmHyperlinks.httpLink.value);
if (hyperlinkvalue.substring(0,7) == "
{
pastevalue = '<A HREF="' + hyperlinkvalue + '" ' + targetvaluepaste +'>' + document.frmHyperlinks.text2.value + '</a>';
}
else {
if (document.frmHyperlinks.hyperlinklist.value != ""

{
hyperlinkvalue = '<ewp>'+ document.frmHyperlinks.hyperlinklist.value + '</ewp>';
//debugging -- //hyperlinkvalue = '<ewp>CID950-TTL' + document.frmHyperlinks.text2.value + '-PLMEPMO-GEOINF</ewp>';
pastevalue = '<a href="' + hyperlinkvalue + '" ' + targetvaluepaste +'>' + document.frmHyperlinks.text2.value + '</a>';
} else {
hyperlinkvalue = '<ewp>'+ document.frmHyperlinks.httpLink.value + '</ewp>';
//debugging -- //hyperlinkvalue = '<ewp>CID950-TTL' + document.frmHyperlinks.text2.value + '-PLMEPMO-GEOINF</ewp>';
pastevalue = '<a href="' + hyperlinkvalue + '" ' + targetvaluepaste +'>' + document.frmHyperlinks.text2.value + '</a>';
}
}
selectedHTML = top.opener.eWebEditPro\[objQuery\["editorName"\]\].getSelectedHTML();
top.opener.eWebEditPro\[objQuery\["editorName"\]\].pasteHTML(pastevalue);
self.close();
}
}
// opens new popup window for the preview of locale relationships
function srchLinkWin(sURL) {
var w = 750;
var h = 600;
//do not try to center, since opener is not centered
//var winl = (screen.width - w) / 2;
//var wint = (screen.height - (h * 3)) / 2;
var sFeatures = 'height='+h+',width='+w+',scrollbars=yes,toolbar=no,resizable=yes,status=no,name=Search'
sNewWindow = window.open(sURL,'HyperLinkList',sFeatures);
}
//-->
</script>
</head>
<body onload="JavaScript:self.focus()">
<form name="frmHyperlinks">
<table width="100%" cellspacing="0" cellpadding="3" align="center" border="0">
<tr>
<td colspan=2 bgcolor="#DBDBB7">
<b>Select Hyperlink</b>
</td>
</tr>
<tr><td> </td></tr>
<tr>
<td>Link:</td>
<td><INPUT type="text" name="httpLink" size="60" maxlength="1000" value="
</tr>
<tr>
<td>Text:</td>
<td><INPUT type="text" name="text2" size="60" maxlength="1000" value=""></td>
</tr>
<tr>
<td>Target Frame:</td>
<td>
<select name="Target">
<option value=""></option>
<option value="_blank">New Window (_blank)</option>
<option value="_self">Same Window (_self)</option>
<option value="_parent">Parent Window (_parent)</option>
<option value="_top">Browser Window (_top)</option>
</select>
</td>
</tr>
<tr>
<td>Quick Links: </td>
<td>
<!--- Hyperlink selection list --->
<select name="hyperlinklist" size="1" onchange="movelink()">
<option value=""></option>
[FOREACH ROW IN [SHOW lContent] {
<option value="CID[string trim [FIELD cb_item_id]]-TTL[string trim [FIELD cntnt_title]]-PLM[string trim [FIELD cda_placements_val]]-GEO[string trim [FIELD geo_zone]]">[string trim [FIELD cb_item_id]] - [string trim [string range [FIELD cntnt_title] 0 50]]</option>
}]
</select>
</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="button" value="Create Link" onClick="inserthyperlink();"> <input type="button" name="Cancel" value="Cancel" onclick="self.close()"></td>
</tr>
</table>
</form>
<script language="JavaScript">
<!--
loadselectedtext();
//-->
</script>
</body>
</html>