<!--

sas_tmstp=Math.round(Math.random()*10000000000);sas_masterflag=1;
function SmartAdServer(sas_pageid,sas_formatid,sas_target) {
if (sas_masterflag==1) {sas_masterflag=0;sas_master='M';} else {sas_master='S';};
document.write('<scr'+'ipt SRC="http://www.smartadserver.com/call/pubj/' + sas_pageid + '/' + sas_formatid + '/'+sas_master + '/' + sas_tmstp + '/' + escape(sas_target) + '?"></scr'+'ipt>');
}


/* 03/10/2006 - mon_compte */
function controle_login(){
	if(document.form2.e.value==""){
		alert("email obligatoire")
		return false;
	}	
	if(document.form2.m.value==""){
		alert("Mot de passe obligatoire")
		return false;
	}	
}


/* 03/10/2006 - efface champs */
function del_rech(){
	document.form_rech.rech_s.value='';
	document.form_rech.rech_d.value='';
}

/* ma_selection */
function send(){
	document.form1.action="mon_compte.asp?param=insert"
	document.form1.submit();
}


/* recherche_alpha */
function doIt(text)
{
	writit(text,'test');
}

function writit(text,id)
{
	if (document.getElementById)
	{
		x = document.getElementById(id);
		x.innerHTML = '';
		x.innerHTML = text;
	}
}

function load_if(text){
	parent.li_so.location="liste_so.asp?le="+ text	
}

/*	moteur de recherche simple par société en en-tête */
function envoi_societe(){
	var societe = document.getElementById("societe");
		if (societe.value==""){
			alert("Veuillez saisir un Nom de Société !");
			return false;
			}
		else {document.location.href="recherche_informations_financieres.asp?rech_s="+societe.value;}
}



/* Login Abonné en en-tête */
function envoi_login(){
	var email = document.getElementById("email");
	var password = document.getElementById("password");
	
	if (email.value==""){
		document.getElementById("email").focus();
		alert("Veuillez saisir votre Adresse Email !")
		return false;
	}
	if ((email.value.indexOf("@")==-1)||(email.value.indexOf(".")==-1)) {
		document.getElementById("email").focus();
		alert("Veuillez saisir une adresse Email valide !")
		return false;
	}
	if (password.value==""){
		document.getElementById("password").focus();
		alert("Veuillez saisir votre Mot de passe !")
		return false;
	}
	else{document.location.href="loggin_abonne.asp?e="+email.value+"&m="+password.value+"&param=1";}
}


/*	Recherche par Date corps de page */
function rech_date(){
	var ladate = document.getElementById("rech_d");
		if (ladate.value==""){
		document.getElementById("rech_d").focus();			
		alert("Veuillez saisir une date !");
			return false;
			}
		else {document.location.href="recherche_informations_financieres.asp?rech_d="+ladate.value;}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
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);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
