// JavaScript Document
  function OpenLayer(id){
   if(document.getElementById(id).style.display == "block") {
    document.getElementById(id).style.display = "none" ;
	
   }  else {
    document.getElementById(id).style.display = "block" ;

   } 
      window.status =  document.getElementById(id).style.display;
 }
 // function pour les pop-ups
 
 function popUp2(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=550,height=600');");
}

function onSubmitForm() {
    var formDOMObj = document.frmSend;
    if (formDOMObj.attach1.value == "" && formDOMObj.attach2.value == "" && formDOMObj.attach3.value == "" && formDOMObj.attach4.value == "" )
        alert("Please press the browse button and pick a file.")
    else
        return true;
    return false;
}

 function OpenLayer2(id){
   if(document.getElementById(id).style.display == "block") {
    document.getElementById(id).style.display = "none" ;
	
   }  
      window.status =  document.getElementById(id).style.display;
 } 
  function OpenLayer5(id){
   if(document.getElementById(id).style.display == "block") {
    document.getElementById(id).style.display = "none" ;
	
   }  else {
    document.getElementById(id).style.display = "block" ;

   } 
      window.status =  document.getElementById(id).style.display;
 } 
 
 // JavaScript Document
     function addBookmark(title,url) {
                         if (window.sidebar) {
                              window.sidebar.addPanel(title, url,"");
                         } else if( document.all ) {
                              window.external.AddFavorite( url, title);
                         } else if( window.opera && window.print ) {
                              return true;
                         }
                    }
 
 function runFunctions(){
validate();
spellCheck();
}