function Wopen(url,name,features) {
	window.open(url,name,features);
}

function popUpDemande(name, features)
{												  
	var demande_doc	= window.open('http://www.banqueagf.fr/bagfweb/produits/offre_agf/demande_documentation.jsp',name,features);
	demande_doc.focus();
	return;
}

function popUpDemandeSource(name,features,source)
{												  
	var url =  "http://www.banqueagf.fr/bagfweb/produits/offre_agf/demande_documentation.jsp?source="+source;
	var demande_doc	= window.open(url,name,features);
	demande_doc.focus();
	return;
}

function popUpBAGF(mon_template,name,features)
{	
	var doOpen=(mon_template!="");

	if((doOpen))	{

	var demande_doc= 
window.open('http://www.banqueagf.fr/bagfweb/servlet/BAGF_Servlet?type=2&conteneur=BAGF_PopUp&modele='+mon_template,name,features);
	demande_doc.focus();
	}

	return;
}

function openOidWindow(oid,nom,features) {
	var url = "http://www.banqueagf.fr/bagfweb/servlet/BAGF_Servlet?type=4&conteneur=BAGF_PopupByOid&oid="+oid;
	window.open(url,nom,features);
}

function openImprimerProduitWindow(oid, nom, features) {
	var url = "http://www.banqueagf.fr/bagfweb/servlet/BAGF_Servlet?type=4&conteneur=BAGF_PopUp_Produit&oid="+oid+"&impression=true";
	window.open(url,nom,features);
}

function envoieArticle(oid, titre) {
	var url = "http://www.banqueagf.fr/bagfweb/servlet/BAGF_Servlet?type=1&content=BAGF_DOCUMENT&oid=1073754821&formmsg=formulaire/envoyer_a_un_ami&msgoid="+oid+"&msgtitre="+titre;
	document.location = url;
}

function PopUp_elle()
{
window.open("http://www.banqueagf.fr/templates/popups/lanceur.html", "", "toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, copyhistory=no, width=250, height=250, left=100, top=160");
}

var win=null;
function openfenetre(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}