<!--
// réalisé par D. Heiderich (c) 1999 - 2004 

NewWinR = null;
function translate_Text_To_Url(texte)
{ espace = texte.indexOf(" ");
 while ((espace < texte.length - 1) && (espace != -1))
 { temp_1 = texte.substring(0, espace);
  temp_2 = texte.substring(espace+1,texte.length);
  texte = temp_1 + "+" + temp_2;
  espace = texte.indexOf(" ");
 }
 return texte;
}
// Ouverture d'une nouvelle fenêtre
// Test du navigateur

// variable globale
var NewWin = null;
var NewWinM = null;

function VersionNavigateur(Netscape, Explorer) {
 if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') || (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft')){
 	return true;
 } else {
 return false;
 }
}

function NewWindow(text,w,h)
{
  if (!VersionNavigateur(3.0,3.0)) return;
  if (NewWin!=null) { if (NewWin.closed==false) NewWin.close(); };
  NewWin = window.open(text,"CCwin",'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+w+',height='+h);
}

function OpenMap(text,w,h)
{
  if (!VersionNavigateur(3.0,3.0)) return;
  if (NewWinM!=null) { if (NewWinM.closed==false) NewWinM.close(); };
  NewWinM = window.open(text,"CCwinM",'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+w+',height='+h);
}





function RechercheWindow()
{ 
if (NewWinR!=null) NewWinR.close();
chaine = document.forms.recherche.s.value;
   URLdeRecherche ="http://www.google.fr/search?as_q="+chaine+"&num=100&btnG=Recherche+Google&as_epq=&as_oq=&as_eq=&lr=&as_ft=i&as_filetype=&as_qdr=all&as_occt=any&as_dt=i&as_sitesearch=communication-crise.com";
  Adresse = translate_Text_To_Url(URLdeRecherche);
    NewWinR = window.open(Adresse,'','toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=680,height=300'); 
}
//-->
