<!--//


<!-- Original: Sean Decker
// JavaScript pris sur le site: "http://www.java.scripts-fr.com" 
function explose() {
// On ouvre la fonction.
for(x = 0; x < 50; x++) {
// Ici une boucle de 0 à 50
window.moveTo(screen.availWidth * -(x - 50) / 100, screen.availHeight * -(x - 50) / 100);
window.resizeTo(screen.availWidth * x / 50, screen.availHeight * x / 50); 
/*
Voila c'est ca que ca se complique un peu. 
2 méthodes de l'objet windows  
moveTo sert à déplacer le coin supérieur gauche d'une fenêtre (0 se trouve la)
resizeTo modifie les dimensions en hauteur et largeur.
l'objet screen avec 2 de ses propriété qui sont availWidth , qui spécifie la largeur de la surface de l'écran en pixels (tout l'écran hein pas seulement la fenêtre) et availHeight qui lui spécifie la hauteur.
*/ 
}
window.moveTo(0,0);
window.resizeTo(screen.availWidth, screen.availHeight);
}

var popUpName;

function open_popup(url,title, mywidth, myheight) {
	
	LeftPosition = (screen.width) ? (screen.width-mywidth)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-myheight)/2 : 0;
	newWindow = window.open(url,title,"width=" + mywidth + ",height=" + myheight + ",top="+TopPosition+",left="+LeftPosition+",toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1");
	if( self.focus ) newWindow.focus();
	newWindow.creator=_blank;
}

function open_popup2(url,title, mywidth, myheight,LeftPosition, TopPosition ) {
	newWindow = window.open(url,title,"width=" + mywidth + ",height=" + myheight + ",top="+TopPosition+",left="+LeftPosition+",toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1");
	if( self.focus ) newWindow.focus();

}
function open_popup3(popUpName, url,title, mywidth, myheight,LeftPosition, TopPosition)//idem popo2 mais sans barre de défilement verticale
{
	
	if (popUpName.document) { popUpName.close(); }

	popUpName = window.open(url,title,"width=" + mywidth + ",height=" + myheight + ",top="+TopPosition+",left="+LeftPosition+",toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=1");
	if( self.focus ) popUpName.focus();
	popUpName.creator=_blank;
}

function open_popup4(popUpName, url,title, mywidth, myheight,LeftPosition, TopPosition)//idem popo2 mais sans barre de défilement verticale
{
	
	if (popUpName.document) { popUpName.close(); }

	popUpName = window.open(url,title,"width=" + mywidth + ",height=" + myheight + ",top="+TopPosition+",left="+LeftPosition+",toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1");
	if( self.focus ) popUpName.focus();
	popUpName.creator=_blank;
}

function overOn(pic) 
{ pic.src='../images/fl.gif';}

function overOff(pic) 
{ pic.src='../images/pix.gif';}

function chouf1(objet){
 indexlist=objet.selectedIndex;
 sicovam=eval('objet.options[indexlist].value');
 var link ='&index2.php3?liste=CAC40&amp;secteur=&amp;fich=lfs1&liste=SRD';
 //alert("this url  =" + "fileV1_litAfichVal.php3?&sico=" + sicovam+ link);
 this.top.location.href=  "fileV1_litAfichVal.php3?&sico=" + sicovam+ link;
}

function chouf3(objet, MySens, MaListe){
 indexlist=objet.selectedIndex;
 var Lien=eval('objet.options[indexlist].value');
 
 for (var i=0; i<MySens.length;i++) {
         if (MySens[i].checked) {
            alert("Sens = " + MySens[i].value)
			var Sens="&tri=" + MySens[i].value;
         }}
 for (var i=0; i<MaListe.length;i++) {
         if (MaListe[i].checked) {
            alert("MaListe = " + MaListe[i].value)
			var List="?liste=" + MaListe[i].value;
         }}
 
 if (Lien =='Notation') {var Link ="php/lit_NotationListe.php3" + List + "&champ=NotGlob" + Sens;}
 
 	//lit_NotationListe.php3 
 //Link="php/index2.php3" + List + Lien + Sens;
 //php/index2.php3?liste=CAC40&Secteur=&fich=not1& champ=NotGlob&tri=ASC
 alert("this url  ="  + Link);

 this.top.location.href=   Link;
}

//----------------------------------------------------------------------------------------------------

function chouf4(objet, MaListe){
 indexlist=objet.selectedIndex;
 var Lien=eval('objet.options[indexlist].value');
 
 indexlist=MaListe.selectedIndex;
 var MyList=eval('MaListe.options[indexlist].value');
  
 if (Lien =='Par1') var Link ="index3.php3?fich=not1&liste=" + MyList;
 if (Lien =='Par2') var Link ="index3.php3?fich=consens&An=2002&liste=" + MyList;
 if (Lien =='Par3') var Link ="index3.php3?fich=consens&An=2003&liste=" + MyList;
 if (Lien =='Par4') var Link ="index3.php3?fich=lfs3&liste=" + MyList;
 if (Lien =='Par5') var Link ="index3.php3?fich=lfs2&liste=" + MyList;
 
 if (Lien =='Par6') var Link ="index3.php3?fich=lfs1&liste=" + MyList;//la synthèse
 if (Lien =='Par7') var Link ="index3.php3?fich=lp1&liste=" + MyList;//cotation et perfo
 if (Lien =='Par8') var Link ="index3.php3?fich=candle&liste=" + MyList;//AT chandeliers du jour
 if (Lien =='Par9') var Link ="index3.php3?fich=ls1&liste=" + MyList;//tous les signaux techniques
 if (Lien =='Par10') var Link ="index3.php3?fich=perfo&Indic=MMA50&liste=" + MyList;//perfo MMa 50 day perfo&Indic=MMA50
 
 if (Lien =='Par11') var Link ="index3.php3?fich=perfo&Indic=MMP50&liste=" + MyList;//performance MMp 50 day
 if (Lien =='Par12') var Link ="index3.php3?fich=perfo&Indic=MMP150&liste=" + MyList;//performance MMp 150 day
 if (Lien =='Par13') var Link ="index3.php3?fich=perfo&Indic=MMA20W&liste=" + MyList;//performance MMa 20 week
 if (Lien =='Par14') var Link ="index3.php3?fich=perfo&Indic=Orient&liste=" + MyList;//orientation MMa 20 MONTH
 if (Lien =='Par15') var Link ="index3.php3?fich=perfo&Indic=MACDW&liste=" + MyList; //performance MACD week

 if (Lien =='Par16') var Link ="index3.php3?fich=perfo&Indic=MACDM&liste=" + MyList;//performance MACD month
 if (Lien =='Par17') var Link ="index3.php3?fich=perfo&Indic=Vigi1&liste=" + MyList; //performance Vigi-Opti
 if (Lien =='Par18') var Link ="matrice_comparer.htm"; //comparer-value
 
 this.top.location.href= Link;
}




 //    Fin -->
