function redirectPage()
{

	window.location="http://wellgen.com/return/"; //Replace with the page to direct TO
}

function setCookie()
{
	var hours = 3; //Cookie will expire in this many hours
	document.cookie = "name=WellGenVisitor; max-age=" + hours*60*60 + "; path=/;" ;
}

function cookieExists()
{
    var cookie_string = document.cookie ;
    var cookie_name = cookie_string.indexOf("WellGenVisitor");
	if (cookie_name == -1) return false;
	return true;
}

function shouldIredirect() 
{
	if (cookieExists()) {
		redirectPage();
	} else {
		setCookie();
	}
}