function OpenLink(theURL) 
{ 
	w=window.open(theURL,"Fenetre","toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,width=630,height=400");
	MSIE=(navigator.appVersion.indexOf("MSIE")!=-1);
	VERS=parseInt(navigator.appVersion);
	if ((!MSIE) || (VERS >=5))
	w.focus();
}   

        function mOvr(src, color)
        {
            if (!src.contains(event.fromElement))
            {
                src.style.cursor = 'hand';
                src.bgColor = color;
            }
        }

        function mOut(src, color)
        {
            if (!src.contains(event.toElement))
            {
                src.style.cursor = 'default';
                src.bgColor = color;
            }
        }

        function mClk(src)
        {
            if (event.srcElement.tagName=='TD')
                src.children.tags('A')[0].click();
        }

		function PopupWindow(url)
		{
			myWindow = window.open(url, "coordonnees", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,width=550,height=350")
		}

		 function DisableCheckbox(form, question, valeur)
        {
            //var myindex=document.forms[0].menu.selectedIndex;
            if (question==8)
                {
                if (valeur=="Y") {
                    //alert ("activation"+ question + valeur);
                    document.getElementById("garage01").disabled = false;
                    document.getElementById("garage02").disabled = false;
                }
                else{
                    //alert ("desactivation"+ question + valeur);
                   document.getElementById("garage01").disabled = true;
                    document.getElementById("garage02").disabled = true;
                };
             }
            if (question==11)
                {

                if (valeur=="Y") {
                //alert("y");
                    //alert ("activation"+ question + valeur);
     //alert(document.getElementById("form_transports01"));
          document.getElementById("form_transports01").disabled = false;
          document.getElementById("form_transports02").disabled = false;
          document.getElementById("form_transports03").disabled = false;
                }
                else{
                    //alert ("desactivation"+ question + valeur);
          document.getElementById("form_transports01").disabled = true;
          document.getElementById("form_transports02").disabled = true;
          document.getElementById("form_transports03").disabled = true;
                };
             }
        }
