// formulair inscription
function submitinscription () 
 {
if (inscription.nom.value == ""){
	alert ("Votre nom est obilgatoire" )
	inscription.nom.focus()        
	return;}
else if (inscription.prenom.value == ""){
	alert ("Votre prénom est obilgatoire" )
	inscription.prenom.focus()
	return;}
else if (inscription.email.value == ""){
	alert ("Votre email est obilgatoire" )
	inscription.email.focus()
	return;}
else if( (inscription.email.value.indexOf('@', 0) == -1) || (inscription.email.value.indexOf('.') == -1)){
	alert ('Tapez un correcte email');
	inscription.email.focus()
	return;}
else if (inscription.pass.value == ""){
	alert ("Votre Mots de passe est obilgatoire" )
	inscription.pass.focus()
	return;}
else{
	document.inscription.submit(); // un-comment to submit form
	return;}
}
//

// que des chiffres ou des lettres
function codeTouche(evenement)
{
        for (prop in evenement)
        {
                if(prop == 'which') return(evenement.which);
        }
        return(evenement.keyCode);
}

function scanTouche(evenement)
{
        var reCarValides = /\w/;

        var codeDecimal  = codeTouche(evenement);
        var car = String.fromCharCode(codeDecimal);
        var autorisation = reCarValides.test(car);

        return autorisation;
}
//

// fonction qui ajoute email
function onblurcopier()
{
	document.inscription.emailp.value = document.inscription.email.value;
}

// scan_pass
function scan_pass()
{
        var pass = document.inscription.pass.value;
        var restricted = new Array("'","*","-","+","/"); //Add here the characters u want to restrict
        for(i=0;i<pass.length;i++)
        {
            if(pass.indexOf(restricted[i])!=-1)
            {
                document.inscription.pass.value = "" ;
                alert("Votre Mots de passe est incorrect");
                break;
            }
        }
}



function thankyou()
{
        url1 = 'merci.htm';
        window.open(url1,'ThankYou','toolbar=0, location=0, menubar=0,resizable=0,scrollbars=0,statusbar=0,width=510,height=365');
}
 menuItems = new Array();
 menuItemNum = 0;
 function addMenuItem(text, url, img){
  if(img) menuItems[menuItemNum] = new Array(text, url, img);
  else if(text) menuItems[menuItemNum] = new Array(text, url);
  else menuItems[menuItemNum] = new Array();
  menuItemNum++;
 }
 menuWidth = 150; //menu width
 menuHeight = 105; //menu height
 menuDelay = 50; //delay before menu appears
 menuSpeed = 8; //speed which menu appears (lower=faster)
 menuOffset = 0; //offset of menu from mouse pointer

 addMenuItem("Groupe Sagesse       ","http://www.sdlgdlsagesse.org","images/home.gif");
 addMenuItem();
 addMenuItem("Collège de la Sagesse","http://www.sagesse.edu.lb","images/sagesse.gif");
 addMenuItem();
 addMenuItem("Guides du Liban      ","http://www.guidesduliban.org","images/guides.gif");
 addMenuItem();
 addMenuItem("Scouts du Liban      ","http://www.scoutsduliban.org","images/croix.gif");
 addMenuItem();
 
 if(window.navigator.appName == "Microsoft Internet Explorer" && window.navigator.appVersion.substring(window.navigator.appVersion.indexOf("MSIE") + 5, window.navigator.appVersion.indexOf("MSIE") + 8) >= 5.5)
  isIe = 1;
 else
  isIe = 0;

 if(isIe){
  menuContent = '<table id="rightMenu" width="0" height="0" cellspacing="0" cellpadding="0" style="font:menu;color:menutext;"><tr height="1"><td style="background:threedlightshadow" colspan="4"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threedlightshadow"></td><td style="background:threedhighlight" colspan="2"></td><td style="background:threedshadow"></td><td style="background:threeddarkshadow"></td></tr><tr height="10"><td style="background:threedlightshadow"></td><td style="background:threedhighlight"></td><td style="background:threedface"><table cellspacing="0" cellpadding="0" nowrap style="font:menu;color:menutext;cursor:default;">';
  for(m=0;m<menuItems.length;m++){
   if(menuItems[m][0] && menuItems[m][2])
    menuContent += '<tr height="17" onMouseOver="this.style.background=\'highlight\';this.style.color=\'highlighttext\';" onMouseOut="this.style.background=\'threedface\';this.style.color=\'menutext\';" onClick="parent.window.location.href=\'' + menuItems[m][1] + '\'"><td style="background:threedface" width="1" nowrap></td><td width="21" nowrap><img src="' + menuItems[m][2] + '"></td><td nowrap>' + menuItems[m][0] + '</td><td width="21" nowrap></td><td style="background:threedface" width="1" nowrap></td></tr>';
   else if(menuItems[m][0])
    menuContent += '<tr height="17" onMouseOver="this.style.background=\'highlight\';this.style.color=\'highlighttext\';" onMouseOut="this.style.background=\'threedface\';this.style.color=\'menutext\';" onClick="parent.window.location.href=\'' + menuItems[m][1] + '\'"><td style="background:threedface" width="1" nowrap></td><td width="21" nowrap></td><td nowrap>' + menuItems[m][0] + '</td><td width="21" nowrap></td><td style="background:threedface" width="1" nowrap></td></tr>';
   else
    menuContent += '<tr><td colspan="5" height="4"></td></tr><tr><td colspan="5"><table cellspacing="0"><tr><td width="2" height="1"></td><td width="0" height="1" style="background:threedshadow"></td><td width="2" height="1"></td></tr><tr><td width="2" height="1"></td><td width="100%" height="1" style="background:threedhighlight"></td><td width="2" height="1"></td></tr></table></td></tr><tr><td colspan="5" height="3"></td></tr>';
  }
  menuContent += '</table></td><td style="background:threedshadow"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threedlightshadow"></td><td style="background:threedhighlight"></td><td style="background:threedface"></td><td style="background:threedshadow"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threedlightshadow"></td><td style="background:threedshadow" colspan="3"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threeddarkshadow" colspan="5"></td></tr></table>';

  menuPopup = window.createPopup();
  menuPopup.document.body.innerHTML = menuContent;
 }

 function showMenu(){
  menuXPos = event.clientX + menuOffset;
  menuYPos = event.clientY + menuOffset;

  menuXIncrement = menuWidth / menuSpeed;
  menuYIncrement = menuHeight / menuSpeed;

  menuTimer = setTimeout("openMenu(0,0)", menuDelay);

  return false;
 }

 function openMenu(height, width){
  iHeight = height;
  iWidth = width;

  menuPopup.show(menuXPos, menuYPos, iWidth, iHeight, document.body );

  if(iHeight < menuHeight)
   menuTimer = setTimeout("openMenu(iHeight + menuYIncrement, iWidth + menuXIncrement)", 1);
  else
   clearTimeout(menuTimer);
 }

 if(isIe) document.oncontextmenu = showMenu;











<!-- Start of scroller scriptvar
 scrollCounter = 0;var scrollText    = "Soyez les bienvenus au site des Guides et Scouts de la Sagesse";var
  scrollDelay   = 100;var i = 0;while (i ++ < 140)scrollText = " " + scrollText;function Scroller()
  {window.status = scrollText.substring(scrollCounter++, scrollText.length);if (scrollCounter == scrollText.length) scrollCounter = 0;setTimeout("Scroller()", 
  scrollDelay);}Scroller();// End of scroller script -->
