<!-- ignore for non-javascript browsers
   function showProgress(bVisible)
   {
    //document.all.divProgress.style.top=document.body.offsetHeight/2 - document.all.divProgress.offsetHeight/2;
    document.all.divProgress.style.top=document.body.offsetTop + 135;
    //document.all.divProgress.style.left=document.body.offsetWidth/2 - document.all.divProgress.offsetWidth/2;
    document.all.divProgress.style.left=document.body.offsetLeft + 275;
    //NOTE: Display (doesn't take space) is not used here.  divProgress is positioned absolute, and visibility (takes space) is only needed.
    if(bVisible)
    {
     document.all.divProgress.style.visibility="visible";
    }
    else
    {
     document.all.divProgress.style.visibility="hidden";
    }
   }
   
   
   //Validate form before submit - French
   function CheckForm(form) {
               var check="", sComment, i, sUrl, iUrlIndex;
       try {        
               //FOR CANADA, ALPHA NUMERIC IS ALLOWED if (!IsOnlyNumeric(form.xzipofactivity.value,false))
               //{
               //   check=check + "\nLe code postal doit être numérique.";
               //}
               
               //Must enter zip code, or city and state
               //if (IsOnlyNumeric(form.xzipofactivity.value,true) || (form.xstateofactivity.selectedIndex >=1 && StripEnds(form.xcityofactivity.value)>""))
               if ((StripEnds(form.xzipofactivity.value)>"") || (form.xstateofactivity.selectedIndex >=1 && StripEnds(form.xcityofactivity.value)>""))
               {
                //Entered required fields
               }
               else
                  check=check+ "\nLe code postal, ou la ville et la province sont exigés.";
   
               //if ((form.xstateofactivity.selectedIndex>=1) && (StripEnds(form.xcityofactivity.value) == ''))
               //   check=check + "\nState selected, but no city entered.";
               if (IsOnlyNumeric(form.xradius.value,false))
               {
                if (parseInt(form.xradius.value) > 100) 
                  check=check + "\nRadius is limited to 100 miles.";
               }
               if (!IsOnlyNumeric(form.xradius.value, false))
               {
                  check=check + "\nLe rayon est limité à 100 milles.";
               }
               if (!IsOnlyNumeric(form.xagegroupid.value, false))
               {
                  check=check + "\nLa catégorie d'âge doit être la position jusqu'à 2 numérique.";
               }   
               if (check != "") {
                  check="Veuillez vérifier les champs suivants:\n " + check;
                  alert(check);
                  return false;
               }
               else {
                  return true;
               }
	}
	catch(e) {
               //alert(e.description);
	}
   }

   function CheckGotoPage(iValue, iTotalPages)
   {
	 //NOTE: isNaN(iValue) isn't supported by NS 3 (it still gives a non numeric value when called), so use our own function IsOnlyNumeric in tasklogic.js.
	 var msg;
	 msg='Numéro de page inadmissible!\n\nVeuillez écrire un nombre entre 1 et ' + iTotalPages + ' pages dans le domaine \'de page goto\'';
	 //Pass in true (bRequired) for page number
	 if (!IsOnlyNumeric(iValue,true)) {
	  alert(msg);
	  return false;
	 }
	 else if (iValue <= 0 || iValue > iTotalPages) {
	  if(iValue != iTotalPages) //When no plans are found the current page is 0 (even though they shouldn't enter 0 for goto), and total is 0, so let search again submit work.
	  {
	   alert(msg);
	   return false;
	  }
	  else
	   return true;
	 }
	 else return true;
   }
// end of ignore -->   
