/*
This file contains utility functions designed to support interactions and communication	
between PKI applets and web browsers

Version		Date		Author		Comments
=========================================================
1.0		15/09/2007	Nathan Vu	Original
*/


function refocusOnAppletFrame(appletName)
{

    try
    {
        var winHandle = window.open('', appletName);

        winHandle.document.applets[0].refocusAppletWindow();
    }
    catch(e1)
    {
        try
        {
            winHandle.opener.csi_applet.refocusAppletWindow();
        }
        catch(e2)
        {
            //Do nothing
        }
    }
}

