<!-- BEGIN Invitation Positioning  -->
var lpPosY = 100;
<!-- END Invitation Positioning  -->
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);
}

/****************************/
<!--
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);
    }
  }
}

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);
//-->
/*********************************************/
<!-- Begin email
 
/**
 * DHTML email validation script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)
 */

function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail ID")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail ID")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

 		 return true					
	}

function ValidateForm(){
	var emailID=document.newsletter.query
	
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Please Enter your Email ID")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false
	}
	return true
 }
 
 
 
////////////////////////////////////////// 
// 
//Mohamed//ajax for dates and prices 

  var url = "course.php?"// The server-side script 
        //var url_1 = "GetUserData.php?pid="; // The server-side script 
	var url_2 = "course_2009.php?"
      function handleHttpResponse() {    
        if (http.readyState == 4) { 
              if(http.status==200) { 
                var results=http.responseText; 
			 document.getElementById('divCustomerInfo').innerHTML = results; 
	
			  } 
              } 
        } 
        
		function handleHttpResponse2() {    
        if (http2.readyState == 4) { 
              if(http2.status==200) { 
                var results=http2.responseText; 
			 document.getElementById('id2009').innerHTML = results; 

			  } 
              } 
        } 
		
       		function requestCustomerInfo() {      
            var sId =document.getElementById("txtCustomerId").value; 
		
		   	var pId =document.getElementById("pwd").value;
		    http.open("GET", url +"id="+ escape(sId)+"&pId="+escape(pId), true);
            http.onreadystatechange = handleHttpResponse; 
            http.send(null); 
          
				} 
	   			function prices2008()  {      
            	var pIdx =document.getElementById("mds").value;
				var sIdx =document.getElementById("xsl").value; 
		    	http2.open("GET", url_2 +"idx="+ escape(sIdx)+"&pIdx="+escape(pIdx), true);
            	http2.onreadystatechange = handleHttpResponse2; 
            	http2.send(null); 
           
		} 	 
 		
		
         function requestpwdinfo() {      
            var pId = document.getElementById("pwd").value; 
            http.open("GET", url_1 + escape(pId), true); 
            http.onreadystatechange = handleHttpResponse; 
            http.send(null); 
        } 
        function resetbut(){ 
        document.getElementById("txtCustomerId").value=''; 
        document.getElementById("pwd").value=''; 

        } 
function getHTTPObject() { 
  var xmlhttp; 

  if(window.XMLHttpRequest){ 
    xmlhttp = new XMLHttpRequest(); 
  } 
  else if (window.ActiveXObject){ 
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 
    if (!xmlhttp){ 
        xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); 
    } 
    
} 
  return xmlhttp; 

  
} 
var http = getHTTPObject();
var http2 = getHTTPObject();
// We create the HTTP Object 
//  End -->

/* Mohamd jquery*/
$(document).ready(function(){
  $("a#link_T2").click(function(){
  $("div#divCustomerInfo").hide();
 $("select#pwd").val("");
  $("select#txtCustomerId").val("");
  $("select#xsl").val("");
  $("select#mds").val("");
  prices2008();
  })});
  $(document).ready(function(){
  $("a#link_T1").click(function(){
  $("div#id2009").hide();
$("select#pwd").val("");
  $("select#txtCustomerId").val("");
  $("select#xsl").val("");
  $("select#mds").val(""); 
  requestCustomerInfo(); 
  })});
$(document).ready(function(){
  $("input#bt").click(function(){
  $("div#divCustomerInfo").slideToggle(500);
  $("div#divCustomerInfo").slideDown(500);
  })});
$(document).ready(function(){
  $("select#pwd").change(function(){
  $("div#divCustomerInfo").slideToggle(500);
  $("div#divCustomerInfo").slideDown(500);
  requestCustomerInfo(); // alert("many");
  })});
  $(document).ready(function(){
  $("select#txtCustomerId").change(function(){
  $("div#divCustomerInfo").slideToggle(500);
  $("div#divCustomerInfo").slideDown(500);
   requestCustomerInfo();
  })});
 $(document).ready(function(){
  $("select#mds").change(function(){
  $("div#id2009").slideToggle(500);
  $("div#id2009").slideDown(500);
   prices2008(); 
  })});
  $(document).ready(function(){
  $("select#xsl").change(function(){
  $("div#id2009").slideToggle(500);
  $("div#id2009").slideDown(500);
   prices2008();
 // alert("many");
  })}); 
