Using "Page.ClientScript" how would I call the function from code behind?

Code:
<script type="JavaScript">
     function OnBeginRequest(sender, args)
    {        
     $get("IMGDIV").style.display="";
    } 
</script>