function OpenBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { 
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}



//Link 1:
//This is the code for the popup window without any window attributes:

//<A href="javascript:;" onClick="OpenBrWindow('test.html','Test','','300','300','true')">

//Link 2:
//This is the code for the popup with all the window attributes turned on:

//<A href="javascript:;" onClick="OpenBrWindow('test.html','Test2','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes','400','350','true')">




/**
 * fw_menu 24OCT2000 Version 4.0
 * Houssein A Hersi, October 2000
 * Copyright (c) 2004 Microtech, Inc.
 
 * This software is provided "AS IS," without a warranty of any kind.
 */
function adipopup(adiurl,sizeh,sizev)
{
//	if (isNAN(posh)) {posh=100;}
//	if (isNAN(posv)) {posv=120;}
//	if ((posh=="")||(posv=="")) {var posh=100; var posv=120; }
var adipopup=window.open(adiurl,"ADI","toolbar=no,width="+sizeh+",height="+sizev+",directories=no,status=no,scrollbars=no,resizable=no,copyhistory=0,menubar=no,left=10,top=10");
}


//function right(e) {
//if (navigator.appName == 'Netscape' && 
//(e.which == 3 || e.which == 2))
//return false;
//else if (navigator.appName == 'Microsoft Internet Explorer' && 
//(event.button == 2 || event.button == 3)) {
//alert("Rappel : Vous n'avez pas la permission de copier!.");
//return false;
//}
//return true;
//}

//document.onmousedown=right;
//document.onmouseup=right;
//if (document.layers) window.captureEvents(Event.MOUSEDOWN);
//if (document.layers) window.captureEvents(Event.MOUSEUP);
//window.onmousedown=right;
//window.onmouseup=right;
// End -->




function MM_controlSound(x, _sndObj, sndFile) { //v3.0
  var i, method = "", sndObj = eval(_sndObj);
  if (sndObj != null) {
    if (navigator.appName == 'Netscape') method = "play";
    else {
      if (window.MM_WMP == null) {
        window.MM_WMP = false;
        for(i in sndObj) if (i == "ActiveMovie") {
          window.MM_WMP = true; break;
      } }
      if (window.MM_WMP) method = "play";
      else if (sndObj.FileName) method = "run";
  } }
  if (method) eval(_sndObj+"."+method+"()");
  else window.location = sndFile;
}

// JavaScript Document
var sAgent = navigator.userAgent
var bIs95NT 
   = sAgent.indexOf("Windows 95") > -1 
   || sAgent.indexOf("Windows NT")  > -1 
   || sAgent.indexOf("Win32")  > -1 
   || sAgent.indexOf("Windows 98")  > -1  
var bIsIE4 
   = (sAgent.indexOf("IE 4")  > -1 || sAgent.indexOf("IE 5") > -1) 
   && sAgent.indexOf("b1") <= -1 
   && sAgent.indexOf("p1") <= -1
                

var expdate = new Date ();
expdate.setTime (expdate.getTime() + (1000 * 60 * 60 * 24 * 365 * 2));





function check_form()
{

if (document.all.Dear.value == "")

{
		alert("SVP entrer votre Titre")

		return
}
if (document.all.Contact.value == "")

{
		alert("SVP entrer votre nom")

		return
}

if (document.all.Address.value == "")
{
		alert("SVP entrer votre adresse")
		return
}
if (document.all.City.value == "")
{
		alert("SVP entrer votre ville")
		return
}

if (document.all.Country.value == "")
{
		alert("SVP entrer votre pays")
		return
} 

if (document.all.email.value == "")
{
		alert("SVP entrer votre adresse Email")
		return
}
if (document.all.message.value == "")
{
		alert("SVP entrer votre message")
		return
}


	//checks out ok

	//setCookie('newguy', 'yes', expdate);
	//document.all.form1.method = "post";
	//document.all.form1.action = "?c=envoi_form.php&t=1&sujet=Contact";
	document.all.form1.submit()
	return;
	
}

function emailCheck()
{
  txt=document.form1.email.value;
  if (txt.indexOf("@")<3){
   alert("I'm sorry. This email address is invalid. Please"
   +" check the prefix and '@' sign.");
   return false;
  }
  return true;
 }	
 