function popup_themalis()
{
newWin = window.open('http://www.themalis.fr','','resizable=1,scrollbars=1,toolbar=1,location=1,height=630,width=810,top=10,left=10');
}

var a=0;
var x=0;
var y=0;
function popup_image(a,x,y)
{
newWin = window.open('zoom.php?img='+a,'','resizable=1,scrollbars=1,toolbar=0,location=0,height='+y+',width='+x+',top=10,left=10');
}

var x=0;
function popup_visu_doc(x)
{
var popdoc = window.open(x,'','resizable=1,scrollbars=1,toolbar=0,location=0,menubar=1,height=600,width=890,top=10,left=10');
popdoc.focus();
}

var z=0;
function popup_fixe(z)
{
newWin = window.open(z,'','resizable=0,scrollbars=1,toolbar=0,location=0,height=500,width=500,top=10,left=10');
}

function ami_box()
{
newWin = window.open('ami.php','','resizable=0,scrollbars=1,toolbar=0,location=0,height=200,width=600,top=10,left=10');
}

function favoris()
{
window.external.Addfavorite('http://www.audigest77.fr','AUDIGEST : Votre Expert Comptable Autrement');
}

function valider_devis() 
{
	document.devis.valider.value='Validation';
	document.devis.submit();
}

function valider_ami() 
{
	document.ami.valider.value='Validation';
	document.ami.submit();
}


function decnx() 
{
	document.ident.deconnecter.value='1';
	document.ident.submit();
}

function Is() {
   var agent = navigator.userAgent.toLowerCase();
   this.major = parseInt(navigator.appVersion);
   this.minor = parseFloat(navigator.appVersion);
   this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
   this.ns4 = (this.ns && (this.major >= 4));
   this.ns6 = (this.ns && (this.major >= 5));
   this.ie = (agent.indexOf("msie") != -1);
   this.ie4 = (this.ie && (this.major >= 4));
   this.ie5  = (this.ie && (agent.indexOf("msie 5")!=-1));
   this.op3 = (agent.indexOf("opera") != -1);
   this.win = (agent.indexOf("win")!=-1);
   this.mac = (agent.indexOf("mac")!=-1);
   this.unix = (agent.indexOf("x11")!=-1);
}

var is = new Is();
function addBookmark() {
   var titre = "ASSURANCE CONTROLE FISCAL";
   var url   = "http://www.assurance-controle-fiscal.fr/";
   if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) {
      window.sidebar.addPanel(titre, url, "");
   } else if (is.ie) {
      window.external.AddFavorite(url, titre);
   } else {
      alert("Pour ajouter 'titre' à  vos farovis, utilisez <CTRL>+D.");
   }
}
