if (document.cookie.length < 8) {
	window.location.href="other/Watch.PwdError.htm?id=1";
}
var cookiechunk = document.cookie.split(";");

var varname = "";
var varval = "";
var usercookie = false;
//for (var j = 0; j <= 2; j++) 
for (var j = 0; j <cookiechunk.length; j++) 
	{
	var cookiechunk2 = cookiechunk[j].split("=");
	
	varname = cookiechunk2[0];
	varval = cookiechunk2[1];

                //alert(varname + " " + varval);
                //alert(cookiechunk2.length);

                if (cookiechunk2.length>1) {

                                if (varname.indexOf("username") !=-1)  {
                                                //alert("username found");
                                                //alert(varval + " " + varval.length);
			if (varval.length > 0) {
				usercookie = true;
			}
		}

                               //alert("we shouldn't be here!");

                                if (varname.indexOf("pwdset") !=-1) {
                                                //alert("pwdset found");
                                                if (varval.length > 0) {
                                                                if (varval!="Watch") {
				                window.location.href="other/Watch.PwdError.htm?id=4";
			                }
                                                }
                                }

                                if (varname.indexOf("var4") !=-1) {
                                                //alert("var4 found");
                                                //alert(varval + " " + varval.length);
                                                if (varval!="Brummelparkneighbors") {
				window.location.href="other/Watch.PwdError.htm?id=5";
                                                                //alert("failed five");
			}
		}


                 }

}
//alert(usercookie);
if (usercookie == false) {
	window.location.href="other/Watch.PwdError.htm?id=3";
}
