﻿// cookie checker - sends re-visitors to another page

function revisitnot()
{
	var em
	em = getCookieValue("prevShp");
	

	if 	(em == "1") {
				
				
				//alert(em);
				window.location = "http://www.rewardsgold.com/mags/tf_revisit.htm";
		
		//window.location = yes;
		//window.location = "http://lists.teenfreeway.com/subscribe/subscribe.tml?list=rachel&demographics=Additional_&confirm=none&showconfirm=F&url=http://www.teenfreeway.com/acuvue/mar_07/acuvue_bag2.htm&email=" + em + "Additional_=" + tf + "name=" + zp";
		//document.Form1.email.value = em;
		//return true;
		
		
	}
	
	
}

function getCookieValue(s) {

var result = null;
var myCookie = " " + document.cookie + ";";
var searchS = " " + s + "=";
var startOfCookie = myCookie.indexOf(searchS);
var endOfCookie;
if(startOfCookie != -1) {
startOfCookie += searchS.length; //skip past cookie s.
endOfCookie = myCookie.indexOf(";", startOfCookie);
result = unescape(myCookie.substring(startOfCookie, endOfCookie));

}

return result;

}





