function redirect()
{
location.href="article.php?id_article="+document.acces.id_fast.value;
}

function agrandir() {
  false;
}

function openNewWindow(page, hauteur, largeur) {
options='height='+hauteur+',width='+largeur+',left=2, top=2,toolbar=no,scrollbars=yes';
newWindow=window.open(page, '_blank',options); 
}

function afficheMaxi(chemin,couleur)
	{
	Imageslim = new Image;
	Imageslim.src = chemin;
	titre='Sotefi - Selecta';
	popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,height=10,width=10,left=1000, top=1000');
	html = '<HTML><HEAD><TITLE>'+titre+'</TITLE><link href="../../styles/styles.css" rel="stylesheet" type="text/css"></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><table width="100%" height="100%" cellspacing=0 cellpadding=0><tr><td align="center" valign="middle">';
	html =html+'<table border=0 cellspacing=0 cellpadding=0 align=center><tr><td class="picture-cell"><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+60,document.imageTest.height+100);window.moveTo(100,100);"></td></tr>';
	html=html+'<tr><td><table width="100%" cellspacing=0 cellpadding=0><tr><td align="left" valign="top" ><img src="../../images/coin_left_bot.gif" width="14" height="15"></td><td class="footer-picture" width="100%" align="right"></td><td align="right"><img src="../../images/coin_right_bot.gif" width="15" height="15"></td></tr><tr><td></td><td align="right" class="txt" height="20"><a href="#" onClick="javascript:window.close()"><img src="../../images/fermer.gif" hspace="4" border="0"></a></td><td></td></tr></table></td></tr>';
	html=html+'</table></td></tr></table>';
	html=html+'</BODY></HTML>';
	
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close();
	}

function Verifmail()
{

	adresse = document.mailing.email.value;
	var place = adresse.indexOf("@",1);
	var point = adresse.indexOf(".",place+1);
	if ((place > -1)&&(adresse.length >2)&&(point > 1))
		{
		openNewWindow('mailing_rep.php?email='+document.mailing.email.value+'','215','440');
		return false;
		}
	else
		{
		alert('Adresse e-mail invalide!!');
        document.mailing.email.focus();
		return false;		
		}
}
