<!--
/* pour la zone publique */
function shw_on_public(id, path, url_serveur) {
  path.style.backgroundImage = 'url(http://media.the-adult-company.com/easymiss.com/datamiss/' + id + '/p_3_3_on.jpg)';
}

function shw_off_public(id, path, url_serveur) {
  path.style.backgroundImage = 'url(http://media.the-adult-company.com/easymiss.com/datamiss/' + id + '/p_3_3_off.jpg)';
}

function shw_on_new_public(id, path, url_serveur) {
  path.style.backgroundImage = 'url(http://media.the-adult-company.com/easymiss.com/datamiss/' + id + '/p_3_3_on_new.jpg)';
}

function shw_off_new_public(id, path, url_serveur) {
  path.style.backgroundImage = 'url(http://media.the-adult-company.com/easymiss.com/datamiss/' + id + '/p_3_3_off_new.jpg)';
}

/* pour la zone membre*/
function shw_on(id, path, url_serveur) {
  path.style.backgroundImage = 'url(http://media.the-adult-company.com/easymiss.com/datamiss/' + id + '/p_3_3_on.jpg)';
}

function shw_off(id, path, url_serveur) {
  path.style.backgroundImage = 'url(http://media.the-adult-company.com/easymiss.com/datamiss/' + id + '/p_3_3_off.jpg)';
}

function shw_on_new(id, path, url_serveur) {
  path.style.backgroundImage = 'url(http://media.the-adult-company.com/easymiss.com/datamiss/' + id + '/p_3_3_on_new.jpg)';
}

function shw_off_new(id, path, url_serveur) {
  path.style.backgroundImage = 'url(http://media.the-adult-company.com/easymiss.com/datamiss/' + id + '/p_3_3_off_new.jpg)';
}




var pop_w;
var scr_w = screen.availWidth;

var pop_h;
var scr_h = screen.availHeight;

function shw_mode_emploi(url) { /* affichage centré de la popup "mode d'emploi" */
  pop_w = 500;
  pop_h = 600;
  var pop_l = ( scr_w - pop_w ) / 2;
  var pop_t = ( scr_h - pop_h ) / 2;
  var pop_url = url + "/popup_mode_emploi.html";
  var pop_params = "left=" + pop_l + ", width=" + pop_w + ", top=" + pop_t + ", height=" + pop_h + ", status=1, scrollbars=1, resize=0";
  window.open(pop_url, '', pop_params);
}

function shw_recommander(url) { 
  pop_w = 360;
  pop_h = 450;
  var pop_l = ( scr_w - pop_w ) / 2;
  var pop_t = ( scr_h - pop_h ) / 2;
  var pop_url = url + "/popup_recommander.html";
  var pop_params = "left=" + pop_l + ", width=" + pop_w + ", top=" + pop_t + ", height=" + pop_h + ", status=1, scrollbars=0, resize=0";
  window.open(pop_url, '', pop_params);
}

function shw_codes_secrets(url) { /* affichage centré de la popup "codes secrets easy miss" */
  pop_w = 340;
  pop_h = 200;
  var pop_l = ( scr_w - pop_w ) / 2;
  var pop_t = ( scr_h - pop_h ) / 2;
  var pop_url = url + "/popup_codes_secrets.html";
  var pop_params = "left=" + pop_l + ", width=" + pop_w + ", top=" + pop_t + ", height=" + pop_h + ", status=1, scrollbars=0, resize=0";
  window.open(pop_url, '', pop_params);
}

function shw_popup_acces(url) {
  pop_w = 465;
  pop_h = 310;
  var pop_l = ( scr_w - pop_w ) / 2;
  var pop_t = ( scr_h - pop_h ) / 2;
  var pop_url = url + "/popup_acces.html";
  var pop_params = "left=" + pop_l + ", width=" + pop_w + ", top=" + pop_t + ", height=" + pop_h + ", status=1, scrollbars=0, resize=0";
  window.open(pop_url, '', pop_params);
}

function shw_mentions(url) {
  pop_w = 272;
  pop_h = 435;
  var pop_l = ( scr_w - pop_w ) / 2;
  var pop_t = ( scr_h - pop_h ) / 2;
  var pop_url = url;
  var pop_params = "left=" + pop_l + ", width=" + pop_w + ", top=" + pop_t + ", height=" + pop_h + ", status=1, scrollbars=0, resize=0";
  window.open(pop_url, '', pop_params);
}

function add_favoris(page, idlang) {
  info = new Array();
  titre_bookmark = new Array();
  titre_bookmark[1] = "EasyMiss®, à tes ordres !";
  titre_bookmark[2] = "EasyMiss®, it's up to you !";
  info[1] = "Cette fonction n\'est proposée que par certains navigateurs.\n\nTu peux aussi appuyer sur Control + D\nou Pomme + D sur Macintosh\npour ajouter le site EasyMiss® à tes favoris\n ";
  info[2] = "These function is not avalaible with Internet Explorer 4 or more, you can try to use Ctrl + D or Apple + D for Machintosh";
  /*if ( (navigator.appName.indexOf("Microsoft",0)>=0) && (parseInt(navigator.appVersion)>=4) ) {
    window.external.AddFavorite("http://www.easymiss.com" + page, titre_bookmark[idlang]);
  }else {
    alert(info[idlang])
  }*/
	if (window.sidebar) {
		window.sidebar.addPanel(titre_bookmark[idlang], "http://www.easymiss.com" + page, "");
	}
	else if (window.external) {
		window.external.AddFavorite("http://www.easymiss.com" + page, titre_bookmark[idlang]);
	}
	else {
    alert(info[idlang]);
  }
}

function chk_champ(chp, txt) {
  if ( chp.value == txt ) { chp.value = ""; }
  else if ( chp.value == "" ) { chp.value = txt; }
}

var txt = 'Tape ton Email ici';

function chk_focus(chp) {
  if ( chp.value == txt ) { chp.value = ''; }
}

function chk_blur(chp) {
  if ( chp.value == '' ) { chp.value = txt; }
}

function shw_reponse(id) {
  if ( document.getElementById("d_rps_" + id).style.display == "" ) {
    document.getElementById("a_qst_" + id).style.color = "#333333";
    document.getElementById("d_qst_" + id).style.backgroundColor = "#F9F9F9";
    document.getElementById("d_rps_" + id).style.display = "none";
  } else {
    for ( var i=1; i<8; i++ ) { document.getElementById("a_qst_" + i).style.color = "#333333"; }
    document.getElementById("a_qst_" + id).style.color = "#BF008A";

    for ( var i=1; i<8; i++ ) { document.getElementById("d_qst_" + i).style.backgroundColor = "#F9F9F9"; }
    document.getElementById("d_qst_" + id).style.backgroundColor = "#FFFFFF";

    for ( var i=1; i<8; i++ ) { document.getElementById("d_rps_" + i).style.display = "none"; }
    document.getElementById("d_rps_" + id).style.display = "";
  }
}

function chk_formulaire(obj) {
  var email   = document.acces.email.value;

  longueur = document.acces.email.value.length;
  index    = document.acces.email.value.indexOf("@");
  index2   = document.acces.email.value.indexOf(";");

  <!-- pas de @ -->
  if ( index < 1 || index == ( longueur - 1 ) ) {
    alert("Merci de saisir ton email");
    document.acces.email.focus();
    return false;
  }

  if ( index2 > 0 ) {
    alert("Merci de saisir ton email");
    document.acces.email.focus();
    return false;
  }
  domaine  = document.acces.email.value.substring(index + 1, longueur);
  longueur = domaine.length;
  index    = domaine.indexOf(".");

  <!-- pas de . après @   -->
  if ( index < 1 || index == ( longueur - 1 ) ) {
    alert("Merci de saisir ton email");
    document.acces.email.focus();
    return false;
  }
  
  if (obj == 1) document.acces.submit();
}
//-->
