
function roll(img_name1, img_src1)
   {
   document[img_name1].src = img_src1;
   }
   
function move_in(img_name,img_src) {
	document[img_name].src=img_src;
	}

function ChangeUrl(formulaire)
	{
	if (formulaire.ListeUrl.selectedIndex != 0)
		{
		alert(formulaire.ListeUrl.options[formulaire.ListeUrl.selectedIndex].value);
		location.href = formulaire.ListeUrl.options[formulaire.ListeUrl.selectedIndex].value;
	 	}
	else 
		{
		alert('Veuillez choisir une destination.');
		}
	}

function afficheMaxi(chemin)
	{
	i1 = new Image;
	i1.src = chemin;
	html = '<HTML><HEAD><TITLE>Image</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+32)"></CENTER></BODY></HTML>';
	popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
	}

function cOn(td)
{
	if(document.getElementById||(document.all && !(document.getElementById)))
    {
		td.style.backgroundColor="green";
		td.style.color="black";
	}
}

function cOut(td)
{
	if(document.getElementById||(document.all && !(document.getElementById)))
    {
		td.style.backgroundColor="#FFFFFF";
		td.style.color="black";
	}
}


function popup(page,largeur,hauteur,options)
{
	var top=(screen.height-hauteur)/2;
	var left=(screen.width-largeur)/2;
	window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}


function TestEmail(quoi,langue)
{
	var x="oui";
	if (quoi.value.length == 0)
	{
        quoi.focus();
        if(langue=="fr") alert("Entrer une adress e-mail valide (nom@domaine.com), merci");
        if(langue=="en") alert('Please enter a valid email adress ( name@domain.com )');
        if(langue=="cz") alert('Zadejte správnou e-mailovou adresu (jméno@doména.com). Děkuji');
        x="non";
		return x;
	}

	if (quoi.value.length != 0)
	{
	    adresse = quoi.value;
	    var place = adresse.indexOf("@",1);
	    var point = adresse.indexOf(".",place+2);
	    if ((place < -1) || (adresse.length <2) || (point < 1))
	    {
        	quoi.focus();
	    if(langue=="fr")  	alert("Entrer une adress e-mail valide (nom@domaine.com), merci");
        if(langue=="en") alert('Please enter a valid email adress ( name@domain.com )');
        if(langue=="cz") alert('Zadejte správnou e-mailovou adresu (jméno@doména.com). Děkuji');
	    	x="non";
	    	return x;
	    }
	}
}


function Verif(form)
{
var ml =document.forms[form];
	if ( form == 'AdminEvent' )
    {
		if (ml.elements["StartDate"].value.length == 0)
		{
			ml.elements["StartDate"].focus();
            alert('Please enter the date of the event');
			return false;
		}
		if (ml.elements["EndDate"].value.length == 0)
		{
			ml.elements["EndDate"].focus();
            alert('Please enter the date of the event');
			return false;
		}		
		if (ml.elements["description"].value.length == 0)
		{
			ml.elements["description"].focus();
            alert('Please enter the description of the event');
			return false;
		}
		if (ml.elements["text"].value.length == 0)
		{
			ml.elements["text"].focus();
            alert('Please enter the text of the event');
			return false;
		}				
    }


	if ( form == 'AdminArchive' )
    {

		if (ml.elements["date"].value.length == 0)
		{
			ml.elements["date"].focus();
            alert('Please enter the date of the archive');
			return false;
		}
		if (ml.elements["description"].value.length == 0)
		{
			ml.elements["description"].focus();
            alert('Please enter the description of the archive');
			return false;
		}
		if (ml.elements["ArchiveFile"].value.length == 0)
		{
			ml.elements["ArchiveFile"].focus();
            alert('Please find a file for the archive');
			return false;
		}
    }
	if ( form == 'AdminPrayer' )
    {

		if (ml.elements["PrayerText"].value.length == 0)
		{
			ml.elements["PrayerText"].focus();
            alert('Please enter a text for the prayer request');
			return false;
		}
		if (ml.elements["PrayerValidDate"].value.length != 0)
		{
			Verif_Date(ml.elements["PrayerValidDate"];
			ml.elements["PrayerValidDate"].focus();
			return false;
		}

    }


}


<!--
// Script proposé par Marcus Eric - V1 : 2005
// V2 : 08/2006

// Enleve le '0' des nb < 10
function ConvNum(tabDeDate) {
for (i=0; i<tabDeDate.length; i++)
tabDeDate[i] = (tabDeDate[i].charAt(0)=='0')?tabDeDate[i].charAt(1):tabDeDate[i];
return tabDeDate;
}

// Retourne true si valeur_date est postérieure ŕ la date du jour
function DateFuture(valeur_date)
{var tabDate = valeur_date.split('-');
var datAujourdhui = new Date();
tabDate = ConvNum(tabDate);
if (valeur_date.length > 0)
{ var datTest_Date = new Date(parseInt(tabDate[2]), parseInt(tabDate[1])-1, parseInt(tabDate[0]));
if (datTest_Date <= datAujourdhui) return false;
}
return true;
}

// Retourne 1 si valeur_date1 < valeur_date2
// 0 si valeur_date1 = valeur_date2
// -1 si valeur_date1 > valeur_date2
function Compare_Dates(valeur_date1, valeur_date2)
{var tabDate1 = valeur_date1.split('-');
tabDate1 = ConvNum(tabDate1);
var datTest_Date1 = new Date(parseInt(tabDate1[2]), parseInt(tabDate1[1])-1, parseInt(tabDate1[0]));
var tabDate2 = valeur_date2.split('-');
tabDate2 = ConvNum(tabDate2);
var datTest_Date2 = new Date(parseInt(tabDate2[2]), parseInt(tabDate2[1])-1, parseInt(tabDate2[0]));
return (datTest_Date2-datTest_Date1==0)?"0":(datTest_Date2-datTest_Date1<0)?"-1":"1";
}

// Vérifie le format d une date saisie
function Verif_Date(valeur_date)
{ var tabDate = valeur_date.split('-');
tabDate = ConvNum(tabDate);
var datTest_Date = new Date(parseInt(tabDate[2]), parseInt(tabDate[1])-1, parseInt(tabDate[0]));
if (valeur_date.length>10)
{ alert('Date is too long. Should not be more than 10 charcaters (YYY-MM-DD).');
return false;
}
for (i=0; i<valeur_date.length; i++)
{ if (valeur_date.charAt(i) == ' ')
{ alert("No spaces allowed in the date.");
return false;
}
}
if (valeur_date.length > 0)
{ if ((parseInt(tabDate[0]) != datTest_Date.getDate()) || (parseInt(tabDate[1]) != parseInt(datTest_Date.getMonth())+1))
{ alert("Please enter the date in the format YYYY-MM-DD.");
return false;
}
if ((tabDate[2].length != 4) || (parseInt(tabDate[2]) < 1980) || (parseInt(tabDate[2]) > 2099))
{ alert("The year should be written on 4 figures.\n\nShould be included between 1980 and 2099.");
return false;
}
}
return true;
}

function ControleDates() {
var strMsg='';
if (Verif_Date(document.getElementById('debut').value) && Verif_Date(document.getElementById('fin').value)) {
switch (Compare_Dates(document.getElementById('debut').value, document.getElementById('fin').value)) {
case "-1" :
alert('KO:\nDate début > Date fin'); break;
case "0" :
alert('KO:\nDate début = Date fin'); break;
case "1" :
alert('OK:\nDate début < Date fin'); break;
default :
alert('Comparaison impossible');break;
}
}
}
//-->

// www.microbians.com / Gabriel Suchowolski power[z]one - powerz@microbians.com
//
// Distributed under the terms of the GNU Library General Public License
//
// - Chromeless trick by webFX. http://www.eae.net/webfx/
// - Chromeless mouse control to handled like a normal window by Gabriel Suchowolski power[z]one

function openchromeless(theURL, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel) {

        var windowW = W;
        var windowH = H;
        var windowX = Math.ceil( (window.screen.width  - windowW) / 2 );
        var windowY = Math.ceil( (window.screen.height - windowH) / 2 );

        if (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion)>=4) isie=true
        else                                                                                             isie=false

        if (isie) { H=H+20+2; W=W+2; }

        s = ",width="+W+",height="+H;

        if (isie && (navigator.userAgent.toLowerCase().indexOf("win")!=-1) ) {

var dowin = theURL != "" ? true : false;

var chromeTIThtml = '\n' +
'<html>                                                                                                                                                                                        '+ '\n'+
'<head>                                                                                                                                                                                 '+ '\n'+
'<title>&nbsp;CHROMELESS WINDOWS / TITLEBAR</title>                                                                                                                                      '+ '\n'+
'<style type="text/css">                                                                                                                                                                '+ '\n'+
'#mywindowTITLE         { position: absolute; left:   0px; top:   0px; width: 100%; height: 22px; z-index: 1; background-color: '+windowTITBGCOLOR+'; clip:rect(0,100%,22,0); }         '+ '\n'+
'#mywindow                 { position: absolute; left:   0px; top:   0px; width: 100%; height: 22px; z-index: 2;                                          clip:rect(0,100%;22,0); }         '+ '\n'+
'#mywindowCLOSE         { position: absolute; left: -22px; top: -22px; width: 11px; height: 11px; z-index: 3;                                          clip:rect(0,11,11,0);   }         '+ '\n'+
'#mywindowCLOCK         { position: absolute; left: -22px; top: -22px; width: 11px; height: 11px; z-index: 3;                                          clip:rect(0,11,11,0);   }         '+ '\n'+
'</style>                                                                                                                                                                               '+ '\n'+
'<script language="javascript">                                                                                                                                                                '+ '\n'

if ( theURL != "" & windowCERRARo !="" ) {

chromeTIThtml = chromeTIThtml +
'        theURL                         = "'+theURL                        +'"                                                                                                                             '+ '\n'+
'        windowCERRARa             = "'+windowCERRARa                +'"                                                                                                                             '+ '\n'+
'        windowCERRARd             = "'+windowCERRARd                +'"                                                                                                                             '+ '\n'+
'        windowCERRARo             = "'+windowCERRARo                +'"                                                                                                                             '+ '\n'+
'        windowCLOCK         = "'+windowCLOCK            +'"                                                                                                                             '+ '\n'+
'        windowBORDERCOLOR   = "'+windowBORDERCOLOR        +'"                                                                                                                             '+ '\n'+
'        windowBORDERCOLORsel= "'+windowBORDERCOLORsel        +'"                                                                                                                             '+ '\n'+
'        windowTITBGCOLOR    = "'+windowTITBGCOLOR        +'"                                                                                                                             '+ '\n'+
'        windowTITBGCOLORsel = "'+windowTITBGCOLORsel        +'"                                                                                                                             '+ '\n'

} else {

chromeTIThtml = chromeTIThtml +
'        theURL="about:blank"                                                                                                                                                            '+ '\n'+
'        windowCERRARa                 = "close_a.gif"                                                                                                                                     '+ '\n'+
'        windowCERRARd                 = "close_d.gif"                                                                                                                                     '+ '\n'+
'        windowCERRARo                 = "close_o.gif"                                                                                                                                     '+ '\n'+
'        windowCLOCK                 = "clock.gif"                                                                                                                                             '+ '\n'+
'        windowTIT                     = "<font face=verdana size=1>&nbsp;ť window title</font>"                                                                                               '+ '\n'+
'        windowBORDERCOLOR           = "#000000"                                                                                                                                             '+ '\n'+
'        windowBORDERCOLORsel        = "#FF8A00"                                                                                                                                             '+ '\n'+
'        windowTITBGCOLOR            = "#d7dcd9"                                                                                                                                             '+ '\n'+
'        windowTITBGCOLORsel         = "#ffffff"                                                                                                                                             '+ '\n'

}

chromeTIThtml = chromeTIThtml +
'var windowCERRARImg_a = new Image(); windowCERRARImg_a.src = windowCERRARa;                                                                                                            '+ '\n'+
'var windowCERRARImg_d = new Image(); windowCERRARImg_d.src = windowCERRARd;                                                                                                            '+ '\n'+
'var windowCERRARImg_o = new Image(); windowCERRARImg_o.src = windowCERRARo;                                                                                                            '+ '\n'+
'var windowCLOCKImg    = new Image();    windowCLOCKImg.src = windowCLOCK;                                                                                                              '+ '\n'+
'                                                                                                                                                                                       '+ '\n'+
'function mouseSTATUS() {                                                                                                                                                               '+ '\n'+
'        this.x       = null;                                                                                                                                                            '+ '\n'+
'        this.y       = null;                                                                                                                                                            '+ '\n'+
'        this.bt      = "up";                                                                                                                                                            '+ '\n'+
'        this.oldx    = null;                                                                                                                                                            '+ '\n'+
'        this.oldy    = null;                                                                                                                                                            '+ '\n'+
'        this.dx      = null;                                                                                                                                                            '+ '\n'+
'        this.dy      = null;                                                                                                                                                            '+ '\n'+
'        this.screeny = null;                                                                                                                                                            '+ '\n'+
'        this.screenx = null;                                                                                                                                                            '+ '\n'+
'                                                                                                                                                                                       '+ '\n'+
'        this.element = null;                                                                                                                                                            '+ '\n'+
'        this.event   = null;                                                                                                                                                            '+ '\n'+
'}                                                                                                                                                                                      '+ '\n'+
'                                                                                                                                                                                       '+ '\n'+
'var mouse = new mouseSTATUS();                                                                                                                                                         '+ '\n'+
'                                                                                                                                                                                       '+ '\n'+
'function actualizateMouseSTATUS(e) {                                                                                                                                                   '+ '\n'+
'        if (!e) var e = event                                                                                                                                                           '+ '\n'+
'        if ( (e.type=="mousedown" || e.type=="mouseup") && e.button!=1) return true                                                                                                     '+ '\n'+
'                                                                                                                                                                                       '+ '\n'+
'        var x=e.x+document.body.scrollLeft                                                                                                                                              '+ '\n'+
'        var y=e.y+document.body.scrollTop                                                                                                                                               '+ '\n'+
'                                                                                                                                                                                       '+ '\n'+
'        mouse.x   = x;                                                                                                                                                                  '+ '\n'+
'        mouse.y   = y;                                                                                                                                                                  '+ '\n'+
'                                                                                                                                                                                       '+ '\n'+
'             if ( e.type == "mousedown" ) mouse.bt = "down";                                                                                                                            '+ '\n'+
'        else if ( e.type == "mouseup" )   mouse.bt = "up";                                                                                                                              '+ '\n'+
'                                                                                                                                                                                       '+ '\n'+
'        if (window.event) {                                                                                                                                                             '+ '\n'+
'                mouse.screenx=window.event.screenX;                                                                                                                                     '+ '\n'+
'                mouse.screeny=window.event.screenY;                                                                                                                                     '+ '\n'+
'        } else {                                                                                                                                                                        '+ '\n'+
'                mouse.screenx=-1;                                                                                                                                                       '+ '\n'+
'                mouse.screeny=-1;                                                                                                                                                       '+ '\n'+
'        }                                                                                                                                                                               '+ '\n'+
'                                                                                                                                                                                       '+ '\n'+
'}                                                                                                                                                                                      '+ '\n'+
'                                                                                                                                                                                       '+ '\n'+
'                                                                                                                                                                                       '+ '\n'+
'function initMouseEvents() {                                                                                                                                                           '+ '\n'+
'        document.onmousedown = actualizateMouseSTATUS                                                                                                                                   '+ '\n'+
'        document.onmousemove = actualizateMouseSTATUS                                                                                                                                   '+ '\n'+
'        document.onmouseup   = actualizateMouseSTATUS                                                                                                                                   '+ '\n'+
'        document.onselectstart = selectstart                                                                                                                                            '+ '\n'+
'        document.ondragstart   = new Function("actualizateMouseSTATUS(event); return false;")                                                                                           '+ '\n'+
'}                                                                                                                                                                                      '+ '\n'+
'                                                                                                                                                                                       '+ '\n'+
'function selectstart(){                                                                                                                                                                '+ '\n'+
'        if ( event.srcElement.tagName != "INPUT" && event.srcElement.tagName != "TEXTAREA") { return false; }                                                                           '+ '\n'+
'        else { mouse.bt="up"; return true; }                                                                                                                                            '+ '\n'+
'}                                                                                                                                                                                      '+ '\n'+
'                                                                                                                                                                                        '+ '\n'+
'initMouseEvents()                                                                                                                                                                      '+ '\n'+
'                                                                                                                                                                                        '+ '\n'+
'var mywindowbt    ="up";                                                                                                                                                               '+ '\n'+
'var wincloseSTATUS="up";                                                                                                                                                               '+ '\n'+
'                                                                                                                                                                                        '+ '\n'+
'var ofx=0;                                                                                                                                                                             '+ '\n'+
'var ofy=0;                                                                                                                                                                             '+ '\n'+
'var opx=0;                                                                                                                                                                             '+ '\n'+
'var opy=0;                                                                                                                                                                             '+ '\n'+
'var px=0;                                                                                                                                                                              '+ '\n'+
'var py=0;                                                                                                                                                                              '+ '\n'+
'                                                                                                                                                                                        '+ '\n'+
'var wcpx1=-1, wcpy1=-1;                                                                                                                                                                '+ '\n'+
'var wcpx2=-1, wcpy2=-1;                                                                                                                                                                '+ '\n'+
'                                                                                                                                                                                        '+ '\n'+
'var wclosechanged = false;                                                                                                                                                             '+ '\n'+
'                                                                                                                                                                                        '+ '\n'+
'function initToMoveWin() {                                                                                                                                                             '+ '\n'+
'                if (wincloseSTATUS=="up" && ( mywindowbt=="up" || mywindowbt=="over") ) {                                                                                               '+ '\n'+
'                                                                                                                                                                                         '+ '\n'+
'                                if ( parent.mainloaded ) document.all["mywindowCLOCK"].style.visibility = "hidden";                                                                         '+ '\n'+
'                                                                                                                                                                                         '+ '\n'+
'                                document.all["mywindowCLOCK"].style.pixelLeft=document.body.clientWidth-36                                                                                 '+ '\n'+
'                                document.all["mywindowCLOCK"].style.pixelTop =4                                                                                                         '+ '\n'+
'                                                                                                                                                                                         '+ '\n'+
'                                wcpx1 = document.all["mywindowCLOSE"].style.pixelLeft=document.body.clientWidth-18                                                                      '+ '\n'+
'                                wcpy1 = document.all["mywindowCLOSE"].style.pixelTop =4                                                                                                 '+ '\n'+
'                                wcpx2 = wcpx1 + 11 - 1                                                                                                                                  '+ '\n'+
'                                wcpy2 = wcpy1 + 11 - 1                                                                                                                                  '+ '\n'+
'                                if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2) {                                                                    '+ '\n'+
'                                        if (wclosechanged == false) {                                                                                                                   '+ '\n'+
'                                                document.all["mywindowCLOSE"].document.images["closewin"].src=windowCERRARImg_o.src                                                     '+ '\n'+
'                                                wclosechanged = true                                                                                                                    '+ '\n'+
'                                        }                                                                                                                                               '+ '\n'+
'                                                                                                                                                                                        '+ '\n'+
'                                } else if (wclosechanged == true) {                                                                                                                     '+ '\n'+
'                                        document.all["mywindowCLOSE"].document.images["closewin"].src=windowCERRARImg_d.src                                                             '+ '\n'+
'                                        wclosechanged = false                                                                                                                           '+ '\n'+
'                                }                                                                                                                                                       '+ '\n'+
'                }                                                                                                                                                                       '+ '\n'+
'                                                                                                                                                                                        '+ '\n'+
'                     if (   mouse.y <= 22 && mouse.y >= 1   && mywindowbt == "up"   && mouse.bt =="up"    ) { mywindowbt = "over" }                                                     '+ '\n'+
'                else if ( ( mouse.y  > 22 || mouse.y <  1 ) && mywindowbt == "over" && mouse.bt =="up"    ) { mywindowbt = "up"   }                                                     '+ '\n'+
'                else if (   mouse.y <= 22 && mouse.y >= 1   && mywindowbt == "over" && mouse.bt == "down" ) {                                                                           '+ '\n'+
'                        self.window.focus();                                                                                                                                            '+ '\n'+
'                                                                                                                                                                                        '+ '\n'+
'                        if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2 ) {                                                                           '+ '\n'+
'                                wincloseSTATUS="down"                                                                                                                                   '+ '\n'+
'                                document.all["mywindowCLOSE"].document.images["closewin"].src=windowCERRARImg_a.src                                                                     '+ '\n'+
'                        } else {                                                                                                                                                        '+ '\n'+
'                                document.all["mywindowTITLE"].style.backgroundColor = windowTITBGCOLORsel                                                                               '+ '\n'+
'                                document.body.style.borderColor    = windowBORDERCOLORsel                                                                                               '+ '\n'+
'                                parent.chromewinb.document.bgColor = windowBORDERCOLORsel                                                                                               '+ '\n'+
'                                parent.chromewinl.document.bgColor = windowBORDERCOLORsel                                                                                               '+ '\n'+
'                                parent.chromewinr.document.bgColor = windowBORDERCOLORsel                                                                                               '+ '\n'+
'                                ofx =  mouse.x;                                                                                                                                         '+ '\n'+
'                                ofy =  mouse.y;                                                                                                                                         '+ '\n'+
'                                opx =  mouse.x;                                                                                                                                         '+ '\n'+
'                                opy =  mouse.y;                                                                                                                                         '+ '\n'+
'                        }                                                                                                                                                                '+ '\n'+
'                        mywindowbt="down";                                                                                                                                              '+ '\n'+
'                }                                                                                                                                                                       '+ '\n'+
'                else if ( mouse.bt =="up" && mywindowbt == "down" ) {                                                                                                                   '+ '\n'+
'                        mywindowbt="up";                                                                                                                                                '+ '\n'+
'                        ofx=0;                                                                                                                                                          '+ '\n'+
'                        ofy=0;                                                                                                                                                          '+ '\n'+
'                        opx=0;                                                                                                                                                          '+ '\n'+
'                        opy=0;                                                                                                                                                          '+ '\n'+
'                                                                                                                                                                                        '+ '\n'+
'                        if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2 && wincloseSTATUS=="down" ) { top.window.close() }                            '+ '\n'+
'                                                                                                                                                                                        '+ '\n'+
'                        wincloseSTATUS="up"                                                                                                                                             '+ '\n'+
'                                                                                                                                                                                        '+ '\n'+
'                        if ( document.all["mywindowTITLE"] ) {                                                                                                                          '+ '\n'+
'                                document.all["mywindowTITLE"].style.backgroundColor = windowTITBGCOLOR                                                                                  '+ '\n'+
'                                document.body.style.borderColor   = windowBORDERCOLOR                                                                                                   '+ '\n'+
'                                parent.chromewinb.document.bgColor= windowBORDERCOLOR                                                                                                   '+ '\n'+
'                                parent.chromewinl.document.bgColor= windowBORDERCOLOR                                                                                                   '+ '\n'+
'                                parent.chromewinr.document.bgColor= windowBORDERCOLOR                                                                                                   '+ '\n'+
'                        }                                                                                                                                                               '+ '\n'+
'                                                                                                                                                                                        '+ '\n'+
'                }                                                                                                                                                                       '+ '\n'+
'                else if ( mywindowbt == "down" && wincloseSTATUS == "up") {                                                                                                             '+ '\n'+
'                        var m_scrx = mouse.screenx;                                                                                                                                     '+ '\n'+
'                        var m_scry = mouse.screeny;                                                                                                                                     '+ '\n'+
'                        opx = px + ofx - m_scrx;                                                                                                                                        '+ '\n'+
'                        opy = py + ofy - m_scry;                                                                                                                                        '+ '\n'+
'                        px = m_scrx - ofx;                                                                                                                                              '+ '\n'+
'                        py = m_scry - ofy;                                                                                                                                              '+ '\n'+
'                        top.window.moveTo(px , py);                                                                                                                                     '+ '\n'+
'                }                                                                                                                                                                       '+ '\n'+
'        setTimeout("initToMoveWin()",50);                                                                                                                                               '+ '\n'+
'}                                                                                                                                                                                      '+ '\n'+
'</script>                                                                                                                                                                                '+ '\n'+
'</head>                                                                                                                                                                                '+ '\n'+
'<body align="center" TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 scroll=no style="border: 1px solid '+ windowBORDERCOLOR +'; overflow: hidden; margin: 0pt;" bgcolor='+windowTITBGCOLOR+'>  '+ '\n'+
'<div id=mywindow ><img src="'+windowNONEgrf+'" width=100% height=20></div>                                                                                                                     '+ '\n'+
'<div id=mywindowTITLE>'+ '<table width=100% height=20 border=0 cellpadding=0 cellspacing=0><tr><td valign=middle align=left>'+windowTIT+'</td></tr></table>' +'</div>                  '+ '\n'+
'<div id=mywindowCLOSE><img name=closewin src="'+ windowCERRARd +'" border=0 width=11 height=11></div>                                                                                  '+ '\n'+
'<div id=mywindowCLOCK><img name=clockwin src="'+ windowCLOCK   +'" border=0 width=11 height=11></div>                                                                                  '+ '\n'+
'</body>                                                                                                                                                                                '+ '\n'+
'<script>initToMoveWin();</script>                                                                                                                                                        '+ '\n'+
'</html>                                                                                                                                                                                '+ '\n'

var chromeFRMhtml = '' +
'<HTML>                                                                                                                                                '+ '\n'+
'<HEAD>                                                                                                                                         '+ '\n'+
'<TITLE>'+ windowREALtit +'</TITLE>                                                                                                                  '+ '\n'+
'</HEAD>                                                                                                                                        '+ '\n'+
'<script>                                                                                                                                         '+ '\n'+
'mainloaded = false                                                                                                                                '+ '\n'+
'function generatetitle() {                                                                                                                         '+ '\n'+
'        if( window.frames["chromewint"] && window.frames["chromewinl"] && window.frames["chromewinb"] && window.frames["chromewinr"] ) {        '+ '\n'+
'                chromewint.document.open();                                                                                                        '+ '\n'+
'                chromewint.document.write( "'+ quitasaltolinea(chromeTIThtml) +'" );                                                                '+ '\n'+
'                chromewint.document.close();                                                                                                        '+ '\n'+
'                chromewinl.document.bgColor="'+ windowBORDERCOLOR +'"                                                                                '+ '\n'+
'                chromewinb.document.bgColor="'+ windowBORDERCOLOR +'"                                                                                '+ '\n'+
'                chromewinr.document.bgColor="'+ windowBORDERCOLOR +'"                                                                                '+ '\n'+
'        } else {                                                                                                                                '+ '\n'+
'                setTimeout("generatetitle()",200)                                                                                                '+ '\n'+
'        }                                                                                                                                        '+ '\n'+
'}                                                                                                                                                '+ '\n'+
'generatetitle()                                                                                                                                '+ '\n'+
'</script>                                                                                                                                        '+ '\n'+
'<frameset border=0 framespacing=0 frameborder=0 rows="22,100%,1" onload="mainloaded=true" onreadystatechange="generatetitle()">                '+ '\n'+
'        <frame name=chromewint src="about:blank" scrolling=no noresize align="center" >                                                                          '+ '\n'+
'        <frameset border=0 framespacing=0 frameborder=0 cols="1,100%,1">                                                                        '+ '\n'+
'                <frame name=chromewinl src="about:blank" scrolling=no noresize align="center">                                                                 '+ '\n'+
'                <frame name=main       src="'+theURL+'" align="center">                                                                                           '+ '\n'+
'                <frame name=chromewinr src="about:blank" scrolling=no noresize>                                                                 '+ '\n'+
'        </frameset>                                                                                                                             '+ '\n'+
'        <frame name=chromewinb src="about:blank" scrolling=no noresize>                                                                         '+ '\n'+
'</frameset>                                                                                                                                    '+ '\n'+
'</HTML>                                                                                                                                        '

                splashWin = window.open( "" , wname, "fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0"+s);

                splashWin.resizeTo( Math.ceil( W )       , Math.ceil( H ) );
                splashWin.moveTo  ( Math.ceil( windowX ) , Math.ceil( windowY ) );

                splashWin.document.open();
                splashWin.document.write( chromeFRMhtml );
                splashWin.document.close();

        }
        else    {
                var splashWin = window.open(theURL, wname, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1"+s, true);
        }

        splashWin.focus();
}

             



function BulleWrite(_60,e_,x_,y_){
if(!bISSET){
bISSET=true;
addEvent(document,"mousemove",WhereMouse);
if(e_){
WhereMouse(e_);
}else{
var _64=document;
if(document.createEvent){
var _65=document.createEvent("MouseEvents");
_65.initEvent("mousemove",true,false);
_64.dispatchEvent(_65);
}else{
if(document.createEventObject){
_64.fireEvent("onmousemove");
}
}
}
}
var _66=GetObjet("Bulle");
var _67=GetObjet("FBulle");
var _68;
if(!bINIT){
Init_Bulle();
}
if(_66){
Get_DimFenetre();
Decal_X=(x_?x_:15);
Decal_Y=(y_?y_:15);
_68=_60;
_66.innerHTML=_68;
if(bSELECT){
with(_67.style){
height=_66.offsetHeight;
width=_66.offsetWidth;
left=_66.offsetLeft;
top=_66.offsetTop;
}
}
ObjShowAll("Bulle",Mouse_X+Decal_X,Mouse_Y+Decal_Y,1000);
bBULLE=true;
return (true);
}
return (false);
}

function BulleHide(){
var _69=GetObjet("Bulle");
var _6a=GetObjet("FBulle");
if(bSELECT){
_6a.style.height=0+"px";
}
with(_69){
innerHTML="&nbsp;";
style.left=-1000+"px";
style.top=-1000+"px";
style.zIndex=0;
style.visibility="hidden";
}
bCADRE=false;
bBULLE=false;
if(bISSET){
bISSET=false;
removeEvent(document,"mousemove",WhereMouse);
}
return (true);
}