 function getCook(nom) {
        deb = document.cookie.indexOf(nom + "=")
        if (deb >= 0) {
            deb += nom.length + 1
            fin = document.cookie.indexOf(";",deb)
            if (fin < 0) fin = document.cookie.length
            return unescape(document.cookie.substring(deb,fin))
            }
        return ""
}

function look_page (idval) {
  
  if (idval == 67) {
    val = getCook("crtl_acces");
    if (val == null)
        top.location.replace('http://www.pharmaciengiphar.com/index.php'); 
    else if  (val != "kj76HGR67IYBV3")
       top.location.replace('http://www.pharmaciengiphar.com/index.php');   
  }
}  
