function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//------------------------------------------------------


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.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}
//------------------------------------------------------


function MM_showHideLayers() { //v3.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; }
}

//------------------------------------------------------


function envoiForm (codeEmploi)
		{
			document.form1.CODE.value = codeEmploi;
			document.form1.action = "../emplois/descriptif.asp";
			document.form1.submit();
		}

//------------------------------------------------------
	

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}



function envoiForm (codeEmploi)
		{
			form1.CODE.value = codeEmploi;
			form1.action = "../emplois/descriptif.asp";
			form1.submit();
		}

//------------------------------------------------------


function verifSelect(formField,Label)
			{				
				if (formField.length == 0)
				{
					alert('Vous devez ajout un elément dans la liste ' + Label + '.');
					formField.focus();
					return false;
				}
				return true;
			}

			function add(sel1,sel2)
			{
				var nr;
				var oOption;

				nr= sel1.length -1;
				for (var i=nr; i>=0 ;i--)
				{
					if (sel1.options[i].selected != 0)
					{
						sel2.options[sel2.length]=new Option(sel1.options[i].text,sel1.options[i].value);
						sel1.options[i]=null;
					}
				}
				proxy(sel2)
			}

			function extract(sel)
			{
				var nr;
				var id = '';
				var sel;
				nr= sel.length - 1;
				for (i=nr; i>=0 ;i--)
					id = id + sel.options[i].value + ',';
				return id;
			}

			function proxy(sel)
			{
				var str;
				str = extract(sel)
				document.form1.CHAMP.value =str;
			}

			function chkForm()
			{
				var f = document.form1;

				if ((verifSelect(f.DomaineChois,'Domaine d activités') == true) &&
					(verifList(f.code_entite,'Entité') == true) &&
					(verifChampObl(f.nom_cs,'Nom') == true) &&
					(verifChampObl(f.daten_cs,'Date de naissance') == true) &&
					(ValDateDD(f,f.daten_cs,'/:.','dd/mm/yyyy','','','') == true) &&
					(ValEmail(f.email_cs, 'Email') == true) &&
					(verifList(f.code_niveau,'Niveau Diplôme') == true) &&
					(verifList(f.code_exp,'Expérience') == true) &&
					(verifChampObl(f.poste_cs, 'Poste recherché') == true)
					)
				{				
					return true
				}
				else
				{
					return false
				}
			}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//------------------------------------------------------


function envoiForm (codeEmploi)
			{
				document.form1.CODE.value = codeEmploi;
				document.form1.action = "descriptif.asp";
				document.form1.submit();
			}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//------------------------------------------------------

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 Operation (strPage, strChamp)
{
	form1.strChamp.value = strChamp;
	form1.action = strPage;
	form1.submit();
}


function envoiForm (codeEmploi)
			{
				form1.CODE.value = codeEmploi;
				form1.action = "descriptif.asp";
				form1.submit();
			}
//------------------------------------------------------
			function chkForm()
			{
				var f = document.form1;
				if ((verifChampObl(f.nom_reps,'Nom') == true) &&
					(verifChampObl(f.daten_reps,'Date de naissance') == true) &&
					(ValDateDD(f,f.daten_reps,'/:.','dd/mm/yyyy','','','') == true) &&
					(ValEmail(f.email_reps, 'Email') == true) &&
					(verifList(f.code_niveau,'Niveau Diplôme') == true) &&
					(verifList(f.code_exp,'Expérience') == true)
					)
				{
					return true
				}
				else
				{
					return false
				}
			}

//------------------------------------------------------

function verifSelect(formField,Label)
			{
				if (formField.length == 0)
				{
					alert('Vous devez ajout un elément dans la liste ' + Label + '.');
					formField.focus();
					return false;
				}
				return true;
			}

			function add(sel1,sel2)
			{
				var nr;
				var oOption;

				nr= sel1.length -1;
				for (var i=nr; i>=0 ;i--)
				{
					if (sel1.options[i].selected != 0)
					{
						sel2.options[sel2.length]=new Option(sel1.options[i].text,sel1.options[i].value);
						sel1.options[i]=null;
					}
				}
				proxy(sel2)
			}

			function extract(sel)
			{
				var nr;
				var id = '';
				var sel;
				nr= sel.length - 1;
				for (i=nr; i>=0 ;i--)
					id = id + sel.options[i].value + ',';
				return id;
			}

			function proxy(sel)
			{
				var str;
				str = extract(sel)
				document.form1.CHAMP.value =str;
			}

			function chkForm()
			{
				var f = document.form1;
				if ((verifSelect(document.form1.DomaineChois,'Domaine d activités') == true) &&
					(verifList(f.code_entite,'Entité') == true) &&
					(verifChampObl(f.nom_cs,'Nom') == true) &&
					(verifChampObl(f.daten_cs,'Date de naissance') == true) &&
					(ValDateDD(f,f.daten_cs,'/:.','dd/mm/yyyy','','','') == true) &&
					(ValEmail(f.email_cs, 'Email') == true) &&
					(verifList(f.code_niveau,'Niveau Diplôme') == true) &&
					(verifList(f.code_exp,'Expérience') == true) &&
					(verifChampObl(document.form1.poste_cs, 'Poste recherché') == true)					)
				{
				//	if (f.date_cs != "")
					//	if (ValDateDD(f,form1.date_cs,'/:.','dd/mm/yyyy','','','') == true) return true
					//	else return false
					return true
				}
				else
				{
					return false
				}
			}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//------------------------------------------------------

function chkForm2()
			{						
				var f = document.form1;		
				if (ValEmail(f.desinscription, 'Email') == true)	return true
				else return false
			}
//------------------------------------------------------

function ValidForm()
	{
		var f = document.form1;
		if (f.recherche.value == "")
		{
			alert("Veuillez saisir un mot clés");
			f.recherche.focus();
		}
		else f.submit();
	}
	
//------------------------------------------------------

function hback()
{
	document.frmEdit.action = "visu-contacts.asp"
	document.frmEdit.submit();
}

//------------------------------------------------------


//---- Action Button: Delete
function annuler_onclick()
{
	//---- EXCUTING ACTION HERE
	document.MyForm.action="indexabonne.asp";
	document.MyForm.submit;
}
//------------------------------------------------------

<!--
//---- SCRIPT MADE BY Romdhane Houcine, Last Update: April, 31, 2000.
//-------- GET THE CHECKED BUTTON HERE ------------------------------
function SelectedButton()
{
	var RadioIndex=0;
	for (var i = 0; i < document.MyForm.ID.length; i++)
	{
		 if (document.MyForm.ID[i].checked=="1")
		 {
		         RadioIndex=i; 
		 }
	}
	
	return RadioIndex;
}

//---- Action Button: Modif
function modifier_onclick()
{
	   	document.MyForm.action="modifabonne.asp";
		document.MyForm.submit;
}

//---- Action Button: Add
function ajouter_onclick()
{
	//---- EXCUTING ACTION HERE
	document.MyForm.action="ajoutabonne.asp";
	document.MyForm.submit;
}

//---- Action Button: Delete
function supprimer_onclick()
{
	//---- EXCUTING ACTION HERE
	document.MyForm.action="indexabonne.asp";
	document.MyForm.submit;
}
//-->
//------------------------------------------------------
function chkForm_envoyer()
	{
	//alert ('ok')
		return verifChampObl(document.form1.email, 'E-mail');
	}