var CheckCookieName = 'CheckCookie';    function SetCookie(name,value) {      var expDays = 1;      var exp = new Date();       exp.setTime(exp.getTime() + (expDays*24*60*60*1000));      expdate=exp.toGMTString();      document.cookie = ""+name+" ="+ value+"; expires ="+ expdate+";";    }    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 getCookieVal (offset) {      var endstr = document.cookie.indexOf (";", offset);       if (endstr == -1) {        endstr = document.cookie.length;      }      return unescape(document.cookie.substring(offset, endstr));    }        function DeleteCookie (name) {       var exp = new Date();       exp.setTime (exp.getTime() - 1);       var cval = GetCookie (name);      document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();    }        function CheckVote (id) {      var ret = false;      var a = GetCookie( CheckCookieName );      if ( a == null ) {      	ret = true;  //never rated before      } else {      	var endstr = a.indexOf (","+id, 0);       	if (endstr == -1) {          ret = true;        }      }      return ret;    }function AdvPopUp(url) {	return true;  var p1 = window.open(url,'_blank','width=250,height=250,directories=0,location=0,menubar=0,scrollbars=0,status=0,toolbar=0,resizable=0');  if (p1) {    p1.document.write('<html>'+"\n"+'<head><title>Tropos</title></head>'+"\n");    p1.document.write('<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">' + "\n");    p1.document.write('<a href="javascript:void(0);" onclick="window.opener.location.href=\'http://www.troposfirenze.it/news/44.html\'; self.close();"><img src="/img/popupHOME.jpg" border="0" alt="Vieni a trovarci!" /></a>'+"\n");    p1.document.write('</body></html>'+"\n");    p1.focus();    return true;  }  return false;}