function OuvrirPop_BrokerUne(id_broker, refererbroker) {
ouvpop=window.open('http://www.strategie-forex.com/go.php?id_broker='+id_broker+'&refererbroker='+refererbroker+'','Redirection','width=1024,height=768,scrollbars=1,top=0,left=0,resizable=1,location=0,menubar=1,toolbar=1,status=1');
}

function OuvrirPop_FicheBroker(id_broker, refererbroker) {
ouvpop=window.open('http://www.strategie-forex.com/go-fiche.php?id_broker='+id_broker+'&refererbroker='+refererbroker+'','Redirection','width=1024,height=768,scrollbars=1,top=0,left=0,resizable=1,location=0,menubar=1,toolbar=1,status=1');
}

function OuvrirPop_BrokerOpt(id_broker, refererbroker) {
ouvpop=window.open('http://www.strategie-forex.com/go-opt.php?id_broker='+id_broker+'&refererbroker='+refererbroker+'','Redirection','width=1024,height=768,scrollbars=1,top=0,left=0,resizable=1,location=0,menubar=1,toolbar=1,status=1');
}

	function clk(id)
	{
		(new Image()).src="http://www.strategie-forex.com/annuaire/out.php?id="+id;
		return true;
	}
	


function OuvrirPop_Pub(id_broker, refererbroker, type, cat, art) {
	
	if(type == "generique") {
	ouvpop=window.open('http://www.strategie-forex.com/go-pub.php?id_broker='+id_broker+'&refererbroker='+refererbroker+'&type=generique','Redirection','width=1024,height=768,scrollbars=1,top=0,left=0,resizable=1,location=0,menubar=1,toolbar=1,status=1');
	}
	if(type == "cat_exception") {
	ouvpop=window.open('http://www.strategie-forex.com/go-pub.php?id_cat='+cat+'&refererbroker='+refererbroker+'&type=cat_exception','Redirection','width=1024,height=768,scrollbars=1,top=0,left=0,resizable=1,location=0,menubar=1,toolbar=1,status=1');
	}
	if(type == "art_exception") {
	ouvpop=window.open('http://www.strategie-forex.com/go-pub.php?id_article='+art+'&refererbroker='+refererbroker+'&type=art_exception','Redirection','width=1024,height=768,scrollbars=1,top=0,left=0,resizable=1,location=0,menubar=1,toolbar=1,status=1');
	}
}

// Verification du champ mail
function verif(email){
  var reg = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]{2,}[.][a-zA-Z]{2,6}$/
  return (reg.exec(email) != null)
}

function OuvrirPop_Affiliation() {
ouvpop=window.open('go-affiliation.php','Redirection','width=1024,height=768,scrollbars=1,top=0,left=0,resizable=1,location=0,menubar=1,toolbar=1,status=1');
}

// Ecriture de la fonction de verif des champs
function verifform(form){
// VERIF DES CHAMPS DE BASES //
  // Verif du champ nom
  // Verif du champ email
  if ((form.email)&&(form.email.value == "")){
    alert ("veuillez entrer votre email !");
    form.email.focus();
    return false;
  }
  // Verif de la validite de l'email
  if ((form.email)&&(!verif(form.email.value))){
    alert ("veuillez saisir un email valide !");
  form.email.focus();
  return false;
  }


// VERIF DES CHAMPS SUPPLEMENTAIRES //
  // Verif des champs texte obligatoires

  else {
    form.submit();
  }
}
