<!-- open new window for links -->
function OPENWINDOW(page) {
OpenWin = this.open(page, "CtrlWindow","scrollbars=yes,menubar=yes,,toolbar=yes,resizable=yes,height=620,width=820");
}

<!-- 
//called for onmouseover and onmouseup, switches className 
	function mouseon(obj)
	{ 
		obj.className=(obj.className=='menu-on'?'menu-off':'menu-on') 
	} 
//-->

<!-- 
//called for onmouseover and onmouseup, switches className 
	function altmouseon(obj)
	{ 
		obj.className=(obj.className=='altmenu-on'?'altmenu-off':'altmenu-on') 
	} 
//-->

function showhide(id){ 
if (document.getElementById){ 
obj = document.getElementById(id); 
if (obj.style.display == "none"){ 
obj.style.display = ""; 
} else { 
obj.style.display = "none"; 
} 
} 
}

function hide(id){ 
if (document.getElementById){ 
obj = document.getElementById(id); 
obj.style.display = "none"; 
} 
} 


function ROLLOFFnh() {
document.map.src="images/northeast.gif";
hide('mass');
hide('ri');
hide('ny');
hide('me');
hide('ct');
return true;
}

function ROLLOFFma() {
document.map.src="images/northeast.gif";
hide('nh');
hide('ri');
hide('ny');
hide('me');
hide('ct');
return true;
}

function ROLLOFFme() {
document.map.src="images/northeast.gif";
hide('mass');
hide('nh');
hide('ri');
hide('ny');
hide('ct');
return true;
}

function ROLLOFFri() {
document.map.src="images/northeast.gif";
hide('mass');
hide('nh');
hide('ny');
hide('me');
hide('ct');
return true;
}

function ROLLOFFct() {
document.map.src="images/northeast.gif";
hide('mass');
hide('nh');
hide('ri');
hide('ny');
hide('me');
return true;
}

function ROLLOFFny() {
document.map.src="images/northeast.gif";
hide('mass');
hide('nh');
hide('ri');
hide('me');
hide('ct');
return true;
}

function ROLLOFFvt() {
document.map.src="images/northeast.gif";
hide('mass');
hide('nh');
hide('ri');
hide('ny');
hide('me');
hide('ct');
return true;
}

function ROLLOFFall() {
hide('start');
hide('automotive');
hide('realestate');
hide('restaurant');
hide('education');
hide('financial');
hide('medical');
hide('nonprofit');
hide('homedesign');
hide('jewelry');
hide('salonspa');
hide('fitness');
hide('recreation');
return true;
}

function ROLLOFFauto() {
hide('start');
hide('realestate');
hide('restaurant');
hide('education');
hide('financial');
hide('medical');
hide('nonprofit');
hide('homedesign');
hide('jewelry');
hide('salonspa');
hide('fitness');
hide('recreation');
return true;
}

function ROLLOFFre() {
hide('start');
hide('automotive');
hide('restaurant');
hide('education');
hide('financial');
hide('medical');
hide('nonprofit');
hide('homedesign');
hide('jewelry');
hide('salonspa');
hide('fitness');
hide('recreation');
return true;
}

function ROLLOFFrest() {
hide('start');
hide('automotive');
hide('realestate');
hide('education');
hide('financial');
hide('medical');
hide('nonprofit');
hide('homedesign');
hide('jewelry');
hide('salonspa');
hide('fitness');
hide('recreation');
return true;
}

function ROLLOFFedu() {
hide('start');
hide('automotive');
hide('realestate');
hide('restaurant');
hide('financial');
hide('medical');
hide('nonprofit');
hide('homedesign');
hide('jewelry');
hide('salonspa');
hide('fitness');
hide('recreation');
return true;
}

function ROLLOFFfin() {
hide('start');
hide('automotive');
hide('realestate');
hide('restaurant');
hide('education');
hide('medical');
hide('nonprofit');
hide('homedesign');
hide('jewelry');
hide('salonspa');
hide('fitness');
hide('recreation');
return true;
}

function ROLLOFFmed() {
hide('start');
hide('automotive');
hide('realestate');
hide('restaurant');
hide('education');
hide('financial');
hide('nonprofit');
hide('homedesign');
hide('jewelry');
hide('salonspa');
hide('fitness');
hide('recreation');
return true;
}

function ROLLOFFnon() {
hide('start');
hide('automotive');
hide('realestate');
hide('restaurant');
hide('education');
hide('financial');
hide('medical');
hide('homedesign');
hide('jewelry');
hide('salonspa');
hide('fitness');
hide('recreation');
return true;
}

function ROLLOFFhome() {
hide('start');
hide('automotive');
hide('realestate');
hide('restaurant');
hide('education');
hide('financial');
hide('medical');
hide('nonprofit');
hide('jewelry');
hide('salonspa');
hide('fitness');
hide('recreation');
return true;
}

function ROLLOFFj() {
hide('start');
hide('automotive');
hide('realestate');
hide('restaurant');
hide('education');
hide('financial');
hide('medical');
hide('nonprofit');
hide('homedesign');
hide('salonspa');
hide('fitness');
hide('recreation');
return true;
}

function ROLLOFFsalon() {
hide('start');
hide('automotive');
hide('realestate');
hide('restaurant');
hide('education');
hide('financial');
hide('medical');
hide('nonprofit');
hide('homedesign');
hide('jewelry');
hide('fitness');
hide('recreation');
return true;
}

function ROLLOFFfitness() {
hide('start');
hide('automotive');
hide('realestate');
hide('restaurant');
hide('education');
hide('financial');
hide('medical');
hide('nonprofit');
hide('homedesign');
hide('jewelry');
hide('salonspa');
hide('recreation');
return true;
}

function ROLLOFFrec() {
hide('start');
hide('automotive');
hide('realestate');
hide('restaurant');
hide('education');
hide('financial');
hide('medical');
hide('nonprofit');
hide('homedesign');
hide('jewelry');
hide('salonspa');
hide('fitness');
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.realname.value == "")  
    {
	 document.CONTACTForm.realname.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.value == "")
    {
    document.CONTACTForm.PHONE.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.email.length)
  	  {
	  document.CONTACTForm.email.focus();
	  alert("You must enter a valid email address");
	  return false;
	  }
	return true;
  }

function startss() { 
tid=setInterval('change()',5000);
} 

function stopss() { 
window.clearInterval(tid);
} 

function change() { 
document.pic1.src = slides[sn];
if (ns<= ++sn) {
sn = 0;
} 
} 

function startauto() { 
autotid=setInterval('autochange()',5000);
} 

function stopauto() { 
window.clearInterval(autotid);
}

function autochange() { 
document.auto.src = autoslides[autosn];
if (autons<= ++autosn) {
autosn = 0;
} 
} 

function startReal() { 
Realtid=setInterval('Realchange()',5000);
} 

function stopReal() { 
window.clearInterval(Realtid);
}

function Realchange() { 
document.Real.src = Realslides[Realsn];
if (Realns<= ++Realsn) {
Realsn = 0;
} 
}

function startRest() { 
Resttid=setInterval('Restchange()',5000);
} 

function stopRest() { 
window.clearInterval(Resttid);
}

function Restchange() { 
document.Rest.src = Restslides[Restsn];
if (Restns<= ++Restsn) {
Restsn = 0;
} 
}

function startEdu() { 
Edutid=setInterval('Educhange()',5000);
} 

function stopEdu() { 
window.clearInterval(Edutid);
}

function Educhange() { 
document.Edu.src = Eduslides[Edusn];
if (Eduns<= ++Edusn) {
Edusn = 0;
} 
}

function startFin() { 
Fintid=setInterval('Finchange()',5000);
} 

function stopFin() { 
window.clearInterval(Fintid);
}

function Finchange() { 
document.Fin.src = Finslides[Finsn];
if (Finns<= ++Finsn) {
Finsn = 0;
} 
}

function startMed() { 
Medtid=setInterval('Medchange()',5000);
} 

function stopMed() { 
window.clearInterval(Medtid);
}

function Medchange() { 
document.Med.src = Medslides[Medsn];
if (Medns<= ++Medsn) {
Medsn = 0;
} 
}

function startNon() { 
Nontid=setInterval('Nonchange()',5000);
} 

function stopNon() { 
window.clearInterval(Nontid);
}

function Nonchange() { 
document.Non.src = Nonslides[Nonsn];
if (Nonns<= ++Nonsn) {
Nonsn = 0;
} 
}

function startHome() { 
Hometid=setInterval('Homechange()',5000);
} 

function stopHome() { 
window.clearInterval(Hometid);
}

function Homechange() { 
document.Home.src = Homeslides[Homesn];
if (Homens<= ++Homesn) {
Homesn = 0;
} 
}

function startJew() { 
Jewtid=setInterval('Jewchange()',5000);
} 

function stopJew() { 
window.clearInterval(Jewtid);
}

function Jewchange() { 
document.Jew.src = Jewslides[Jewsn];
if (Jewns<= ++Jewsn) {
Jewsn = 0;
} 
}

function startSalon() { 
Salontid=setInterval('Salonchange()',5000);
} 

function stopSalon() { 
window.clearInterval(Salontid);
}

function Salonchange() { 
document.Salon.src = Salonslides[Salonsn];
if (Salonns<= ++Salonsn) {
Salonsn = 0;
} 
}

function startFit() { 
Fittid=setInterval('Fitchange()',5000);
} 

function stopFit() { 
window.clearInterval(Fittid);
}

function Fitchange() { 
document.Fit.src = Fitslides[Fitsn];
if (Fitns<= ++Fitsn) {
Fitsn = 0;
} 
}

function startRec() { 
Rectid=setInterval('Recchange()',5000);
} 

function stopRec() { 
window.clearInterval(Rectid);
}

function Recchange() { 
document.Rec.src = Recslides[Recsn];
if (Recns<= ++Recsn) {
Recsn = 0;
} 
}