function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

var downloadId = [];
downloadId['1']=1;
downloadId['2']=9;

function selectDownload(bloc, id) {
	dId = "ddownload"+downloadId[bloc];
	gId = "gdownload"+downloadId[bloc];
	elem = getElement(gId);
	elem.className = "download-lines";
	elem = getElement(dId);
	elem.className = "hide";
	downloadId[bloc] = id;
	dId = "ddownload"+downloadId[bloc];
	gId = "gdownload"+downloadId[bloc];
	
	elem = getElement(gId);
	elem.className = "download-lines-hover";
	elem = getElement(dId);
	elem.className = "downloads-droite2";

}

function getElement(id) {
  var elem;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( id );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[id];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[id];
  return elem;
}

function validateJoin(){
	  if(getElement('firstname').value != "" && getElement('name').value != "" && getElement('email').value != "") {
	    return true;
	  }
	  if(getElement('firstname').value == "") {
		  getElement('spanfirstname').className = "text-title";
	  } else {
		  getElement('spanfirstname').className = "hide";
	  }
	  if(getElement('name').value == "") {
		  getElement('spanname').className = "text-title";
	  } else {
		  getElement('spanname').className = "hide";
	  }
	  if(getElement('email').value == "") {
		  getElement('spanemail').className = "text-title";
	  } else {
		  getElement('spanemail').className = "hide";
	  }
	  return false;
}

function validateJoin_userguide(){
	  if(getElement('firstname').value != "" && getElement('name').value != "" && getElement('email').value != "" && getElement('company').value != "" && getElement('phone').value != "") {
	    return true;
	  }
	  if(getElement('firstname').value == "") {
		  getElement('spanfirstname').className = "text-title";
	  } else {
		  getElement('spanfirstname').className = "hide";
	  }
	  if(getElement('name').value == "") {
		  getElement('spanname').className = "text-title";
	  } else {
		  getElement('spanname').className = "hide";
	  }
	  if(getElement('email').value == "") {
		  getElement('spanemail').className = "text-title";
	  } else {
		  getElement('spanemail').className = "hide";
	  }
	  if(getElement('company').value == "") {
		  getElement('spancompany').className = "text-title";
	  } else {
		  getElement('spancompany').className = "hide";
	  }
	  if(getElement('phone').value == "") {
		  getElement('spanphone').className = "text-title";
	  } else {
		  getElement('spanphone').className = "hide";
	  }
	  return false;
}