<!-- 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
   function CheckForm(form) {
               var check="", sComment, i, sUrl, iUrlIndex;
               //FOR CANADA, ALPHA NUMERIC IS ALLOWED if (!IsOnlyNumeric(form.xzipofactivity.value,false))
               //{
               //   check=check + "\nZip code must be numeric.";
               //}
               
               //Must enter zip code, or city and state
               //if (IsOnlyNumeric(form.xzipofactivity.value,true) || (form.xstateofactivity.selectedIndex >=1 && StripEnds(form.xcityofactivity.value)>""))
               if (form.apptype.value=="ca") {
                //No zip required for churchactivities
               }
               else if ((StripEnds(form.xzipofactivity.value)>"") || (form.xstateofactivity.selectedIndex >=1 && StripEnds(form.xcityofactivity.value)>""))
               {
                //Entered required fields
               }
               else
                  check=check+ "\nZip code, or city and state are required.";
                   
               //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 + "\nRadius must be numeric.";
               }
               if (!IsOnlyNumeric(form.xagegroupid.value, false))
               {
                  check=check + "\nAge group must be up to 2 position numeric.";
               }   
               if (check != "") {
                  check="Please check the following fields:\n " + check;
                  alert(check);
                  return false;
               }
               else {
                  return true;
               }
   }

   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='Invalid page number!\n\nPlease enter a number between 1 and ' + iTotalPages + ' pages in the \'Goto page\' field.';
	 //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 -->   
