<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function openMail(url) {
var emailWin;
	emailWin = window.open (url, 'CNAEmailWin','scrollbars=false,width=600,height=400,left=250,top=250,toolbar=false,menubar=false,status=false,location=false,resizable=false')
	emailWin.focus();
}

function openQuiz(url){
	window.open(url,"CAI",'toolbar=no,location=0,directories=0,status=0,menubar=no,scrollbars=1,resizable=1,width=400,height=360, left=1, top=1')
}

function sethome() {
if (document.getElementById){
  alert('Click and drag this link to the Home Button on your browser window.\n');
}

// If it's Netscape 4 or lower, give instructions to set Home Page
else if (document.layers){
  alert('Make this site your home page:\n\n- Go to Preferences in the Edit Menu.\n- Choose Navigator from the list on the left.\n- Click on the "Use Current Page" button.\n');
}

// If it's any other browser, for which I don't know the specifications of home paging, display instructions
else {
  alert('Make this site your home page:\n\n- Go to Preferences in the Edit Menu.\n- Choose Navigator from the list on the left.\n- Click on the "Use Current Page" button.\n');
}
}
function sethomef() {
if (document.getElementById){
  alert('Cliquer et faire glisser le lien au bouton \u00AB D\u00E9marrage \u00BB de votre fen\u00EAtre \u00AB Navigateur \u00BB\n');
}

// If it's Netscape 4 or lower, give instructions to set Home Page
else if (document.layers){
  alert('Faites de ce site votre page d’accueil :\n\n- Rendez-vous \u00E0 \u00AB Pr\u00E9f\u00E9rences \u00BB dans le menu \u00AB \u00E9dition \u00BB\n- S\u00E9lectionnez \u00AB Navigateur \u00BB dans la liste \u00E0 gauche.\n- Cliquez sur \u00AB Page en cours \u00BB.\n');
}

// If it's any other browser, for which I don't know the specifications of home paging, display instructions
else {
  alert('Faites de ce site votre page d’accueil :\n\n- Rendez-vous \u00E0 \u00AB Pr\u00E9f\u00E9rences \u00BB dans le menu \u00AB \u00E9dition \u00BB\n- S\u00E9lectionnez \u00AB Navigateur \u00BB dans la liste \u00E0 gauche.\n- Cliquez sur \u00AB Page en cours \u00BB.\n');
}
}
function utility_validateEmail(eml) {

            a = eml.search(/@/i);
            a1 = eml.substring(0,a);
            a2 = a1.length;
              
            a = a + 1;
            b = eml.indexOf(".");
            b1 = eml.substring(a,b);
            b2 = b1.length;
              
            b = b + 1;
            c = eml.length;
            c1 = eml.substring(b,c);
            c2 = c1.length;
             
            if(eml.indexOf("@") != "-1" && eml.indexOf(".") != "-1" && a2 >= 1 && b2 >= 1 && c2 >= 1) {
	            return true;
            } else {
	            return false;
            }
}  
//-->
