// JavaScript Document
			function PrmUrl() {
				var prm = new Array();
				var tmp = unescape(window.location.search).substr(1).split("&");
				var inter;
				for ( i=0; i<tmp.length; i++) {
					inter=tmp[i].indexOf("=");
					if ( inter>=0 ) {
						prm[tmp[i].substr(0,inter)]=tmp[i].substr(inter+1)
					} else {
						prm[tmp[i]]="";
					}
				}
				return prm;
			}
			
			function PrmUrl() {
				var prm = new Array();
				var tmp = unescape(window.location.search).substr(1).split("&");
				var inter;
				for ( i=0; i<tmp.length; i++) {
					inter=tmp[i].indexOf("=");
					if ( inter>=0 ) {
						prm[tmp[i].substr(0,inter)]=tmp[i].substr(inter+1)
					} else {
						prm[tmp[i]]="";
					}
				}
				return prm;
			}
			
			
			function buildSrc() {
				var src = document.getElementById('iFrameDynamique').src ;
				if (src=="http://"+window.location.hostname+"/chargement-comparateur-moto.html"){
				src="/proxidirect/partenaire/pages/comparateurMoto.do?branche=MOTO&";
				} else if(src=="http://"+window.location.hostname+"/chargement-comparateur-auto.html"){
				src="/proxidirect/partenaire/pages/comparateurAuto.do?branche=AUTO&";
				} else if(src=="http://"+window.location.hostname+"/chargement-comparateur-sante.html"){
				src="/proxidirect/partenaire/pages/comparateurSante.do?branche=SANTE&";
				} else if(src=="http://"+window.location.hostname+"/chargement-comparateur-mrh.html"){
				src="/proxidirect/partenaire/pages/comparateurMrh.do?branche=MRH&";
				} else if(src=="http://"+window.location.hostname+"/chargement-emailing-auto.html"){
				src="/proxidirect/souscription/pages/chargerAuto.do?branche=AUTO&";
				} else if(src=="http://"+window.location.hostname+"/chargement-emailing-moto.html"){
				src="/proxidirect/souscription/pages/chargerMoto.do?branche=MOTO&";
				} else if(src=="http://"+window.location.hostname+"/chargement-emailing-mrh.html"){
				src="/proxidirect/souscription/pages/chargerMrh.do?branche=MRH&";
				} else if(src=="http://"+window.location.hostname+"/chargement-emailing-sante.html"){
				src="/proxidirect/souscription/pages/chargerSante.do?branche=SANTE&";
				} else if(src=="http://"+window.location.hostname+"/chargement-emailing-animal.html"){
				src="/proxidirect/souscription/pages/chargerAnimal.do?branche=ANIM&";
				} else {src=src+"?";}
				
				if ( window.location.search ) {
					var $_GET=PrmUrl(); // paramètres dans l'URL
					var name=$_GET["name"];
					var devis=$_GET["devis"];
					var site=$_GET["site"];
					if((site=="")||(typeof(site)=='undefined')){ src = src + "site=default";}
					else{src = src + "site=" + site;}
					src = src + "&name=" + name ;
					src = src + "&devis=" + devis ;
				}
				document.getElementById('iFrameDynamique').src=src ;
			}
			
			function buildSrc2() {
				var src = document.getElementById('iFrameDynamique').src ;
								
				if ( window.location.search ) {
					var $_GET=PrmUrl(); // paramètres dans l'URL
					var apporteur=$_GET["app"];				
					src = src + "&codeApporteur=" + apporteur ;
				}
				document.getElementById('iFrameDynamique').src=src ;
			}
			
			function buildSrcAll() {
				var src = document.getElementById('iFrameDynamique').src ;
				
				if (src=="http://"+window.location.hostname+"/chargement-emailing-auto.html"){
				src="/proxidirect/souscription/pages/chargerAuto.do?branche=AUTO&";
				} else if(src=="http://"+window.location.hostname+"/chargement-emailing-moto.html"){
				src="/proxidirect/souscription/pages/chargerMoto.do?branche=MOTO&";
				} else if(src=="http://"+window.location.hostname+"/chargement-emailing-mrh.html"){
				src="/proxidirect/souscription/pages/chargerMrh.do?branche=MRH&";
				} else if(src=="http://"+window.location.hostname+"/chargement-emailing-sante.html"){
				src="/proxidirect/souscription/pages/chargerSante.do?branche=SANTE&";
				} else if(src=="http://"+window.location.hostname+"/chargement-emailing-animal.html"){
				src="/proxidirect/souscription/pages/chargerAnimal.do?branche=ANIM&";
				}
				
				if ( window.location.search ) {								
					src = src + "&" +unescape(window.location.search).substr(1) ;
				}
				document.getElementById('iFrameDynamique').src=src ;
			}

