
var wRText,wLexique,wCommunes,wAide;function openWindow(w_name,w_url,w_width,w_height,w_resizable)
{if(!w_width)w_width=640;if(!w_height)w_height=480;if(!w_resizable)w_resizable='yes';return window.open(w_url,w_name,'location=no,directories=no,status=no,menubar=no,width='+w_width+',height='+w_height+',scrollbars=yes,resizable='+w_resizable);}
function closeMe()
{if(window.opener)window.opener.focus();window.close();}
function checkForm(frm)
{if(frm.activite.options[frm.activite.selectedIndex].value=='0')
{window.alert('Veuillez choisir la branche d\'activité de l\'entreprise !');frm.activite.focus();return false;}
if(frm.departement.selectedIndex==0)
{window.alert('Veuillez choisir le département d\'implantation de l\'entreprise !');frm.departement.focus();return false;}
if(frm.elements['domaines[]'])
{var c=0;for(i=0;i<frm.elements['domaines[]'].length;i++)
{if(frm.elements['domaines[]'][i].checked)c++;}
if(c==0)
{window.alert('Veuillez choisir au moins un projet !');frm.elements['domaines[]'][0].focus();return false;}}
return true;}
function resetForm(frm)
{}
function checkSelect(fld)
{if((fld.selectedIndex!=0)&&(fld.options[fld.selectedIndex].value=='0'))
{fld.selectedIndex=0;}}
function listeCommunes(departement,commune)
{if(departement=='0')
{window.alert('Veuillez choisir le département d\'implantation de l\'entreprise !');frm.departement.focus();return false;}
wCommunes=openWindow('communes','./communes.php?departement='+departement+'&lettre='+commune,400,400,'no');}
function chooseCommune(commune)
{document.frmQuestion.commune.value=commune;}
function showFiche(id)
{wFiche=openWindow('produit','./fiche.php?id='+id,680,600,'yes');}
function themeAide(theme,aideID)
{wAide=openWindow('aide','./theme_aide.php?theme='+theme+'&aide='+aideID,640,480,'no');}