/////////////// CONFIGURATION /////////////////////////////

//open popup
function Start2(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,status=no,width=400,height=420,resizable=no");}

// menuderoulant
function menuderoulant(cadre,selection)
{ 
 eval(cadre+".location='"+selection.options[selection.selectedIndex].value+"'");
}

<!--
function popupcentree(page,largeur,hauteur,options)
{
var top=(screen.height-hauteur)/2;
var left=(screen.width-largeur)/2;
window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}

///hovers
function hover(obj){
  if(document.all){
    UL = obj.getElementsByTagName('ul');
    if(UL.length > 0){
      sousMenu = UL[0].style;
      if(sousMenu.display == 'none' || sousMenu.display == ''){
        sousMenu.display = 'block';
      }else{
        sousMenu.display = 'none';
      }
    }
  }
}


function setHover(){
  LI = document.getElementById('menu').getElementsByTagName('li');
  nLI = LI.length;
  for(i=0; i < nLI; i++){
    LI[i].onmouseover = function(){
      hover(this);
    }
    LI[i].onmouseout = function(){
      hover(this);
    }
  }
}

//////////		CheckForm /////////////////////
function CheckForm () 
	
	{ 
	 //Initialise variables
	 var errorMsg = "";
	 var noMsg = false ;

   		for(i=0;i<document.formcourse.Course.length;i++)
   		{
   			if (document.formcourse.Course[i].checked) 
			{
				noMsg = true ;	//don't display error msg 
				break ;  		// break loop 
			}
   		}
		
		if (! noMsg)
			{
			errorMsg += " Please chose your  Course ";	
				 alert( errorMsg );
			return false;
			}
		return true;
	}
	
	function Guest () 
	
	{ 
	 //Initialise variables

   		for(i=0;i<document.formcourse.Accommodation.length;i++)
   		{
   			if (document.formcourse.Accommodation[i].checked) 
			{
				if (i < 7)
				{
				document.formcourse.Guest.checked;
				}
			}
   		}
		
		return true;
	}
	// accept only numbers (Integer)
function Forceint()
{
	var strField = new String(formcourse.lessons.value);
	
	if (strField== "" ) 
	{return true;}

	var i = 0;

	for (i = 0; i < strField.length; i++)
		if ((strField.charAt(i) < '0' || strField.charAt(i) > '9') && (strField.charAt(i) != '.')) {
			alert( ' must be a valid numeric entry.  Please do not use commas or dollar signs or any non-numeric symbols');
			formcourse.lessons.focus();
			return false;
		}

	return true;
}


/////////			changeAction			//////////
function changeAction( actionid )
{

switch (actionid)
	{
	case 1:
//	  actionform="to_enroll.htm";
	   location.href="secure/english/inscription1.php";
	  break
	case 2:
	   actionform="cultural.php";
	  break
	case 3:
	   actionform="private.php";	   
	  break
	  case 4:
	   actionform="paris_antibs.php";
	  break
	case 5:
	   location.href="secure/english/to_enroll5.php?lang=en";
	  break
	case 6:
	   location.href="secure/english/nice_enroll.php?lang=en";
	  break  
  ////////////////////// new one 
	  case 7:
	   
	   location.href="secure/english/ans_et_plus.php?lang=en";
	// alert (location.href);
	  break 
	  
	default:
	  actionform=" "
	}

var x=document.getElementById("formcourse")

x.action=actionform

formcourse.submit();
}


function changeComment(CommentId)
{
	switch (CommentId)
	{
	case 1:
	  CommentMsg="short programs from 2 to 7 weeks ";
	  break
	case 2:
	   CommentMsg="long programs 8 weeks ";
	  break
	  case 16:
	  CommentMsg="private lessons";
	   break
	case 17:
	  CommentMsg="Cultural Course";
	  break
	default:
	  CommentMsg="choose your favorite program"
	}
	var x=document.getElementById('CommentTable').rows[0].cells
	x[0].innerHTML=CommentMsg
}

