function OuvrirPop_Tradi(id_broker, refererbroker) {
ouvpop=window.open('http://www.investir-or.com/go-tradi.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_Opt(id_broker, refererbroker) {
ouvpop=window.open('http://www.investir-or.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 OuvrirPop_Physique(id_broker, refererbroker) {
ouvpop=window.open('http://www.investir-or.com/go-physique.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_Fiche(id_broker, refererbroker) {
ouvpop=window.open('http://www.investir-or.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 clk(id)
	{
		(new Image()).src="http://www.investir-or.com/annuaire/out.php?id="+id;
		return true;
	}
	


function OuvrirPop_Pub(id_broker, refererbroker, type, cat, art, type_redirection) {
	
	if(type_redirection == "tradi") {
		fichier = "go-tradi.php"
	}
	if(type_redirection == "opt") {
		fichier = "go-opt.php"
	}
	if(type_redirection == "physique") {
		fichier = "go-physique.php"
	}
	
	
	if(type == "generique") {
	ouvpop=window.open('http://www.investir-or.com/'+fichier+'?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.investir-or.com/'+fichier+'?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.investir-or.com/'+fichier+'?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)
}
// 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();
  }
}
