﻿Common = {}
Common.ShowViewStateSize = function ()
{
//    window.status = "VIEWSTATE : " + $get("__VIEWSTATE").value.length;
//    alert("VIEWSTATE : " + $get("__VIEWSTATE").value.length);
}

Common.ReplaceAll = function(strOriginal, strFind, strChange){
    var position, length;
    position = strOriginal.indexOf(strFind);  
    
    while (position != -1){
      strOriginal = strOriginal.replace(strFind, strChange);
      position    = strOriginal.indexOf(strFind);
    }
    
    return strOriginal;
}

Common.UserLoggedOut = function(url)
{
    var target;
    if(url == null || url.length == 0)
        target = "/";
    else
        target = url;
        
    alert("오랜 시간동안 사용하지 않아서 세션이 종료되었습니다");
    location.href = target;
}