place the following line in your base master page
<script src="weeklycalendar.js" language="javascript" type="text/javascript"> </script>
and in the child master page, write the following
<script language="javascript" type="text/javascript">
buildWeeklyCalendar(0);
</script>
please let me know if you find any problem..