cookie_name = "ECHK";
var EntChk;
var EntVal; 

function putCookie() {
     if(document.cookie != document.cookie) {index = document.cookie.indexOf(cookie_name);}
     else { index = -1; }

     if (index == -1)
     {
	EntChk='true';
	document.cookie=cookie_name+"="+EntChk+"; expires=";
     }
}

function getName() {
     if(document.cookie)
     {
	index = document.cookie.indexOf(cookie_name);
	if (index != -1)
	{
		namestart = (document.cookie.indexOf("=", index) + 1);
		nameend = document.cookie.indexOf(";", index);
		if (nameend == -1) {nameend = document.cookie.length;}
		EntVal = document.cookie.substring(namestart, nameend);
		return EntVal;
	}
     }
}

EntVal=getName();
if (EntVal != "true") { EntVal = "Nothing_Entered"; putCookie(); window.location="http://www.freebitz.com/index2.html"; }
// -->