function EmployeeLogin(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username=="pbanks" && password=="1321") { window.location="employeenews.html"; done=1; } 
if (username=="tbowles" && password=="7787") { window.location="employeenews.html"; done=1; } 
if (username=="bbutler" && password=="8072") { window.location="employeenews.html"; done=1; }
if (username=="bcaffrey" && password=="3264") { window.location="employeenews.html"; done=1; } 
if (username=="dcamara" && password=="0962") { window.location="employeenews.html"; done=1; } 
if (username=="zcamara" && password=="8403") { window.location="employeenews.html"; done=1; } 
if (username=="bquinn" && password=="4913") { window.location="employeenews.html"; done=1; }
if (username=="acruz" && password=="4135") { window.location="employeenews.html"; done=1; } 
if (username=="jcruz" && password=="5451") { window.location="employeenews.html"; done=1; }
if (username=="tdamon" && password=="9972") { window.location="employeenews.html"; done=1; } 
if (username=="gdiaz" && password=="2001") { window.location="employeenews.html"; done=1; } 
if (username=="kdomingues" && password=="5714") { window.location="employeenews.html"; done=1; } 
if (username=="rdonahue" && password=="7386") { window.location="employeenews.html"; done=1; } 
if (username=="tferrara" && password=="8932") { window.location="employeenews.html"; done=1; } 
if (username=="rferreira" && password=="7075") { window.location="employeenews.html"; done=1; } 
if (username=="rhoule" && password=="5071") { window.location="employeenews.html"; done=1; } 
if (username=="tkeane" && password=="8885") { window.location="employeenews.html"; done=1; } 
if (username=="dlafond" && password=="2064") { window.location="employeenews.html"; done=1; } 
if (username=="elamonica" && password=="2353") { window.location="employeenews.html"; done=1; } 
if (username=="tlazzaro" && password=="9199") { window.location="employeenews.html"; done=1; } 
if (username=="alegare" && password=="6723") { window.location="employeenews.html"; done=1; } 
if (username=="jmcnamara3" && password=="2532") { window.location="employeenews.html"; done=1; } 
if (username=="rpaquette" && password=="9118") { window.location="employeenews.html"; done=1; } 
if (username=="smohan" && password=="7377") { window.location="employeenews.html"; done=1; } 
if (username=="psalgado" && password=="1081") { window.location="employeenews.html"; done=1; } 
if (username=="rsamuel" && password=="7551") { window.location="employeenews.html"; done=1; } 
if (username=="jwilliams" && password=="6741") { window.location="employeenews.html"; done=1; } 
if (username=="esabino" && password=="0074") { window.location="employeenews.html"; done=1; } 
if (username=="sraposa" && password=="8375") { window.location="employeenews.html"; done=1; } 
if (username=="fsilva" && password=="5237") { window.location="employeenews.html"; done=1; } 
if (username=="dteixeira" && password=="3599") { window.location="employeenews.html"; done=1; } 
if (username=="twalsh" && password=="9415") { window.location="employeenews.html"; done=1; } 
if (username=="jcox" && password=="6928") { window.location="employeenews.html"; done=1; } 
if (username=="cei07" && password=="cei07") { window.location="employeenews.html"; done=1; } 
if (username=="jjohnson" && password=="8213") { window.location="employeenews.html"; done=1; }
if (username=="bkostick" && password=="5850") { window.location="employeenews.html"; done=1; } 
if (username=="mpavao" && password=="8598") { window.location="employeenews.html"; done=1; } 
if (username=="jprice" && password=="9172") { window.location="employeenews.html"; done=1; } 
if (username=="rsamuel" && password=="7551") { window.location="employeenews.html"; done=1; } 
if (username=="ssimpson" && password=="6373") { window.location="employeenews.html"; done=1; } 
if (username=="craposo" && password=="1802") { window.location="employeenews.html"; done=1; } 
if (username=="psalgado" && password=="1801") { window.location="employeenews.html"; done=1; } 
if (username=="jsousa" && password=="2909") { window.location="employeenews.html"; done=1; } 
if (username=="jwilliams" && password=="6741") { window.location="employeenews.html"; done=1; } 
if (done==0) { alert("Sorry, you are not authorized to view this page"); } }


function AdminLogin(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username=="tkeane" && password=="8885") { window.location="/news/newsmanager.html"; done=1; } 
if (done==0) { alert("Sorry, you are not authorized to access this page"); } }



function ACTION(){
document.write(' <a class="address"> ');
document.write(' CALL TODAY<BR>FOR A FREE<BR>CONSULTATION ');
}

function PHONE(){
document.write(' <a class="phone"> ');
document.write(' 866.234.3366 ');
}

function ADDRESS(){
document.write(' <a class="address"> ');
document.write(' CEI BOSTON LLC <br />15 SHIRE DRIVE <br />NORFOLK, MA 02056-1579 ');
}


function RIGHTS(){
document.write(' <a class="copyright"> ');
document.write(' © 2005 - 2008 CEI Boston <br> ');
document.write(' <a href="http://www.elliottgraphics.net" target="blank" class="copyright"> ');
document.write(' Site by Elliott Graphics ');
document.write(' </a> ');
}

function showhide(id){ 
if (document.getElementById){ 
obj = document.getElementById(id); 
if (obj.style.display == "none"){ 
obj.style.display = ""; 
} else { 
obj.style.display = "none"; 
} 
} 
}


function test(){
if (parseInt(navigator.appVersion) < 5){
document.location="old.html";
}
else{
show('introtext');
}
}

<!-- open new window for links -->
function OPENWINDOW(page) {
OpenWin = this.open(page, "CtrlWindow", "scrollbars=yes,resizable=yes,height=620,width=820");
}

function ROLLOFFh() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting.gif";
document.demolition.src="images/demolition.gif";
document.excavation.src="images/excavation.gif";
document.conconstruct.src="images/conconstruct.gif";
document.landscape.src="images/landscape.gif";
document.mainpic.src="images/boston.gif";
showhide('main');
return true;
}

function ROLLOFFh_alt() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting.gif";
document.demolition.src="images/demolition.gif";
document.excavation.src="images/excavation.gif";
document.conconstruct.src="images/conconstruct.gif";
document.landscape.src="images/landscape.gif";
document.mainpic.src="images/boston.gif";
return true;
}

function ROLLOFF2h() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2.gif";
document.mainpic.src="images/boston.gif";
return true;
}

function HOMEOFFh() {
document.logo.src="images/logo.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting.gif";
document.demolition.src="images/demolition.gif";
document.excavation.src="images/excavation.gif";
document.conconstruct.src="images/conconstruct.gif";
document.landscape.src="images/landscape.gif";
document.mainpic.src="images/boston.gif";
return true;
}

function ABOUTOFFh() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/abouton.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2.gif";
document.mainpic.src="images/boston.gif";
return true;
}

function SERVICESOFFh() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/serviceson.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2.gif";
document.mainpic.src="images/boston.gif";
return true;
}

function LINKSOFFh() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/linkson.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2.gif";
document.mainpic.src="images/boston.gif";
return true;
}

function CONTACTOFFh() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contacton.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2.gif";
document.mainpic.src="images/boston.gif";
return true;
}

function CUTTINGOFFh() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2on.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2.gif";
document.mainpic.src="images/boston.gif";
return true;
}

function DEMOOFFh() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2on.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2.gif";
document.mainpic.src="images/boston.gif";
return true;
}

function EXCAVATEOFFh() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2on.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2.gif";
document.mainpic.src="images/boston.gif";
return true;
}

function CONCRETEOFFh() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2on.gif";
document.landscape.src="images/landscape2.gif";
document.mainpic.src="images/boston.gif";
return true;
}

function LANDOFFh() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2on.gif";
document.mainpic.src="images/boston.gif";
return true;
}


function ROLLOFF() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting.gif";
document.demolition.src="images/demolition.gif";
document.excavation.src="images/excavation.gif";
document.conconstruct.src="images/conconstruct.gif";
document.landscape.src="images/landscape.gif";
document.mainpic.src="images/boston.gif";
return true;
}

function ROLLOFF2() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2.gif";
document.mainpic.src="images/boston.gif";
return true;
}

function HOMEOFF() {
document.logo.src="images/logo.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting.gif";
document.demolition.src="images/demolition.gif";
document.excavation.src="images/excavation.gif";
document.conconstruct.src="images/conconstruct.gif";
document.landscape.src="images/landscape.gif";
showhide('main');
return true;
}

function HOMEOFF_alt() {
document.logo.src="images/logo.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting.gif";
document.demolition.src="images/demolition.gif";
document.excavation.src="images/excavation.gif";
document.conconstruct.src="images/conconstruct.gif";
document.landscape.src="images/landscape.gif";
return true;
}

function ABOUTOFF() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/abouton.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2.gif";
return true;
}

function SERVICESOFF() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/serviceson.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2.gif";
return true;
}

function LINKSOFF() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/linkson.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2.gif";
return true;
}

function CONTACTOFF() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contacton.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2.gif";
return true;
}

function CUTTINGOFF() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2on.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2.gif";
return true;
}

function DEMOOFF() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2on.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2.gif";
return true;
}

function EXCAVATEOFF() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2on.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2.gif";
return true;
}

function CONCRETEOFF() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2on.gif";
document.landscape.src="images/landscape2.gif";
return true;
}

function LANDOFF() {
document.logo.src="images/logo.gif";
document.home.src="images/home.gif";
document.about.src="images/about.gif";
document.services.src="images/services.gif";
document.links.src="images/links.gif";
document.contact.src="images/contact.gif";
document.cutting.src="images/cutting2.gif";
document.demolition.src="images/demolition2.gif";
document.excavation.src="images/excavation2.gif";
document.conconstruct.src="images/conconstruct2.gif";
document.landscape.src="images/landscape2on.gif";
return true;
}


function CUTTING() {
document.cutting.src="images/cuttingon.gif";
document.mainpic.src="images/piccutting.gif";
showhide('cuttingtext')
return true;
}

function CUTTING2() {
document.cutting.src="images/cutting2on.gif";
return true;
}

function DEMOLITION() {
document.demolition.src="images/demolitionon.gif";
document.mainpic.src="images/picdemo.gif";
showhide('demotext')
return true;
}

function DEMOLITION2() {
document.demolition.src="images/demolition2on.gif";
return true;
}

function EXCAVATION() {
document.excavation.src="images/excavationon.gif";
document.mainpic.src="images/picexcavate.gif";
showhide('excavatetext')
return true;
}

function EXCAVATION2() {
document.excavation.src="images/excavation2on.gif";
return true;
}

function CONSTRUCT() {
document.conconstruct.src="images/conconstructon.gif";
document.mainpic.src="images/picconstruct.gif";
showhide('constructtext')
return true;
}

function CONSTRUCT2() {
document.conconstruct.src="images/conconstruct2on.gif";
return true;
}

function LANDSCAPE() {
document.landscape.src="images/landscapeon.gif";
document.mainpic.src="images/piclandscape.gif";
showhide('landscapetext')
return true;
}

function LANDSCAPE2() {
document.landscape.src="images/landscape2on.gif";
return true;
}

function VALIDATEALL()
{ 
 Status=VALIDFIRST();
 if (Status==false)
  {return Status;}
 Status=VALIDLAST();
 if (Status==false)
  {return Status;}
 Status=VALIDADDRESS(); 
 if (Status==false)
  {return Status;}
 Status=VALIDCITY(); 
 if (Status==false)
  {return Status;}
 Status=VALIDSTATE(); 
 if (Status==false)
  {return Status;}
 Status=VALIDZIP();
 if (Status==false)
  {return Status;}
 Status=VALIDPHONE();
 if (Status==false)
  {return Status;}
 Status=VALIDEMAIL();
 if (Status==false)
  {return Status;}
}

function VALIDFIRST()
  {
  if(document.CONTACTForm.First.value == "")  
    {
	 document.CONTACTForm.First.focus();
    alert("You must Enter Your First Name");
    return false;
    }
  return true;
  }

function VALIDLAST() 
  {
  if(document.CONTACTForm.Last.value == "")  
    {
	 document.CONTACTForm.Last.focus(); 
    alert("You must Enter Your Last Name");
    return false;
    }
  return true;
  }

function VALIDADDRESS() 
  {
  if(document.CONTACTForm.Address.value == "")  
    {
	 document.CONTACTForm.Address.focus();
    alert("You must Enter Your Address");
    return false;
    }
  return true;
  }

function VALIDCITY() 
  {
  if(document.CONTACTForm.City.value == "")
    {
    document.CONTACTForm.City.focus();
	 alert("You must Enter Your City");
    return false;
    }
  return true;
  }

function VALIDSTATE()
  {
  if(document.CONTACTForm.State.value == "")
    {
    document.CONTACTForm.State.focus();
	 alert("You must Enter Your State");
    return false;
    }
  return true;
  }

function VALIDZIP() 
  {
  if(document.CONTACTForm.Zip.value == "")
    {
    document.CONTACTForm.Zip.focus();
	 alert("You must Enter Your Zip Code");
    return false;
    }
  return true;
  }

function VALIDPHONE() 
  {
  if(document.CONTACTForm.Phone_1.value == "")
    {
    document.CONTACTForm.Phone_1.focus();
	 alert("You must your phone number");
    return false;
    }
  return true;
  }

function VALIDEMAIL () 
  {
   invalidChars = " /:,;";
   if(document.CONTACTForm.email.value == "") 
     {
     document.CONTACTForm.email.focus();
     alert("You must enter a valid email address");
     return false;
     }
   atPos = document.CONTACTForm.email.value.indexOf("@",1);
	if(atPos == -1)
     {
     document.CONTACTForm.email.focus();
	  alert("You must enter a valid email address");
     return false;
     }
   if(document.CONTACTForm.email.value.indexOf("@",atPos+1) != -1)
     {
     document.CONTACTForm.email.focus();
	  alert("You must enter a valid email address");
     return false;
     }
	periodPos = document.CONTACTForm.email.value.indexOf(".",atPos)
	if(periodPos == -1)
     {
	  document.CONTACTForm.email.focus();
     alert("You must enter a valid email address");
     return false;
     }
	if(periodPos+3 > document.CONTACTForm.v.length)
  	  {
	  document.CONTACTForm.email.focus();
	  alert("You must enter a valid email address");
	  return false;
	  }
	return true;
  }
