

function checkRegion() {
	if(WM_acceptsCookies) {
	//if(acceptsCookies) {
	    var theArgument = '9999';
	    var theCookie = new String();

		

		//theCookie = getCookie('CCDEPREG');
		theCookie = WM_readCookie('REG20YRS');
	    if (theCookie == ''){
	        var encodedReturn = new String();
	        var returnURL = new String();
	        encodedReturn = '' + escape("/espn/contests/deportes/20Aniversario/index?") + '';
	        returnURL = "/originDep?cameFrom=" + encodedReturn;
	        if(document.layers) {
				window.location.href = returnURL;
			}else {
	        	self.location.replace(returnURL);
			}
	    }else if(theCookie == theArgument) {
	        document.write('');
	    }else if(theCookie != theArgument) {
	        var tempString = new String();
	        tempString = '/espn/contests/deportes/20Aniversario/index?cc=' + theCookie;
	        if(document.layers) {
				window.location.href = tempString;
	        }else {
	        	self.location.replace(tempString);
			}
	    }
	}else if('9999' != '9999'){
		if(document.layers) {
			window.location.href = '/espn/contests/deportes/20Aniversario/index?' + 'cc=9999';
		}else {
	    	self.location.replace('/espn/contests/deportes/20Aniversario/index?' + 'cc=9999');
		}
	}

}

checkRegion();