          function RedirectCSBlog(){
            if (document.getElementById("BlogIFrame")){
              backURL = document.location.search;
              iframeDocObj = document.getElementById("BlogIFrame").contentWindow.document;
              if(backURL != "" && backURL.indexOf("?url=")>-1){
                indexBackURL = backURL.indexOf("?url=")+"?url=".length;
                substrLength = backURL.indexOf("&LangType") != -1 ? backURL.indexOf("&LangType")-indexBackURL : backURL.length-indexBackURL;
                backURL = backURL.substr(indexBackURL, substrLength);
              }else{
				docLocation = document.location;
				var CSRootPath = "";
				if(docLocation.pathname.toLowerCase().indexOf("blogadmin.aspx") == -1){
					CSRootPath = "/CS";
				}else{
					CSRootPath = "/CS/controlpanel/default.aspx";
				}
				backURL = docLocation.protocol+"//"+docLocation.host+CSRootPath;
              }
              iframeDocObj.location.replace(backURL);
            }
            return true;
          }