I have a pop page, when users clicks select button i want to close the pop up and call a function on the parent page. To this function i am passing 2 values. I can directly fill the fields from pop up in the parent but i want to go the function route. On the pop up javascript errors out as soon as the parent function line gets executed.

POP UP
Code:
<script LANGUAGE="javascript" type="text/javascript">
<!--
function fcn_ReturnWindow(InstitutionCode,InstitutionName){
window.close();
self.opener.OnPop_CollegeClose(InstitutionCode,InstitutionName); //function on parent
}
//-->
</script>
PARENT
Code:
<script LANGUAGE="javascript" type="text/javascript">
<!--
function OnPop_CollegeClose(InstitutionCode,InstitutionName){
alert(InstitutionCode + " " + InstitutionName);
}
//-->
</script>
Thanks