
    function getCookieVal (offset) {
    	var endstr = document.cookie.indexOf (";", offset);
    	if (endstr == -1)
    		endstr = document.cookie.length;
    		return unescape(document.cookie.substring(offset, endstr));
	}
    function GetCookie (name) {
    	var arg = name + "=";
    	var alen = arg.length;
    	var clen = document.cookie.length;
    	var i = 0;
    	while (i < clen) {
    		var j = i + alen;
    	    if (document.cookie.substring(i, j) == arg)
    	    	return getCookieVal (j);
    	    	i = document.cookie.indexOf(" ", i) + 1;
    		    if (i == 0) break; 
    		}
    			return "null";
    }

	function launchPromo() {
//		if ((GetCookie("promo") != "fpotw")) {
		document.cookie='promo=fpotw; path=/';
		var sizepos = "width="+winW+",height="+winH+",top="+winY+",left="+winX+",scrollbars=1,menubar=1, resizable=1";
		PWIN = window.open('http://www.hreo.com'+url, 'fpotw', sizepos);
  		PWIN.focus();
//    		window.onunload = function(){PWIN.close()}   
//		}
	}	

function popVT(URL) {
VTWIN = window.open(URL, "popVtour", "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width=535,height=320,left = 362,top = 309");
VTWIN.focus();
window.onunload = function(){VTWIN.close()}   
}

