function PopupImage(img) {
	titre=":: abcNatation ::";
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=yes');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE>");
	w.document.write("<SC"+"RIPT language=java"+"script> function checksize()  { if (document.images['img'].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT></HEAD>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src='"+img+"' border=0 name='img'>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}
function PopupImage2(img) {
	titre=":: abcNatation :: Captures d'Ecran";
	w=open("",'image','width=400,height=350,toolbar=no,scrollbars=yes,resizable=no');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
	w.document.write("<BODY leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src='"+img+"' border=0 name='img'>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}
function prefocus(x,y){
fenpopup=window.open("","fenpopup","resizable=yes,scrollbars=yes,menubar=no,toolbar=no,locationbar=no,personalbar=no,statusbar=no,width="+x+",height="+y);
fenpopup.focus();
}
//utilisé dans asp/abonnement.asp
function valide(f){
	ok=true;
	if (f.etat.value==6 && f.sens.value==1){
		for (i=0;i<f.elements.length;i++){
			if (f.elements[i].type=="text"){
				v=f.elements(i).value
				if (v.indexOf("#",0)>=0){ok=false}
			}
		}
	}
	if (!ok) alert("Attention :\n# est un caractère interdit")
	return ok
}

//utilisé dans asp/gauche.asp
function go(z){
	//alert("trace= "+z)
	x=f.numclient.selectedIndex
	y=f.numclient.options[x].value
	parent.top.location="index.asp?page=espaceabonne&pageabonne="+z+"&numclient="+y
}

//utilisé dans asp/factures.asp
function gofact(z){
	//alert("trace= "+z)
	xnum=factfiltre.fnum.checked
	xsolde=factfiltre.fsolde.checked
	xmontant=factfiltre.fmontant.checked
	xda=factfiltre.fda.checked
	xform=factfiltre.fform.checked
	xdatefact=factfiltre.fdatefact.checked
	xtotal=factfiltre.ftotal.checked
	xfinabo=factfiltre.ffinabo.checked
	xpaie=factfiltre.fpaie.checked
	//alert("trace= "+xsolde)
	//y=factfiltre.solde.options[x].value
	parent.top.location="index.asp?page=espaceabonne&pageabonne=factures&filtre="+z+"&fsolde="+xsolde+"&fmontant="+xmontant+"&fnum="+xnum+"&fda="+xda+"&fform="+xform+"&fdatefact="+xdatefact+"&ftotal="+xtotal+"&ffinabo="+xfinabo+"&fpaie="+xpaie
}

