function redirect()
{
location.href=document.rapide.acces.value;
}

function agrandir() {
  false;
}
function opennewwindow(page, nom, hauteur, largeur) {
options='height='+hauteur+',width='+largeur+',left=2, top=2,toolbar=no,scrollbars=yes';
newWindow=window.open(page, nom,options); 
}

function afficheMaxi(chemin)
	{
	Imageslim = new Image;
	Imageslim.src = chemin;
	titre='Jetsetmagazine.net';
	popupImage = window.open('','grande','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,height=10,width=10,left=0, top=0');
	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 onLoad="self.focus();">';
	html =html+'<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0"><tr>';
    html =html+'<td valign="middle"><table border="0" align="center" cellpadding="0" cellspacing="0"><tr>';
	html =html+'<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"><tr>';
	html =html+'<td align="left"><strong><img src="../../images/logo_min.gif" width="97" height="40" hspace="10" vspace="3"></strong></td>';
    html =html+'<td align="right" valign="bottom"><img src="../../images/url.gif" width="136" height="10" hspace="3" vspace="2"></td>';
    html =html+'</tr></table></td></tr><tr>';
    html =html+'<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"><tr>';
	html =html+'<td width="10" valign="top" background="../../images/bg_v.gif"><img src="../../images/coinv.gif" width="13" height="17" border="0"></td>';
   	html =html+'<td rowspan="2" bgcolor="#FFFFFF" class="photolarge"><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+50,document.imageTest.height+110);window.moveTo(100,100);self.focus();"></td>';
    html =html+'</tr><tr><td valign="bottom" background="../../images/bg_v.gif"><img src="../../images/coinfooter.gif" width="13" height="28" border="0" style="background-color:#292C33"></td></tr>';
    html =html+'</table></td></tr></table></td></tr></table></body></HTML>';      
      
		
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close();
	}

function Verifmail(formulaire)
{
	//alert(formulaire.email_newsletter.value);
	if(VerificationEmail(formulaire.email_newsletter) == false)

		{
		alert('Adresse e-mail invalide!!');
        formulaire.email_newsletter.focus();
		return false;		
		}
		else return true;
}


window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
	
if (d) {d.style.display='block';}

}

function chouf(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=15; i++) {
		if (document.getElementById('annee'+i)) {document.getElementById('annee'+i).style.display='none';}
	}
	
if (d) {d.style.display='block';}

}



function positionne(id) {
	
	var d = document.getElementById(id);
marge=(screen.width-953)/2+'px';
if (d) 
	{
	d.style.right=marge;
	d.style.display='block';
	}

}





function SwapOut(im)
{
	showCode(im);
	hideCode(im+'_on');
}
function SwapOver(im)
{
	hideCode(im);
	showCode(im+'_on');
}



function verifForm(formulaire)
{ 
///////////NOM
if(document.contact.nom.value == "")
 {
alert(' Entrez votre nom svp !!');
document.contact.nom.focus();
return false; 
 }
/////////PRENOM
if(document.contact.prenom.value == "")
 {
alert(' Entrez votre prénom svp !!');
document.contact.prenom.focus();
return false; 
 }
/////////Fonction
if(document.contact.fonction.value == "")
 {
alert(' Entrez votre fonction svp !!');
document.contact.fonction.focus();
return false; 
 }
 /////////societe
if(document.contact.societe.value == "")
 {
alert(' Entrez votre société svp !!');
document.contact.societe.focus();
return false; 
 }

    /////////tel
if(document.contact.tel.value == "")
 {
alert(' Entrez votre téléphone svp !!');
document.contact.tel.focus();
return false; 
 }
/////////////MAIL



	adresse = document.contact.mail.value;
	var place = adresse.indexOf("@",1);
	var point = adresse.indexOf(".",place+1);
	if ((place > -1)&&(adresse.length >2)&&(point > 1))
		{

}
	else
		{
		alert('Adresse email invalide!!');
        document.contact.mail.focus();
return false;		
}
	
if(document.contact.mail.value == "")
 {
alert(' Entrez votre adresse Email !!');
document.contact.mail.focus();
return false; 
 }
/////////SUJET
//if(document.contact.sujet.value == "")
 //{
//alert(' Choisissez l\'objet de votre message !!');
//document.contact.sujet.focus();
//return false; 
 //}
 /////////message
if(document.contact.message.value == "")
 {
alert(' Saisissez votre projet !!');
document.contact.message.focus();
return false; 
 }
if(document.contact.code.value == "")
 {
alert(' Recopiez le code svp  !!');
document.contact.code.focus();
return false; 
 }

else
return true;
}


function verifCand(formulaire)
{
	 ///////////NOM
if(document.contact.nom.value == "")
 {
alert(' Entrez votre nom svp !!');
document.contact.nom.focus();
return false; 
 }
/////////PRENOM
if(document.contact.prenom.value == "")
 {
alert(' Entrez votre prénom svp !!');
document.contact.prenom.focus();
return false; 
 }

/////////////MAIL



	adresse = document.contact.mail.value;
	var place = adresse.indexOf("@",1);
	var point = adresse.indexOf(".",place+1);
	if ((place > -1)&&(adresse.length >2)&&(point > 1))
		{

}
	else
		{
		alert('Adresse email invalide!!');
        document.contact.mail.focus();
return false;		
}
	
if(document.contact.mail.value == "")
 {
alert(' Entrez votre adresse Email svp  !!');
document.contact.mail.focus();
return false; 
 }
/////////tel
if(document.contact.tel.value == "")
 {
alert(' Entrez votre Numéro de téléphone svp  !!');
document.contact.tel.focus();
return false; 
 }
 /////////lettre
//if(document.contact.lettre.value == "")
// {
//alert(' Inserez votre lettre d\'accompagnement svp  !!');
//document.contact.lettre.focus();
//return false; 
// }
  /////////cv
//if(document.contact.cv.value == "")
// {
//alert(' Inserez votre CV svp  !!');
//document.contact.cv.focus();
//return false; 
// }
 /////////code
if(document.contact.code.value == "")
 {
alert(' Recopiez le code svp  !!');
document.contact.code.focus();
return false; 
 }

else
return true;
}
