POP UP- debes considerar el valor "valoropciones" como un input Hidden dentro del PopUP
Si utilizas "\" encontrarás "unterminated string literal"
SOLO MODIFCA POPUP
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script language="javascript">
function addSelectedItemsToParent() {
self.opener.addToParentList2(window.document.forms[0].valoropciones);
window.close();
}
</script>
</head>
<body>
<form name="form1">
<input name="valoropciones" type="hidden">
<p> </p>
<ul>
<li><a href="#" onclick="javascript:window.document.forms[0].valoropciones.value='opcion1';addSelectedItemsToParent();">Opcion 1 </a></li>
<li>sdfsdfsdf</li>
</ul>
</form>
</body>
</html>