var TimerID = null;
var message;
			
function SetTimer(language)
{
	try
	{
		//setTimeout('AlertTimeOut()', 900000);
		

	    switch (language)
        {
            case "EN":
                message = "Your session has expired, to continue please login again.";
                break;
            case "ZH-CN":
                message = "您的网页浏览时间已经结束,请再次登入";
                break;
            case "ZH-HK":
                message = "您的網頁瀏覽時間已經結束,請再次登入";
                break;
        }

		setTimeout('AlertTimeOut()', 900000);
	}
	catch(e){}
}

function AlertTimeOut()
{
	try
	{
		alert(message);
		window.location.href="../main/ProcessSessionEnd.aspx";
	}
	catch(e){}
}

function CloseTimeOut()
{
	try
	{
		window.close();
	}
	catch(e){}
}

function SetTimerClose()
{
	try
	{
		setTimeout('CloseTimeOut()', 5000);
	}
	catch(e){}
}