// Message de sortie du site sur les liens href avec target
function alerteSortie()
{
	return confirm("Vous allez \352tre redirig\351 vers un autre site internet.\nSouhaitez-vous quitter notre site internet ?", "Message");
}
// Mise a jout liens href en target non vide
function changeHRefTargetLinks()
{
	var ahrefs= document.getElementsByTagName("a" );
	for (var ix = 0; ix < ahrefs.length; ix++ )
	{
		if( ahrefs[ix].target == "_blank" )
		{
			//ahrefs[ix].onclick = alerteSortie(ahrefs[ix]);
			ahrefs[ix].onclick = alerteSortie;
		}
	}
}



//Ouverture d'une PopUp en JavaScript pour afficher les minisites HTML
function openPopUpCond(){
	var puWidth = 800;
	var puHeight = 690;
	var puX = (screen.width - puWidth) / 2;
	var puY = (screen.height - puHeight) / 2;

	pu = window.open(
		'http://webmaster.pfizer.fr/conditions/conditions.aspx',
		'', 
		'width='+ puWidth +', height='+ puHeight +', left='+ puX +', top='+ puY +', menubar=no, status=no, scrollbars=yes'
	);
	
	pu.focus();
}
function openPopUpQui(){
	var puWidth = 800;
	var puHeight = 690;
	var puX = (screen.width - puWidth) / 2;
	var puY = (screen.height - puHeight) / 2;

	pu = window.open(
		'http://webmaster.pfizer.fr/qui-sommes-nous/quisommesnous.aspx',
		'', 
		'width='+ puWidth +', height='+ puHeight +', left='+ puX +', top='+ puY +', menubar=no, status=no, scrollbars=yes'
	);
	
	pu.focus();
}
function openPopUpCharte(){
	var puWidth = 800;
	var puHeight = 690;
	var puX = (screen.width - puWidth) / 2;
	var puY = (screen.height - puHeight) / 2;

	pu = window.open(
		'http://webmaster.pfizer.fr/charte/charte.aspx',
		'', 
		'width='+ puWidth +', height='+ puHeight +', left='+ puX +', top='+ puY +', menubar=no, status=no, scrollbars=yes'
	);
	
	pu.focus();
}
function openPopUpContact(){
	var puWidth = 800;
	var puHeight = 690;
	var puX = (screen.width - puWidth) / 2;
	var puY = (screen.height - puHeight) / 2;

	pu = window.open(
		'http://webmaster.pfizer.fr/PageFormulaire.aspx',
		'', 
		'width='+ puWidth +', height='+ puHeight +', left='+ puX +', top='+ puY +', menubar=no, status=no, scrollbars=yes'
	);
	
	pu.focus();
}

function openPopUpContact_1(){
	var puWidth = 800;
	var puHeight = 690;
	var puX = (screen.width - puWidth) / 2;
	var puY = (screen.height - puHeight) / 2;

	pu = window.open(
		'http://webmaster.pfizer.fr/Theme1',
		'', 
		'width='+ puWidth +', height='+ puHeight +', left='+ puX +', top='+ puY +', menubar=no, status=no, scrollbars=yes'
	);
	
	pu.focus();
}

function openPopUpContact_2(){
	var puWidth = 800;
	var puHeight = 690;
	var puX = (screen.width - puWidth) / 2;
	var puY = (screen.height - puHeight) / 2;

	pu = window.open(
		'http://webmaster.pfizer.fr/Theme2',
		'', 
		'width='+ puWidth +', height='+ puHeight +', left='+ puX +', top='+ puY +', menubar=no, status=no, scrollbars=yes'
	);
	
	pu.focus();
}

function openPopUpContact_3(){
	var puWidth = 800;
	var puHeight = 690;
	var puX = (screen.width - puWidth) / 2;
	var puY = (screen.height - puHeight) / 2;

	pu = window.open(
		'http://webmaster.pfizer.fr/Theme3',
		'', 
		'width='+ puWidth +', height='+ puHeight +', left='+ puX +', top='+ puY +', menubar=no, status=no, scrollbars=yes'
	);
	
	pu.focus();
}

function openPopUpContact_4(){
	var puWidth = 800;
	var puHeight = 690;
	var puX = (screen.width - puWidth) / 2;
	var puY = (screen.height - puHeight) / 2;

	pu = window.open(
		'http://webmaster.pfizer.fr/Theme4',
		'', 
		'width='+ puWidth +', height='+ puHeight +', left='+ puX +', top='+ puY +', menubar=no, status=no, scrollbars=yes'
	);
	
	pu.focus();
}
