function FP_jumpMenu(el,frm,sel) {//v1.0
 var href=el.options[el.selectedIndex].value; if(sel) el.selectedIndex=0;
 if('_new'==frm) open(href); else eval(frm+".location='"+href+"'");
}

function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}

function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
 elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}

function contactfrm_Validator_Validator(theForm)
{

  if (theForm.FirstName.value == "")
  {
    alert("Please enter a value for the \"FirstName\" field.");
    theForm.FirstName.focus();
    return (false);
  }

  if (theForm.FirstName.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"FirstName\" field.");
    theForm.FirstName.focus();
    return (false);
  }

  if (theForm.FirstName.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"FirstName\" field.");
    theForm.FirstName.focus();
    return (false);
  }

  if (theForm.LastName.value == "")
  {
    alert("Please enter a value for the \"LastName\" field.");
    theForm.LastName.focus();
    return (false);
  }

  if (theForm.LastName.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"LastName\" field.");
    theForm.LastName.focus();
    return (false);
  }

  if (theForm.LastName.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"LastName\" field.");
    theForm.LastName.focus();
    return (false);
  }

  if (theForm.Email.value == "")
  {
    alert("Please enter a value for the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Company.value == "")
  {
    alert("Please enter a value for the \"Company\" field.");
    theForm.Company.focus();
    return (false);
  }

  if (theForm.Company.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Company\" field.");
    theForm.Company.focus();
    return (false);
  }

  if (theForm.Company.value.length > 40)
  {
    alert("Please enter at most 40 characters in the \"Company\" field.");
    theForm.Company.focus();
    return (false);
  }

  if (theForm.JobTitle.value == "")
  {
    alert("Please enter a value for the \"JobTitle\" field.");
    theForm.JobTitle.focus();
    return (false);
  }

  if (theForm.JobTitle.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"JobTitle\" field.");
    theForm.JobTitle.focus();
    return (false);
  }

  if (theForm.JobTitle.value.length > 40)
  {
    alert("Please enter at most 40 characters in the \"JobTitle\" field.");
    theForm.JobTitle.focus();
    return (false);
  }

  if (theForm.Address1.value == "")
  {
    alert("Please enter a value for the \"Address1\" field.");
    theForm.Address1.focus();
    return (false);
  }

  if (theForm.Address1.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Address1\" field.");
    theForm.Address1.focus();
    return (false);
  }

  if (theForm.Address1.value.length > 40)
  {
    alert("Please enter at most 40 characters in the \"Address1\" field.");
    theForm.Address1.focus();
    return (false);
  }

  if (theForm.Address2.value == "")
  {
    alert("Please enter a value for the \"Address2\" field.");
    theForm.Address2.focus();
    return (false);
  }

  if (theForm.Address2.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Address2\" field.");
    theForm.Address2.focus();
    return (false);
  }

  if (theForm.Address2.value.length > 40)
  {
    alert("Please enter at most 40 characters in the \"Address2\" field.");
    theForm.Address2.focus();
    return (false);
  }

  if (theForm.City.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    theForm.City.focus();
    return (false);
  }

  if (theForm.City.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"City\" field.");
    theForm.City.focus();
    return (false);
  }

  if (theForm.City.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"City\" field.");
    theForm.City.focus();
    return (false);
  }

  if (theForm.PostCode.value == "")
  {
    alert("Please enter a value for the \"PostCode\" field.");
    theForm.PostCode.focus();
    return (false);
  }

  if (theForm.PostCode.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"PostCode\" field.");
    theForm.PostCode.focus();
    return (false);
  }

  if (theForm.PostCode.value.length > 20)
  {
    alert("Please enter at most 20 characters in the \"PostCode\" field.");
    theForm.PostCode.focus();
    return (false);
  }

  if (theForm.Country.selectedIndex < 0)
  {
    alert("Please select one of the \"Country\" options.");
    theForm.Country.focus();
    return (false);
  }

  if (theForm.Phone.value == "")
  {
    alert("Please enter a value for the \"Phone\" field.");
    theForm.Phone.focus();
    return (false);
  }

  if (theForm.Phone.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Phone\" field.");
    theForm.Phone.focus();
    return (false);
  }

  if (theForm.Phone.value.length > 25)
  {
    alert("Please enter at most 25 characters in the \"Phone\" field.");
    theForm.Phone.focus();
    return (false);
  }

  if (theForm.HowDidYouHear.selectedIndex < 0)
  {
    alert("Please select one of the \"HowDidYouHear\" options.");
    theForm.HowDidYouHear.focus();
    return (false);
  }

  if (theForm.HowDidYouHear.selectedIndex == 0)
  {
    alert("The first \"HowDidYouHear\" option is not a valid selection.  Please choose one of the other options.");
    theForm.HowDidYouHear.focus();
    return (false);
  }
  return (true);
}