1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
|
function open_window(page_HTML,type_window,hauteur,largeur)
{
mywindow= window.open(page_HTML,type_window,"height="+hauteur+",width="+largeur+",scrollbars=yes,location=no,personnalbar=no");
mywindow.focus();
//mywindow.resizeTo(600,300);
mywindow.moveTo(0,0);
}
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
var calqueOuvert="";
function ouvrir(calqueNom)
{
l_calqueNom=calqueNom;
if (calqueOuvert=="")
{
MM_showHideLayers(l_calqueNom,'','show');
calqueOuvert=calqueNom;
}
else
{
MM_showHideLayers(calqueOuvert,'','hide');
// eval("document" + layerRef + "['"+calqueOuvert+"']" + styleRef + ".visibility = 'hidden'");
MM_showHideLayers(l_calqueNom,'','show');
// eval("document" + layerRef + "['"+calqueNom+"']" + styleRef + ".visibility = 'visible'");
calqueOuvert=calqueNom;
}
}
var cell="";
function change_cells_color(cells,color,newColor)
{
var cellsName;
if (document.getElementById) {
cellsName = document.getElementById(cells);
} else if (document.all) {
cellsName = eval("document.all."+cells);
}
if (!cellsName) return;
if (cell=="")
{
cellsName.bgColor=newColor;
cell=cellsName;
}
else if(cellsName!=cell)
{
cellsName.bgColor=newColor;
cell.bgColor=color;
cell=cellsName;
}
}
function changeCouleur(cellule,couleur)
{
cellule.style.backgroundColor = couleur;
}
function manage_section(id,action) {
var theIE;
if (document.getElementById) {
theIE = document.getElementById(id);
} else if (document.all) {
theIE = eval("document.all."+id);
}
if (!theIE) return;
if (action==1){
theIE.style.display = "";
}
else if (action==0){
theIE.style.display = "none";
}
} |