Any programmers here that can show me what to add into this code to show the disclaimer only if the surfer comes from a specific country? Either using browser language or preferably maxmind's geoip country. I just can't get anything to work. Thanks 
function ScanCookie(variable)
{
 cook=document.cookie;
 variable+="=";
 place=cook.indexOf(variable,0);
 if(place<=-1) return("0");
 else
 {
  end=cook.indexOf(";",place)
  if(end<=-1) return(unescape(cook.substring(place+variable.leng  th,cook.length)));
  else return(unescape(cook.substring(place+variable.leng  th,end)));
 }
}
function Entrer()
{
 document.cookie="disclaimerok=oui;path=/;";
 if(document.getElementById) document.getElementById("disclaimer").style.displa  y='none'
 top.location.href=location.href;
}
if(ScanCookie("disclaimerok")==0)
{
 document.write("<div id=disclaimer><div id=disclaimer-fond></div><div id=disclaimer-conteneur>");
 document.write("<div id=disclaimer-cadre>");
 document.write("<b>ATTENTION: CONTENU STRICTEMENT RESERVE AUX ADULTES</b>");
 document.write("<br><br>Le contenu de ce site ne conviens pas à un public mineur. Les photos, vidéos, et textes pornographiques disponibles ici peuvent choquer certaines sensibilités. En entrant, vous déclarez prendre vos responsabilités vis-à-vis de ce contenu.");
 document.write("<br><br>Pour entrer sur ce site CLIQUEZ SUR ENTRER");
 document.write("<br><br>SI VOUS ETES MINEUR (- 18 ans), cliquez sur Sortir pour quitter ce site.");
 document.write("<br><br>");
 document.write("<a href='#' onclick='Entrer(); return(false)'>ENTRER</a>         &n  bsp;    <a href='http://www.google.com/'>Sortir</a>");
 document.write("</div>");
 document.write("</div></div>");
 document.write('<style>embed,object,select,iframe { display:none; visibility

dden }</style>');
}