function contact(url) {
mywin = window.open(url,"con",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,width=550,height=500');
}
function mail(url) {
mywin = window.open(url,"mai",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,width=400,height=280');
}
function newsletter(url) {
mywin = window.open(url,"new",'toolbar=0,location=0,directories=0,status=no,menubar=yes,scrollbars=yes,resizable=0,width=560,height=750');
}
function map(url) {
mywin = window.open(url,"map",'toolbar=0,location=0,directories=0,status=no,menubar=yes,scrollbars=no,resizable=0,width=460,height=270');
}
function ma2(url) {
mywin = window.open(url,"ma2",'toolbar=0,location=0,directories=0,status=no,menubar=no,scrollbars=no,resizable=0,width=684,height=520');
}
function ma3(url) {
mywin = window.open(url,"ma3",'toolbar=0,location=0,directories=0,status=no,menubar=no,scrollbars=no,resizable=0,width=600,height=547');
}

function framePrint(whichFrame){
parent[whichFrame].focus();
parent[whichFrame].print();
}

Image1= new Image(35,23)
Image1.src = "images/header_04.gif"
Image2 = new Image(35,23)
Image2.src = "images/header_04m.gif"

Image3= new Image(62,18)
Image3.src = "images/header_06.gif"
Image4 = new Image(62,18)
Image4.src = "images/header_06m.gif"

Image5= new Image(67,23)
Image5.src = "images/header_08.gif"
Image6 = new Image(67,23)
Image6.src = "images/header_08m.gif"

Image7= new Image(49,23)
Image7.src = "images/header_10.gif"
Image8 = new Image(49,23)
Image8.src = "images/header_10m.gif"

Image9= new Image(40,23)
Image9.src = "images/header_12.gif"
Image10 = new Image(40,23)
Image10.src = "images/header_12m.gif"

function SwapOutA() {
document.home.src = Image2.src; return true;
}

function SwapBackA() {
document.home.src = Image1.src; return true;
}

function SwapOutB() {
document.company.src = Image4.src; return true;
}

function SwapBackB() {
document.company.src = Image3.src; return true;
}

function SwapOutC() {
document.services.src = Image6.src; return true;
}

function SwapBackC() {
document.services.src = Image5.src; return true;
}

function SwapOutD() {
document.products.src = Image8.src; return true;
}

function SwapBackD() {
document.products.src = Image7.src; return true;
}

function SwapOutE() {
document.contact.src = Image10.src; return true;
}

function SwapBackE() {
document.contact.src = Image9.src; return true;
}

hasSubmit = false; //this prevents a candidate from submitting more than once

function error(elem, text)
{
   if(errfound) return;
   window.alert(text);
   elem.focus();
   errfound = true;
}
function CheckSpace(str) //check to see that user does omit the field or enter all white space in it
{
   num_space = 0;
   idx = -1;
   if(str=="")
     return true;
   else          //check for white space
   {
      while(true)
      {
         idx = str.indexOf(' ',idx+1);
         if(idx>=0)
            num_space++;
         else
           break;
         if(idx==(str.length-1))
           break;
      }

      if(num_space==str.length)
         return true;
      else
         return false;
   }
}
function CheckField()
{
   errfound = false;

   if(CheckSpace(document.response.FIRST_NAME.value))
      error(document.response.FIRST_NAME, "Please fill in your first name.");
   if(CheckSpace(document.response.LAST_NAME.value))
      error(document.response.LAST_NAME, "Please fill in your last name.");
   if(CheckSpace(document.response.EMAIL.value))
      error(document.response.EMAIL, "Please fill in your e-mail address.");
   if(CheckSpace(document.response.COMMENTS.value))
      error(document.response.COMMENTS, "Please include your comments.");
  if(!errfound)
    {
        hasSubmit = true;
    }

    return !errfound;
}

