function chgc(obj,c)
 {
   (c==0)? color='#006FB1' : color='#b1b1b1';
   obj.style.background = color ;
 }
 function chgsc(obj,c)
 {
   (c==0)? color='#f1f1f1' : color='#f1f1f1';
   obj.style.background = color ;
 }
function change(a,c)
 { 	(c==0)? document.getElementById(a).className="menuoff" : document.getElementById(a).className="menuon";
	
 }

function chgim(e,i)
{
 document.getElementById(i).src=e;
}
function ajFavoris(){
var url="http://c-ae.net"
var titre="Création Gestion Hébergement sites"
if (document.all)
window.external.AddFavorite(url,titre)
}

function admin()
{
var adm=window.open("art_padm/secretdb.php","admin","scrollbars=yes,width=1015,height=700,left=0,top=40");
if (!adm) { alert("Pour accéder au secteur Administration \n Votre antipopup doit être désactive!");
		}  
	refresh();	
}

function admin1()
{

var adm=window.open("tabonne/secret.php","admin","scrollbars=yes,width=1015,height=700,left=0,top=40");
if (!adm) { alert("Pour accéder au secteur Administration \n Votre antipopup doit être désactive!");
		}
		
}
function refresh()
{
	//admin1();
  	setTimeout(window.open('index.php','_self'),2000);
}

function enlarge(t,l,h,pot,l0,h0,e,txt){
var h2=(h0+70)
var l2=l0
if (l>420 )
	{ h=h/l*420; l=420;}
//Render image code for IE 4+
if (document.layers){
document.showimage.document.write('<table border="0" width="595" height="415" valign="top" align="center" cellpadding=6><tr valign="top">');
document.showimage.document.write('<td height=420><a href=# onclick="ferm()" oncontextmenu="ferm()"><img id=img src="'+pot+'"  width="'+l+'" heigth="'+h+'" border="0" ></a>');
document.showimage.document.write('</td>td width="280" valign=middle>'+t+'<br>'+pay+'</td></tr></table>');
document.showimage.document.close();
document.showimage.left=116;
document.showimage.top=115;
document.showimage.visibility="show";
document.me.visibility="hidden";
}
else
{

document.getElementById("showimage").style.left=112;
document.getElementById("showimage").style.top=125 ;
var html='<table border="0" width="595" height="430" valign="top" cellpadding=5 ><tr valign="top" >'
		+'<td height=420><a href=# onclick="ferm()" oncontextmenu="ferm()"><img id="img" src="'+pot+'"  width="'+l+'" heigth="'+h+'" border="0"></a>'
		+'</td><td width="280" valign=middle>'+t+'<br></td></tr></table>';
/*
var img=pot.split('/');
var html=''+html+'<a href'+img[1]+'';
*/												
document.getElementById("showimage").innerHTML=''+html+'';												
document.getElementById("showimage").style.visibility="visible";
document.getElementById("me").style.visibility="hidden";
}

return true
}

function ferm()
{
showimage.style.visibility="hidden";
}
