	var popchildWin;
	var popwinFeatures1 = "toolbar=0,menubar=0,resize=0,scrollbars=0,status=0,width=718,height=500";
	function getCookie(name){
		var userCookie, startIndex, endIndex;
		name = name + "=";
		userCookie = document.cookie;
		if (userCookie.length > 0){
			startIndex = userCookie.indexOf(name);
			if (startIndex == -1){
				return null;
			}
			startIndex += name.length;
			endIndex = userCookie.indexOf(";", startIndex);
			if(endIndex <= 0){
				endIndex = userCookie.length;
			}
			return unescape(userCookie.substring(startIndex, endIndex));
		}
		return null;
	}
	function setCookie(sName, sValue, dExpires, sPath){
		var sCookie
		sCookie = escape(sName) + "=" + escape(sValue);
		sCookie += ((dExpires == null) ? "" : "; expires=" + dExpires.toGMTString());
		sCookie += ((sPath == null) ? "" : "; path=" + sPath);
		document.cookie = sCookie
	}

	function checkPop(dLastVisit){
		var millitimeElapse = -1;
		var dayElapse;
		today = new Date();
		todayStrGMT = today.toGMTString();
		today = new Date(todayStrGMT);
		millitimeElapse = today - dLastVisit;
		dayElapse = (millitimeElapse / (1000*1800));  
		if(dayElapse > 1){			  
			return true;
		}
		return false;
	}

	var lastVisit, today;
	var canPop;
	canPop = true;
	if((lastVisit = getCookie("anjVisited")) != null){
		lastVisit = unescape(lastVisit)
		lastVisit = new Date(lastVisit);
		canPop = checkPop(lastVisit);
	}
	var tempValue;
	if(canPop){
	 	showPopUpAd();
		tempValue = new Date();
		sValue = escape(tempValue.toGMTString());
		today = new Date();
		dExpires = new Date();	
		dExpires.setTime(today.getTime() + 1000*1800);
		setCookie("anjVisited", sValue, dExpires, "/");		
	}

	function showPopUpAd(){
	popchildWin = window.open("http://207.44.154.171/travel-discounts.htm", "popnewWinUp", popwinFeatures1);
        window.focus();
}


