function confirmer_assistant(annee,numsemaine,user){

	if (confirm ("Voulez vous démarrer l'assistant de saisie des CRA pour la semaine "+numsemaine+" ?"))
	 {
		new_browser('assistant_etape1.asp', 'Exemple', 600,500,50,100);
	 
	 return true;
	 }
return false;
}

function confirmer_assistant_modif(annee,numsemaine,user){
	
		new_browser('assistant_etape1.asp?id_user='+user+'&week='+numsemaine+'&annee='+annee, 'Exemple', 600,450,50,100);
	 
}
function confirmer_assistant_creation(annee,numsemaine,user){
	
		new_browser('assistant_etape1.asp?id_user='+user+'&week='+numsemaine+'&annee='+annee, 'Exemple', 500,350,50,100);
	 
}

function confirmer_supprimer(){

	if (confirm ("Supprimer cette entrée ?"))
	 {
	 return true;
	 }
return false;
}
function confirmer_supprimer_cra(){

	if (confirm ("Confirmez vous la suppression complète du CRA ?"))
	 {
	 return true;
	 }
return false;
}
function confirmer_creer_cra(){

	if (confirm ("Confirmez vous la création du CRA ?"))
	 {
	 return true;
	 }
return false;
}


function confirmer_modifier_cra(){

	if (confirm ("Confirmez vous la modification du CRA ?"))
	 {
	 return true;
	 }
return false;
}

function confirmer_modifier(){

	if (confirm ("Modifier cette entrée ?"))
	 {
	 return true;
	 }
return false;
}

<!-- MASQUER POUR LES AUTRES BROWSERS
  function new_browser(src,name,w,h,top,left) {
    size=",width="+w+",height="+h
    var browser=window.open(src, name,"scrollbars=no,top="+top+",left="+left+",resizable=yes,toolbar=no,status=no,menubar=no,location=no,directories=no"+size)
 
 if(browser.focus){browser.focus();}

 
  }
// -->																																	
		<!-- 
		
		
		AlphaChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
		NumChars = "0123456789";
		HexaChars = "ABCDEFabcdef";
		
		function IsNumeric(Data) {
			var It = true;
			var c;
			for (var x = 0; x < Data.length; x++)
				if (It) {
					c = Data.charAt(x);
					It = ( NumChars.indexOf(c) != -1);
				}
			return It;
		}
		
		function IsDecimal(Data) {
			var It = true;
			var virgule = false;
			var c;
			c = Data.charAt(0);	
			It = ( (NumChars.indexOf(c) != -1) || (c == "+") || (c=="-") );
			for (var x = 1; x < Data.length; x++)
				if (It) {
					c = Data.charAt(x);
					if ( (c==".") || (c == ",") )
						if (virgule) 
							It = false;
						else {
							It = true;
							virgule = true;
						}
					else
						It = (NumChars.indexOf(c) != -1);
				}
			return It;
		}
		
		function IsAlphaNumeric(Data) {
			var It = true;
			var c;
			for (var x = 0; x < Data.length; x++)
				if (It) {
					c = Data.charAt(x);
					It = ( (NumChars.indexOf(c) != -1) || (AlphaChars.indexOf(c) != -1) );
				}
			return It;
		}
		
		function IsHexa(Data) {
			var It = true;
			var c;
			for (var x = 0; x < Data.length; x++)
				if (It) {
					c = Data.charAt(x);
					It = (  (HexaChars.indexOf(c) != -1) || (NumChars.indexOf(c) != -1) );
				}
			return It;
		}
		
		function IsAlpha(Data) {
			var It = true;
			var c;
			for (var x = 0; x < Data.length; x++)
				if (It) {
					c = Data.charAt(x);
					It = ( AlphaChars.indexOf(c) != -1);
				}
			return It;
		}
		
		function CheckField(Data,Format) {
			var exact = false;
			if (  Data != "0") {
				if (Format == "NUM")
					exact = IsNumeric(Data);
				if (Format == "ALNUM")
					exact = IsAlphaNumeric(Data);
				if (Format == "DEC")
					exact = IsDecimal(Data);
				if (Format == "HEXA")
					exact = IsHexa(Data);
				if (Format == "ALPHA")
					exact = IsAlpha(Data);
			}
			return exact;
		}
		
		function Check(FormName,Format) {
			
			 if (CheckField(FormName.value,Format)) {
				//window.alert("Format valide");
			}
			else {
				window.alert("Format incorrect !\nRecommencez s.v.p.");
				FormName.value = "";
				FormName.focus();
			}
		}
		
		function reactive()
		{if (exemple) {exemple.focus;}
		}
function HeureCheckEJS()
{
krucial = new Date;
heure = krucial.getHours();
min = krucial.getMinutes();
sec = krucial.getSeconds();
jour = krucial.getDate();
mois = krucial.getMonth()+1;
annee = krucial.getFullYear();
if (sec < 10)
sec0 = "0";
else
sec0 = "";
if (min < 10)
min0 = "0";
else
min0 = "";
if (heure < 10)
heure0 = "0";
else
heure0 = "";
DinaHeure = heure0 + heure + ":" + min0 + min  ;
which = DinaHeure
if (document.all){
dynamic3.innerHTML='<center>00:00</center>'
dynamic3.innerHTML='<FONT SIZE=1 FACE="Verdana, Arial"><B>'+which+'</B></FONT>';
}
else if (document.layers){
document.dynamic1.document.dynamic2.document.write('<FONT SIZE=1 FACE="Verdana, Arial"><B>'+which+'</B></FONT>')
document.dynamic1.document.dynamic2.document.close()
}
tempoEJS = setTimeout("HeureCheckEJS()", 60000)
}


var key = new Array(); 
//key['p'] = "javascript:window.print()"; 
//key['r'] = "javascript:history.back()"; 
//key['s'] = "javascript:history.forward()"; 
//key['h'] = "javascript:scroll(0,0)"; 
//key['a'] = "javascript:location.reload()"; 
// Si on appuie sur la touche ? du clavier, on appelle l'aide.
// key['\x3F'] = "javascript:new_browser('../aide/aide.asp','aide',600,450,50,50)"; 


function clavier(keyStroke) { 
isNetscape=(document.layers); //lwf 
eventChooser = (isNetscape) ? keyStroke.which : event.keyCode; 
which = String.fromCharCode(eventChooser).toLowerCase(); 
for (var i in key) if (which == i) window.location = key[i]; 
} 
document.onkeypress = clavier; 
	
	
	
		// -->
// appel de l'aide en ligne et desactivation de l'aide d'IE
document.onhelp = 
  function () {
 //  alert ('aide demandée');
   new_browser('../aide/aide.asp','aide',600,450,50,50);
    return false;
  };

document.onkeydown = function(){


		 if(window.event && window.event.keyCode == 113) 
        { // Capture et remappe F2
		 window.event.keyCode = 506;
  		 }

if(window.event && window.event.keyCode == 506) 
        { // Nouvelle action pour F2
		  new_browser('../aide/word.asp','aide',620,620,50,50);
		 return false; 
        // 
		 }
		  if(window.event && window.event.keyCode == 118) 
        { // Capture et remappe F7
		 window.event.keyCode = 508;
  		 }

if(window.event && window.event.keyCode == 508) 
        { // Nouvelle action pour F7
		  javascript:window.print()
		 return false; 
        // 
		 }
    
}

function imprimer(){
 if (navigator.appName == "Netscape") {
  window.print() ;
 }
 else {
  var navi = '<OBJECT ID=navi1 WIDTH=0 HEIGHT=0 CLASSID=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2></OBJECT>';
  document.body.insertAdjacentHTML('beforeEnd', navi);
  navi1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    navi1.outerHTML = ;
 }
}

function fermer(){
window.close()
}
function verifForm2(monform)
	{
		<!--- CHAMPS OBLIGATOIRES --->

		
	if (monform.nom.value=="")  {
	                alert("Champ 'Nom' non renseigné");
	                monform.nom.focus();
	                return false;
					}
					if (monform.telephone.value=="")  {
	                alert("Champ 'telephone' non renseigné");
	                monform.telephone.focus();
	                return false;
					}
	
					
					if (monform.adresse.value=="")  {
	                alert("Champ 'adresse' non renseigné");
	                monform.adresse.focus();
	                return false;
					}
					
					if (monform.cp.value=="")  {
	                alert("Champ 'code postal' non renseigné");
	                monform.cp.focus();
	                return false;
					}
					if (monform.ville.value=="")  {
	                alert("Champ 'Ville' non renseigné");
	                monform.ville.focus();
	                return false;
					}
					
					if (monform.email.value=="")  {
	                alert("Champ 'Email' non renseigné");
	                monform.email.focus();
	                return false;
					}
					
	
	xxx = 0 + monform.email.value.length 
	if ( xxx > 0 ) {if (monform.email.value.indexOf("@")==-1) {
			alert("Veuillez saisir une adresse E-mail correcte, SVP.");
			monform.email.focus();
			return false;
		}
		else
		{
	            longueur = monform.email.value.length;
	            position = monform.email.value.indexOf("@");
	            left_str = monform.email.value.substring(0,position);
	            right_str = monform.email.value.substring(position+1,longueur);
	            left_len = left_str.length;
	            right_len = right_str.length;

	<!--- si la valeur gauche ou droite du @ est vide --->
	                if ((left_len==0) || (right_len==0))
	                {
	                alert("Veuillez saisir une adresse E-mail correcte, SVP.");
	                monform.email.focus();
	                return false;
	                }
	                else
	                {
	<!--- s'il n'y a pas de point --->
	                        if (right_str.indexOf(".")==-1)
	                        {
	                        alert("Veuillez saisir une adresse E-mail correcte, SVP.");
	                        monform.email.focus();
	                        return false;
	                        }
	                        else
	                        {
	                                right_longueur = right_str.length;
	                                right_position = right_str.lastIndexOf(".");
	                                l_right_str = right_str.substring(0,right_position);
	                                r_right_str = right_str.substring(right_position+1,right_longueur);
	                                l_right_len = l_right_str.length;
	                                r_right_len = r_right_str.length;

	<!--- s'il y a au moins 2 lettres après le point --->
	                                if ((r_right_len < 2)||(r_right_len > 4))
	                                {
	                                alert("Veuillez saisir une adresse E-mail correcte, SVP.");
	                                monform.email.focus();
	                                return false;
	                                }
	                                else
	                                {
	<!--- s'il y a au moins 1 lettre après le point --->
	                                        if (l_right_len==0)
	                                        {
	                                        alert("Veuillez saisir une adresse E-mail correcte, SVP.");
	                                        monform.email.focus();
	                                        return false;
	                                        }
	                                }
	                        }
	                }
	        }
}
}



function verifForm3(monform)
	{
		<!--- CHAMPS OBLIGATOIRES --->

		
	if (monform.nom.value=="")  {
	                alert("Champ 'Nom' non renseigné");
	                monform.nom.focus();
	                return false;
					}
					if (monform.telephone.value=="")  {
	                alert("Champ 'telephone' non renseigné");
	                monform.telephone.focus();
	                return false;
					}
	
					
				
					
					
					
	              
					if (monform.email.value=="")  {
	                alert("Champ 'Email' non renseigné");
	                monform.email.focus();
	                return false;
					}
					
	
	xxx = 0 + monform.email.value.length 
	if ( xxx > 0 ) {if (monform.email.value.indexOf("@")==-1) {
			alert("Veuillez saisir une adresse E-mail correcte, SVP.");
			monform.email.focus();
			return false;
		}
		else
		{
	            longueur = monform.email.value.length;
	            position = monform.email.value.indexOf("@");
	            left_str = monform.email.value.substring(0,position);
	            right_str = monform.email.value.substring(position+1,longueur);
	            left_len = left_str.length;
	            right_len = right_str.length;

	<!--- si la valeur gauche ou droite du @ est vide --->
	                if ((left_len==0) || (right_len==0))
	                {
	                alert("Veuillez saisir une adresse E-mail correcte, SVP.");
	                monform.email.focus();
	                return false;
	                }
	                else
	                {
	<!--- s'il n'y a pas de point --->
	                        if (right_str.indexOf(".")==-1)
	                        {
	                        alert("Veuillez saisir une adresse E-mail correcte, SVP.");
	                        monform.email.focus();
	                        return false;
	                        }
	                        else
	                        {
	                                right_longueur = right_str.length;
	                                right_position = right_str.lastIndexOf(".");
	                                l_right_str = right_str.substring(0,right_position);
	                                r_right_str = right_str.substring(right_position+1,right_longueur);
	                                l_right_len = l_right_str.length;
	                                r_right_len = r_right_str.length;

	<!--- s'il y a au moins 2 lettres après le point --->
	                                if ((r_right_len < 2)||(r_right_len > 4))
	                                {
	                                alert("Veuillez saisir une adresse E-mail correcte, SVP.");
	                                monform.email.focus();
	                                return false;
	                                }
	                                else
	                                {
	<!--- s'il y a au moins 1 lettre après le point --->
	                                        if (l_right_len==0)
	                                        {
	                                        alert("Veuillez saisir une adresse E-mail correcte, SVP.");
	                                        monform.email.focus();
	                                        return false;
	                                        }
	                                }
	                        }
	                }
	        }
}
}

//
function verifForm(monform)
	{
		<!--- CHAMPS OBLIGATOIRES --->

		
	if (monform.nom.value=="")  {
	                alert("Champ 'Nom' non renseigné");
	                monform.nom.focus();
	                return false;
					}
	if (monform.prenom.value=="")  {
	                alert("Champ 'Prénom' non renseigné");
	                monform.prenom.focus();
	                return false;
					}
	if (monform.adresse.value=="")  {
	                alert("Champ 'Adresse' non renseigné");
	                monform.adresse.focus();
	                return false;
					}
	if (monform.cp.value=="")  {
	                alert("Champ 'Code Postal' non renseigné");
	                monform.cp.focus();
	                return false;
					}
	if (monform.cp.value.length>"5"||monform.cp.value.length<"5")  {
	                alert("Champ 'Code Postal' non correct");
	                monform.cp.focus();
	                return false;
					}
	if (monform.ville.value=="")  {
	                alert("Champ 'Ville' non renseigné");
	                monform.ville.focus();
	                return false;
					}
	
	xxx = 0 + monform.email.value.length 
	if ( xxx > 0 ) {if (monform.email.value.indexOf("@")==-1) {
			alert("Veuillez saisir une adresse E-mail correcte, SVP.");
			monform.email.focus();
			return false;
		}
		else
		{
	            longueur = monform.email.value.length;
	            position = monform.email.value.indexOf("@");
	            left_str = monform.email.value.substring(0,position);
	            right_str = monform.email.value.substring(position+1,longueur);
	            left_len = left_str.length;
	            right_len = right_str.length;

	<!--- si la valeur gauche ou droite du @ est vide --->
	                if ((left_len==0) || (right_len==0))
	                {
	                alert("Veuillez saisir une adresse E-mail correcte, SVP.");
	                monform.email.focus();
	                return false;
	                }
	                else
	                {
	<!--- s'il n'y a pas de point --->
	                        if (right_str.indexOf(".")==-1)
	                        {
	                        alert("Veuillez saisir une adresse E-mail correcte, SVP.");
	                        monform.email.focus();
	                        return false;
	                        }
	                        else
	                        {
	                                right_longueur = right_str.length;
	                                right_position = right_str.lastIndexOf(".");
	                                l_right_str = right_str.substring(0,right_position);
	                                r_right_str = right_str.substring(right_position+1,right_longueur);
	                                l_right_len = l_right_str.length;
	                                r_right_len = r_right_str.length;

	<!--- s'il y a au moins 2 lettres après le point --->
	                                if ((r_right_len < 2)||(r_right_len > 4))
	                                {
	                                alert("Veuillez saisir une adresse E-mail correcte, SVP.");
	                                monform.email.focus();
	                                return false;
	                                }
	                                else
	                                {
	<!--- s'il y a au moins 1 lettre après le point --->
	                                        if (l_right_len==0)
	                                        {
	                                        alert("Veuillez saisir une adresse E-mail correcte, SVP.");
	                                        monform.email.focus();
	                                        return false;
	                                        }
	                                }
	                        }
	                }
	        }
}
}
