var today   = new Date();

function CookieCheck(){

	setCookie("rancookietest");
	if(getCookie("rancookietest=")==true){
		document.forms[0].submit()
	}else{
		location.href=RANWEB_FAQ.htm;
	}
}

function MinReq(ranorderURL, FAQURL){
	
	//Cookie Test, other tests can be added later ..
	setCookie("rancookietest");
	if(getCookie("rancookietest=")==true){	
		location.href=ranorderURL;
	}else{
		location.href=FAQURL;
	}	
}


function setCookie(label) {
	var cookievalue = "rantestvalue"
	document.cookie = label + "=" + cookievalue;
}


function getCookie(label) {
var labelLen = label.length;
var cLen = document.cookie.length;
var i = 0, j=0;
	while (i < cLen) {
  		var j = i + labelLen;
  		if (document.cookie.substring(i,j) == label) {
			return true;
		}
		i++;
	}
	return false;
}
