
	var strHref = window.location.href;
	var isDomain = strHref.indexOf("http://fish.ish.de")==-1?false:true;
	var isLock = strHref.indexOf("http://fish.ish.de/Session/")==-1?false:true;
	var isDomainU = strHref.indexOf("http://www3.unitymedia.de")==-1?false:true;
	var isLockU = strHref.indexOf("http://www3.unitymedia.de/Session/")==-1?false:true;
	var isDomainB = strHref.indexOf("http://www.unitybox.de")==-1?false:true;
	var isLockB = strHref.indexOf("http://www.unitybox.de/Session/")==-1?false:true;
	if(isLock || isLockU || isLockB){
		var strQueryString = strHref.substr(strHref.indexOf("Session/"));
		strQueryString=strQueryString.substr(8);
		if(strQueryString.indexOf("/") > - 1){
			var posStrQuery=strQueryString.indexOf("/");
			strQueryString=strQueryString.slice(0,posStrQuery);
			createCookie("UMB_lock",encodeBase64(strQueryString),1800000);
			var nowTime = new Date();
			nowTime=nowTime.setTime(nowTime.getTime());
			createCookie("UMB_time",nowTime,0);
		}
	}
	var isCookie = readCookie('UMB_lock')==null?false:true;
	if(((isDomain&&!isLock) || (isDomainU&&!isLockU) || (isDomainB&&!isLockB)) && isCookie){
		var tmpLock=decodeBase64(readCookie('UMB_lock'));
		window.location.href="/Session/"+tmpLock+"/Mailbox.wssp?Mailbox=INBOX&";
	}

