// webjo_funcs.js : common javascripts functions for application webjo
//
// startlist.js : display cascading menu for IE
function startList() 
{
	// code for IE
	if(!document.body.currentStyle) return;
	var subs = document.getElementsByName('submenu');
	for(var i=0; i<subs.length; i++) {
		var li = subs[i].parentNode;
		if(li && li.lastChild.style) {
			li.onmouseover = function() {
				this.lastChild.style.visibility = 'visible';
			}
			li.onmouseout = function() {
				this.lastChild.style.visibility = 'hidden';
			}
		}
	}
}
//**********************
// XMLHttp (AJAX) funcs for display current Cart content
  function mblrequestCart()
  {
    if (window.XMLHttpRequest)
	{
	  req = new XMLHttpRequest();
    }
	else
	{
	  req = new ActiveXObject("Microsoft.XMLHTTP");
	}
	req.open("GET", "CartSubGet.php", true);
	req.onreadystatechange = mblReceiveCart;
	req.send(null);
  }

  function mblReceiveCart()
  {
    if (req.readyState == 4)
	{
	  if (req.status == 200)
	  {
	    document.getElementById("cart_sub").innerHTML = req.responseText;
	  }
	}
  }
//******************
// Pop-up Funcs
    function rvpopen()
	{
		window.open('RespectViePrivee.html','InfoWindow','directories=no,toolbar=no,scrollbars=yes,resizable=yes,width=640,height=480');
	}
	function cveopen()
	{
		window.open('CONDITIONS_VENTE.html','InfoWindow','directories=no,toolbar=no,scrollbars=yes,resizable=yes,width=720,height=560');
	}
//*******************

// Lost Password 
    function lostpasswd()
    {
      emvalue=document.getElementById("deja_email").value;
      w=window.open('Cust_lostpasswd.php?cust_email=' + emvalue,'LostPasswd','directories=no,toolbar=no,scrollbars=yes,resizable=yes,width=780,height=320');
    }
//***************




