// JavaScript Document
var NavName=navigator.appName;
var NavVer=new String(navigator.appVersion);
var NavVersion=(NavVer.split(".")[0]);
function zoomImage($1) {
oWin = window.open($1,'Image','locationbar=no,toolbar=no,status=no,resizable=1');
oWin.focus();
}
var gSectionTitle = "";
var gSection = "";
var gPage = "";
var gImage = "";
var gNoLeft = false;
var gNoRight = true;
var gMenu = new Array();
function setMenu() {
  gMenu["Home"] = new menuObject("Home","index.html");   
  //gMenu["Products"] = new menuObject("Produits","products.html");
  //gMenu["Services"] = new menuObject("Services","services.html");
  //gMenu["About"] = new menuObject("A propos de Teamonweb","about.html"); 
}
function buildMenu() {
  setMenu();
  var Str = "";
  document.write('<TABLE cellSpacing=0 cellPadding=0 width=750 align=center bgColor=#0e2c53 border=0>');
  document.write('<TBODY><TR><TD><IMG height=16 src="files/x.gif" width=15></TD>');  
  
  for (p in gMenu) {
    document.write('<TD noWrap><A class=Menu onmouseover="window.status=');
    document.write("'"+gMenu[p].status+"';return true\"  onmouseout=\"window.status=''; return true\"");
    document.write('href="'+gMenu[p].url+'">'+gMenu[p].title+'</a></td>');    
    document.write('<TD><IMG height=16 src="files/x.gif" width=16></TD>');    
  }
  document.write('<td width=100%>&nbsp;</td></TR></TBODY></TABLE>');
}
function menuObject($1,$2,$3){
	this.name=$1;
	this.title=$1;
	this.status = $1;
	this.url = $2;
	this.image = $3;
	//this.url = "index.htm";
}
var gTools = new Array();
function setTools() {
  //gTools["Extranet"] = new menuObject("Extranet","extranet.html");
  //gTools["FAQ"] = new menuObject("FAQ","faq.html");
  //gTools["SiteMap"] = new menuObject("Site map","sitemap.html");  
  gTools["Contact"] = new menuObject("Contact","contact.html"); 
}
function buildTools() {
  setTools();
  var Str = "";
  document.write('<TABLE cellSpacing=0 cellPadding=0 width=750 align=center bgColor=#cc2700 background=files/backtop.gif border=0>');
  document.write('<TBODY><TR vAlign=top><TD width=520><IMG height=16 src="files/x.gif" width=435></TD>'); 
  for (p in gTools) {
    document.write('<TD noWrap><A class=Tools onmouseover="window.status=');
    document.write("'"+gTools[p].status+"';return true\"  onmouseout=\"window.status=''; return true\"");
    document.write('href="'+gTools[p].url+'">'+gTools[p].title+'</a></td>');    
    document.write('<TD><IMG height=16 src="files/x.gif" width=16></TD>');    
  }
  document.write('</TR></TBODY></TABLE>');
}
function buildTop() {
document.write('<TABLE cellSpacing=0 cellPadding=0 width=750 height=55 align=center bgColor=#0e2c53 border=0>');
document.write('<TBODY><TR>');  
document.write('<TD><A ');
document.write(' href="http://www.teamonweb.com"><IMG aheight=43 src="files/banner-blue.png" awidth=210 border=0></A><IMG height=43 src="files/x.gif" width=340></TD></TR></TBODY></TABLE>');         
}
var gLeft = new Array();
function setLeft($1) {  
  switch ($1) {
    case 'fr':
			gLeft["Home"] = new menuObject("Home","index.htm");
			gLeft["Products"] = new menuObject("Products","products.htm");
		  gLeft["Services"] = new menuObject("Services","services.htm");		
			break;
	case 'Products':
	   gSectionTitle = "Produits";
	   //gLeft["Village"] = new menuObject("Village","village.html");
		 gLeft["DocManager"] = new menuObject("Document Manager","docmanager.html");
		 gLeft["Collaboration"] = new menuObject("Collaboration","collaboration.html");
		 gImage = "images/business.jpg";
		 //gLeft["BPM"] = new menuObject("BPM","bpm.html");		 
		 //gLeft["Framework"] = new menuObject("Architecture","framework.html");
		 break;
	case 'Services':
	   gSectionTitle = "Services";
	   gLeft["Factory"] = new menuObject("Factory","factory.html");
		 gLeft["OnDemand"] = new menuObject("On Demand","ondemand.html");
	   gImage = "images/consulting.jpg";
	   break;
	case 'Contact':
	   gSectionTitle = "Contact";
	   gImage = "images/coolman.jpg";
	   break;
	 case 'Sitemap':
	   gSectionTitle = "Sitemap";
	   gImage = "images/boussole.jpg";
			break;
	case 'RequestInfo':
	   gSectionTitle = "Demande d''information";
	   gImage = "images/requestinfo.jpg";
			break;
	 case 'About':
	   gSectionTitle = "A propos de Teamonweb";
	   gLeft["Project"] = new menuObject("Vision","about.html");	   
		 //gLeft["OpenSource"] = new menuObject("Open Source","opensource.html");
		 gLeft["Partners"] = new menuObject("Partenaires","partners.html");
		 //gLeft["Comunity"] = new menuObject("La communauté","Comunity.html");
		 gImage = "images/vision.gif";
			break;
  }  
}
function buildLeft($1) {
  setLeft($1);
  var str="";
  if (gImage!="") {
    str+='<TABLE cellSpacing=0 cellPadding=0 awidth=180 abackground="files/backparts_right.gif" border=0>';
    str+='<TBODY><TR>';
     str+='<td align=center><img src="'+gImage+'"></td>';
    str+='</TR></TBODY></TABLE>';
    str+='<TABLE cellSpacing=0 cellPadding=0 width=149 border=0>';
    str+='<TBODY><TR>';
    str+='<td><aimg height=1 src="files/x.gif" width=149></TD>';
    str+='</TR></TBODY></TABLE>';   
  }
  str+='<div style="margin:5px 0px 2px 1px;" class=SectionTitle>&nbsp;&nbsp;'+gSectionTitle+'</div>';

  for (p in gLeft) {   
     str+='<div style="margin:5px 14px 2px 15px;"><A onmouseover="window.status=';
    str+="'"+gLeft[p].status+"';return true\" onmouseout=\"window.status=''; return true\"";
    str+=" href=\""+gLeft[p].url+"\"><span class=PartsLink>"+gLeft[p].title;
    str+='</span></a></div>';    
  }
   /*
 for (p in gLeft) {
    str+='<TABLE abgcolor=#efefef cellSpacing=0 cellPadding=0 width=180 border=0>';
    str+='<TBODY><TR>';
     str+='<td background="files/x.gif" abgcolor=#FFFFFF width=124><A onmouseover="window.status=';
    str+="'"+gLeft[p].status+"';return true\" onmouseout=\"window.status=''; return true\"";
    str+=" href=\""+gLeft[p].url+"\"><span class=PartsLink>"+gLeft[p].title;
    str+='</span></a><br><img src="files/x.gif" width=1 height=6><br></td><td width=6 valign=top><img aheight=29 src="files/x.gif" width=6></TD>';
    str+='</TR></TBODY></TABLE>'; 
  }
  */
      str+='<TABLE cellSpacing=0 cellPadding=0 width=149 border=0>';
    str+='<TBODY><TR>';
    str+='<td><img height=1 src="files/x.gif" width=149></TD>';
    str+='</TR></TBODY></TABLE>';
    
  for (var i = 0; i < gMyRight.length; i++) {	
    str+='<br><div align=center>';
    //str+='<TD WIDTH=10><IMG SRC="files/picto2.gif" WIDTH=10 HEIGHT=11></TD>';
    str+='<A onmouseover="window.status=';    
    str+="'"+gRight[gMyRight[i]].status+"';return true\" onmouseout=\"window.status=''; return true\"";
    str+=" href=\""+gRight[gMyRight[i]].url+"\"><span class=CompletLink>";
    if (gRight[gMyRight[i]].image) {
      str+="<img src=\""+gRight[gMyRight[i]].image+"\" border=0>";
    } else {
      str+=gRight[gMyRight[i]].title;
    }    
    str+='</span></div>'; 
  }
  document.write(str);
}
var gRight = new Array();
gRight["RequestDemo"] = new menuObject("Demande d&rsquo;information","requestinfo.html","images/requestdemo.png");
gRight["RequestInfo"] = new menuObject("Demande d&rsquo;information","contact.html","images/requestinfo.png");
gRight["Propal48h"] = new menuObject("Demande d&rsquo;information","requestinfo.html","images/propal48h.png");
var gMyRight = new Array();
function setRight($1) {   
  switch ($1) {
    case 'Home':
			gMyRight = Array("RequestInfo","Propal48h");
			break;
    case 'Products':      
			gMyRight = Array("RequestDemo");
			break;
		case 'Services':      
			gMyRight = Array("Propal48h");
			break;
		case 'About':      
			gMyRight = Array("RequestInfo");
			break;
    case 'Contact':      
			gMyRight = Array("RequestInfo");
			break;		
  }  
}
function buildRight($1) {
  
  var str="";
  /*
  if (gImage!="") {
    str+='<TABLE cellSpacing=0 cellPadding=0 width=150 abackground="files/backparts_right.gif" border=0>';
    str+='<TBODY><TR>';
     str+='<td align=center><img src="'+gImage+'"></td>';
    str+='</TR></TBODY></TABLE>';
    str+='<TABLE cellSpacing=0 cellPadding=0 width=149 border=0>';
    str+='<TBODY><TR>';
    str+='<td><aimg height=1 src="files/x.gif" width=149></TD>';
    str+='</TR></TBODY></TABLE>';   
  }
  */
  /*
  str += "<TABLE BACKGROUND=\"files/x.gif\" BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=145 ALIGN=CENTER>";
  str += "<tbody><TR><TD COLSPAN=2><IMG SRC=\"files/x.gif\" WIDTH=1 HEIGHT=12><BR></TD></TR>";
  for (var i = 0; i < gMyRight.length; i++) {	
    str+='<TR VALIGN=TOP>';    
    str+='<td width=145><A onmouseover="window.status=';    
    str+="'"+gRight[gMyRight[i]].status+"';return true\" onmouseout=\"window.status=''; return true\"";
    str+=" href=\""+gRight[gMyRight[i]].url+"\"><span class=CompletLink>";
    if (gRight[gMyRight[i]].image) {
      str+="<img src=\""+gRight[gMyRight[i]].image+"\" border=0>";
    } else {
      str+=gRight[gMyRight[i]].title;
    }    
    str+='</span></td></tr>';
    str += "<TR><TD COLSPAN=2><IMG SRC=\"files/x.gif\" WIDTH=1 HEIGHT=12><BR></TD></TR>";    
  }
  str+='</TBODY></TABLE>';
  */
  document.write(str);
}
function buildBeforeBody($1) {
  setRight($1);
  document.write("<IMG height=10 src=\"files/x.gif\" width=1>");
  document.write("<BR>");
  buildTools();
  buildTop();
  buildMenu();  
  document.write("<TABLE cellSpacing=0 cellPadding=0 width=750 align=center abgcolor=pink bgColor=#ffffff border=0>");
  document.write("<TBODY>");
  document.write("<TR vAlign=top>");
  document.write("<TD align=left>");
  document.write("<TABLE abgcolor=green cellSpacing=0 cellPadding=0 width=150 border=0>");
  document.write("<TBODY>");
  document.write("<TR>");
  document.write("<TD><IMG height=5 src=\"files/topparts.gif\" width=150 border=0></TD>");
  document.write("</TR>");
  document.write("</TBODY>");
  document.write("</TABLE>");
  document.write("</TD>");
  document.write("<TD width=600 align=left>");
  document.write("<TABLE  abgcolor=orange cellSpacing=0 cellPadding=0 width=600 border=0>");
  document.write("<TBODY>");
  document.write("<TR>");
  document.write("<TD><IMG height=5 src=\"files/backtop_white.gif\" width=600 border=0></TD>");
  document.write("</TR>");
  document.write("</TBODY>");
  document.write("</TABLE>");
  document.write("</TD>");
  document.write("</TR>");
  document.write("</TBODY>");
  document.write("</TABLE>");
  document.write("<TABLE style=\"adisplay:none;\" cellSpacing=0 cellPadding=0 width=750 align=center abgcolor=pink bgColor=#ffffff border=0>");
  document.write("<TBODY>");
  document.write("<TR vAlign=top>");
  if (gNoLeft) {
    //document.write("<TD colspan=3 width=155>");
    
    //document.write("</TD>");
    //document.write("<TD width=1 background=files/backparts_left.gif>");
    //document.write("<IMG height=1 src=\"files/x.gif\" width=1>");
    //document.write("</TD>");
    //document.write("<TD width=5 background=files/x.gif>");
    //document.write("</TD>");
    if (gNoRight) {
      document.write("<TD abgcolor=yellow width=750>");  
    }
    else {
      document.write("<TD abgcolor=yellow width=600>");  
    }    
  }
  else {
    document.write("<TD bgcolor=\"#F1F1F1\" background=\"files/leftnavbg.gif\" width=180>");
    buildLeft($1);
    document.write("</TD>");
    document.write("<TD width=1 abackground=files/backparts_left.gif>");
    document.write("<IMG height=1 src=\"files/x.gif\" width=1>");
    document.write("</TD>");
    document.write("<TD width=5 background=files/x.gif>");
    document.write("</TD>");
    document.write("<TD abgcolor=yellow awidth=450>");
  }
  /*   
  if (gSectionTitle!="") {
     document.write("<TABLE width=450 BORDER=0 CELLPADDING=0 CELLSPACING=0 ALIGN=CENTER><TR><TD WIDTH=10><IMG SRC=files/x.gif WIDTH=10 HEIGHT=1></TD><TD class=SectionTitle><IMG SRC=files/x.gif WIDTH=1 HEIGHT=6><br>");
     document.write(gSectionTitle);
     document.write("<br><IMG SRC=files/x.gif WIDTH=1 HEIGHT=4></td></tr>");
     document.write("<TR><TD colspan=2 background=files/alineparts.gif></TD></TR>");
     document.write("</table>");
  }
  */
}

function buildAfterBody($1) {
  document.write("<br><IMG SRC=files/x.gif WIDTH=1 HEIGHT=8></TD>");  
  if (gNoRight) {
  } else {
    document.write("<TD width=5 background=files/x.gif>");  
    document.write("</TD>");
    document.write("<TD width=1 background=files/backparts_left.gif>");  
    document.write("<IMG height=1 src=files/x.gif width=1>");
    document.write("</TD>");  
    document.write("<TD width=150 BGCOLOR=#F7F7F4>");
    buildRight($1);
    document.write("</TD>");
  }    
  document.write("</TR>");
  document.write("</TBODY>");  
  document.write("</TABLE>");
  document.write("<TABLE cellSpacing=0 cellPadding=0 width=750 align=center bgColor=#000000 border=0>");  
  document.write("<TBODY>");
  document.write("<TR>");  
  document.write("<TD><IMG height=5 src=files/x.gif width=750 border=0></TD></TR></TBODY></TABLE>");
  document.write('<TABLE abgcolor=green BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=750 ALIGN=CENTER>');
document.write('<TR>');
document.write('<TD WIDTH=200 ALIGN=LEFT NOWRAP><SPAN CLASS=Copyright></SPAN></TD>');
document.write('<TD WIDTH=350><IMG SRC=files/x.gif WIDTH=350 HEIGHT=20></TD>');
//document.write('<TD  WIDTH=92 ALIGN=RIGHT NOWRAP><A HREF="copyright/index.html" onMouseOver="window.status=\'Copyright &copy; 2005\';return true;" onMouseOut="window.status=\'\'; return true"><SPAN CLASS=Copyright>Copyright &copy;</A></SPAN></TD>');
document.write('<TD WIDTH=190 ALIGN=RIGHT NOWRAP><SPAN CLASS=Copyright>Copyright &copy; Teamonweb</SPAN></TD>');
document.write('<TD WIDTH=10><IMG SRC=files/x.gif WIDTH=10 HEIGHT=20></TD>');
document.write('</TR>');
document.write('</TABLE>');
  document.write("");  
}
var gCheckFields = new Array();
gCheckFields["LastName"] = "Merci de renseigner : Nom";
//gCheckFields["FirstName"] = "Merci de renseigner : Prénom";
//gCheckFields["Function"] = "Merci de renseigner : Fonction";
gCheckFields["Company"] = "Merci de renseigner : Société";
gCheckFields["Phone"] = "Merci de renseigner : Téléphone";
gCheckFields["City"] = "Merci de renseigner : Ville";
gCheckFields["Country"] = "Merci de renseigner : Pays";
gCheckFields["Email"] = "Merci de renseigner : Email";
function doSubmit() {
  var form = document.forms[0];
  var pField;
  var pFieldName;
  var pValue;
  var isOK=true; 
  if (form["LastName"].value != "Test") {
    for (p in gCheckFields) {
      pFieldName = p;
      pField = form[pFieldName];
      if (pField) {
        pValue = pField.value;
        if (pValue=="") {
          alert(gCheckFields[pFieldName]);          
          pField.focus();
          isOK = false;
          return false;
        }
      }    
    }
  }
  if (isOK) form.submit();
}

