function tryIt(theForm){

if (theForm.prefix.selectedIndex <= 0){
    alert("Please make a choice for the \"Prefix\" field.");
    theForm.prefix.focus();
    return (false);
  }

if (theForm.firstName.value == ""){

    alert("Please enter a value for the \"First name\" field.");
    theForm.firstName.focus();
    return (false);
  }
if (theForm.lastName.value == ""){
    alert("Please enter a value for the \"Last name\" field.");
    theForm.lastName.focus();
    return (false);
}
if (theForm.emailAdresse.value.indexOf("@") == -1){
    alert("Please enter a value for the \"E-Mail address\" field. (Must be valid and contain an @ symbol)");
    theForm.emailAdresse.focus();
    return (false);
  }
if (theForm.company.value == ""){
    alert("Please enter a value for the \"Company\" field.");
    theForm.company.focus();
    return (false);
  }
if (theForm.phone.value.length  < 10){
    alert("Please enter a value for the \"Telephone\" field. (10 digits minimum. Include country code, city code, and area code where applicable)");
    theForm.phone.focus();
    return (false);
  }
if (theForm.title.value == ""){
    alert("Please enter a value for the \"Title\" field.");
    theForm.title.focus();
    return (false);
  }
if (theForm.streetAdress.value==""){
    alert("Please enter a value for the \"Street address\" field.");
    theForm.streetAdress.focus();
    return (false);
  }
if (theForm.city.value == ""){
    alert("Please enter a value for the \"City\" field.");
    theForm.city.focus();
    return (false);
  }
if (theForm.stateProvince.selectedIndex <= 0){
    alert("Please make a choice for the \"State / Province\" field.");
    theForm.stateProvince.focus();
    return (false);
  }
if (theForm.country.selectedIndex <= 0){
    alert("Please make a choice for the \"Country\" field.");
    theForm.country.focus();
    return (false);
  }
if (theForm.codePostal.value == ""){
    alert("Please enter a value for the \"Zip / Postal code\".");
    theForm.codePostal.focus();
    return (false);
  }
if (theForm.Quand.selectedIndex <= 0){
    alert("Please make a choice for the \"When can one of our representatives call you to set up an on-line demo?\" field.");
    theForm.Quand.focus();
    return (false);
  }
if (theForm.fuseau.selectedIndex <= 0){
    alert("Please make a choice for the \"Time zone\" field.");
    theForm.fuseau.focus();
    return (false);
  }
if(!theForm.question1[0].checked && !theForm.question1[1].checked && !theForm.question1[2].checked &&!theForm.question1[3].checked && !theForm.question1[4].checked){
    alert("Please make a choice for the question \"Your needs for a GEObroadcasting solution is...\" ");
    theForm.question2[0].focus();
    return (false);
  }

 if(!theForm.question2[0].checked && !theForm.question2[1].checked && !theForm.question2[2].checked){
    alert("Please make a choice for the question \"Which of the following best describes you and your needs?\" ");
    theForm.question2[0].focus();
    return (false);
  }
if (theForm.question3.selectedIndex <= 0){
    alert("Please make a choice for the question \"Where did you hear about Push'n'See?\" ");
    theForm.question3.focus();
    return (false);
  }


return true;	
}

function question(theForm){

    if (theForm.From_Fname.value == ""){
    alert("Please enter a value for the \"First name\" field.");
        theForm.From_Fname.focus();
        return (false);
      }
	  
    if (theForm.From_Lname.value == ""){
    alert("Please enter a value for the \"Last name\" field.");
        theForm.From_Lname.focus();
        return (false);
    }
	
    
   if (theForm.From_email.value.indexOf("@") == -1){
    alert("Please enter a value for the \"E-Mail address\" field. (Must be valid and contain an @ symbol)");
        theForm.From_email.focus();
        return (false);
     }     
    if (theForm.question1.selectedIndex <= 0){
        alert("Please make a choice for the \"Tell us about your organization\" field.");
    theForm.question1.focus();
    return (false);
  }
  if (theForm.question2.selectedIndex <= 0){
    alert("Please make a choice for the question \"Where did you hear about Push'n'See?\" ");
    theForm.question2.focus();
    return (false);
  }
	
	if (theForm.commentaire.value.length == 0){
        alert("Please enter a value for the \"Questions or comments\" field.");
        theForm.commentaire.focus();
        return (false);
    }
    

	
      return true;
}


function informez_moi(theForm){
   if (theForm.From_email.value.indexOf("@") == -1){
    alert("Please enter a value for the \"E-Mail address\" field. (Must be valid and contain an @ symbol)");
        theForm.From_email.focus();
        return (false);
     }     
return true;

}
function support()
	{
    if (theForm.From_Fname.value == ""){
    alert("Please enter a value for the \"First name\" field.");
        theForm.From_Fname.focus();
        return (false);
      }
	  
    if (theForm.From_Lname.value == ""){
    alert("Please enter a value for the \"Last name\" field.");
        theForm.From_Lname.focus();
        return (false);
    }

    if (theForm.From_Company.value == ""){
    alert("Please enter a value for the \"Company\" field.");
        theForm.From_Company.focus();
        return (false);
    }
	 if (theForm.From_email.value.indexOf("@") == -1){
    alert("Please enter a value for the \"E-Mail address\" field. (Must be valid and contain an @ symbol)");
        theForm.From_email.focus();
        return (false);
     }     
if (theForm.Description.value.length == 0){
    alert("Please enter a value for the \"Description of the situation or problem\" field.");
        theForm.Description.focus();
        return (false);
    }
    


return true;
	}
	
function Send_FRIEND()
	{
	flag=true;
	if (document.formulaire.fromEmail.value =="")
			{
			alert("Please enter a value for \"Your email\" field. (Must be valid and contain an @ symbol)");
			document.formulaire.fromEmail.focus()
			return false;
			}
		else
			{
			 if ((document.formulaire.fromEmail.value.indexOf('@') == -1) ||  (document.formulaire.fromEmail.value.indexOf('.') == -1)) 
			 		{
					alert("Please enter a value for \"Your email\" field. (Must be valid and contain an @ symbol)");
					document.formulaire.fromEmail.focus();
					return false;
					}
			
			}
			
	if (document.formulaire.toEmail.value =="")
			{
			alert("Please enter a value for the \"Recipient email\" field. (Must be valid and contain an @ symbol)");
			document.formulaire.toEmail.focus();
			return false;
			}
		else
			{
			 if ((document.formulaire.toEmail.value.indexOf('@') == -1) ||  (document.formulaire.toEmail.value.indexOf('.') == -1)) 
			 		{
					alert("Please enter a value for the \"Recipient email\" field. (Must be valid and contain an @ symbol)");
					document.formulaire.toEmail.focus();
					return false;
					}
			
			}
			
	

			if (valw==1){
			
			 	if (document.formulaire.toEmail1.value!="")
					{
			 		if ((document.formulaire.toEmail1.value.indexOf('@') == -1) ||  (document.formulaire.toEmail1.value.indexOf('.') == -1)) 
			 			{
						alert("Please enter a value for the \"E-Mail address\" field. (Must be valid and contain an @ symbol)");
						document.formulaire.toEmail1.focus();
						return false;
						}
			    	}
					
    		 	if (document.formulaire.toEmail2.value!="")
					{
					if ((document.formulaire.toEmail2.value.indexOf('@') == -1) ||  (document.formulaire.toEmail2.value.indexOf('.') == -1)) 
				 		{
						alert("Please enter a value for the \"E-Mail address\" field. (Must be valid and contain an @ symbol)");
						document.formulaire.toEmail2.focus();
						return false;
						}
					}
				}
		


	return flag;
	}

function Soumission(theForm){

if (theForm.prefix.selectedIndex <= 0){
    alert("Please make a choice for the \"Prefix\" field.");
    theForm.prefix.focus();
    return (false);
  }

if (theForm.firstName.value == ""){

    alert("Please enter a value for the \"First name\" field.");
    theForm.firstName.focus();
    return (false);
  }
if (theForm.lastName.value == ""){
    alert("Please enter a value for the \"Last name\" field.");
    theForm.lastName.focus();
    return (false);
}
if (theForm.emailAdresse.value.indexOf("@") == -1){
    alert("Please enter a value for the \"E-Mail address\" field. (Must be valid and contain an @ symbol)");
    theForm.emailAdresse.focus();
    return (false);
  }
if (theForm.company.value == ""){
    alert("Please enter a value for the \"Company\" field.");
    theForm.company.focus();
    return (false);
  }
if (theForm.phone.value.length  < 10){
    alert("Please enter a value for the \"Telephone\" field. (10 digits minimum. Include country code, city code, and area code where applicable)");
    theForm.phone.focus();
    return (false);
  }
if (theForm.title.value == ""){
    alert("Please enter a value for the \"Title\" field.");
    theForm.title.focus();
    return (false);
  }
if (theForm.streetAdress.value==""){
    alert("Please enter a value for the \"Street address\" field.");
    theForm.streetAdress.focus();
    return (false);
  }
if (theForm.city.value == ""){
    alert("Please enter a value for the \"City\" field.");
    theForm.city.focus();
    return (false);
  }
if (theForm.stateProvince.selectedIndex <= 0){
    alert("Please make a choice for the \"State / Province\" field.");
    theForm.stateProvince.focus();
    return (false);
  }
if (theForm.country.selectedIndex <= 0){
    alert("Please make a choice for the \"Country\" field.");
    theForm.country.focus();
    return (false);
  }
if (theForm.codePostal.value == ""){
    alert("Please enter a value for the \"Zip / Postal code\".");
    theForm.codePostal.focus();
    return (false);
  }

if (theForm.Deploi[0].checked != true &&  theForm.Deploi[1].checked  !=true && theForm.Deploi[2].checked  !=true){
    alert("Please make a choice for the \"What are your deployment/GEObroadcasting needs?\".");
    theForm.Deploi[0].focus();
    return (false);
  }

if (theForm.usager.selectedIndex <= 0){
    alert("Please make a choice for the \"How many known and named users will have access to your cartographic applications?\" ");
    theForm.usager.focus();
    return (false);
  }
if (theForm.NbProce.selectedIndex <= 0){
    alert("Please make a choice for the \"How many CPUs are present on the application server on which Push'n'See will be installed?\" ");
    theForm.NbProce.focus();
    return (false);
  }

if(!theForm.question1[0].checked && !theForm.question1[1].checked && !theForm.question1[2].checked &&!theForm.question1[3].checked && !theForm.question1[4].checked){
    alert("Please make a choice for the question \"Your needs for a GEObroadcasting solution is...\" ");
    theForm.question1[0].focus();
    return (false);
  }

if (theForm.question3.selectedIndex <= 0){
    alert("Please make a choice for the question \"Where did you hear about Push'n'See?\" ");
    theForm.question3.focus();
    return (false);
  }

for (var x=0;x<3;x++)
	{
	
	if (theForm.Deploi[x].checked==true)
		theForm.DeploiTotal.value=theForm.DeploiTotal.value+" "+theForm.Deploi[x].value;
}
return true;	
}	