window.location.replace('http://www.01digitalesdesign.com');

function CheckStatus()
{
        //if (GetCookie("login") == "gast")
        //{
        //   window.location.href="http://"+GetCookie("login")+":"+GetCookie("passwort")+"@212.227.60.210/kunden/"+GetCookie("login")+"/";
        //}
}

function login()   
{
	login=document.user.login.value;
	passwort=document.user.pass.value;
	SetCookie("login",login);
	SetCookie("passwort",passwort);
	
	switch(login) {
 	case "gast":
 	window.location.href="intern.html";
 	break;
 	case "oper":
 	window.open("http://212.227.60.210/kunden/"+login+"/");
 	break;
 	default:
 	window.open("http://"+login+":"+passwort+"@212.227.60.210/kunden/"+login+"/");
 	break;
	}

}

function chkform()
{
        if (document.user.login.value == "")
        {
	    alert("Bitte geben Sie Ihren login ein!");
	    document.user.login.focus();
	    return false;
        }
        else 
        {
        if (document.user.pass.value == "")
        {
	    alert("Bitte geben Sie Ihr Passwort ein!");
	    document.user.pass.focus();
	    return false;
        }
        }
}   
function GetCookie(name) 
{
        var dcookie = document.cookie; 
        var cname = name + "=";
        var clen = dcookie.length;
        var cbegin = 0;
            while (cbegin < clen) {
            var vbegin = cbegin + cname.length;
                    if (dcookie.substring(cbegin, vbegin) == cname) { 
                    var vend = dcookie.indexOf (";", vbegin);
                            if (vend == -1) vend = clen;
                    return unescape(dcookie.substring(vbegin, vend));
                    }
            cbegin = dcookie.indexOf(" ", cbegin) + 1;
                    if (cbegin == 0) break;
            }
        return null;
}

function SetCookie (name, value) 
{
        var expires = new Date ();
        expires.setTime (expires.getTime() + (6 * 60 * 60 * 1000));
        document.cookie = name + "=" + escape (value) + "; expires=" + expires.toGMTString() +  "; path=/";
}

function delCookie (name) 
{
        var expireNow = new Date();
        document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT" +  "; path=/";
}
 
function GoToHome ()
{
        if (GetCookie("login") == "gast")
        {
           window.location.href="http://"+GetCookie("login")+":"+GetCookie("passwort")+"@212.227.60.210/kunden/"+GetCookie("login")+"/";
        }
        else
        {
           urli = window.location.href;
           if (urli.match("infopool")||urli.match("projekte")||urli.match("virtuell"))	
           {
           window.location.href="../index.html";
           }
           else
           {
           window.location.href="index.html";
           }
        }
}



function openwindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
