Para que te hagas una idea te pongo un pequeño ejemplo de como se ejecutan scripts de un frame a otro.
index.html Código HTML:
<html>
<head>
<title></title>
</head>
<frameset rows="30,*">
<frame src="Arriba.html">
<frame name="Inferior" src="Abajo.html">
</frameset>
</html>
Arriba.html Código HTML:
<html>
<head>
<title></title>
</head>
<body>
<a href="#" onclick="parent.Inferior.prueba();">Prueba</a>
</body>
</html>
Abajo.html Código HTML:
<html>
<head>
<title></title>
<script language="JavaScript">
<!--
function prueba(){
document.write("Esto debe salir abajo");
};
-->
</script>
</head>
<body>
</body>
</html>
Para hacer la llamada a una variable o script de otro marco la puedes hacer con
parent.NOMBREMARCO.variableofuncion, te lo he diferenciado en colores paa que veas los 2 que se agregan.