// JavaScript Document<!--
function mmLoadMenus() {
  if (window.mm_menu_0915140154_0) return;
          window.mm_menu_0915140154_0 = new Menu("root",149,19,"Arial, Helvetica, sans-serif",13,"#1B0C06","#A03D25","#E2DBC5","#E2DBC5","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0915140154_0.addMenuItem("Meet&nbsp;Dr.&nbsp;Holley","location='holley.html'");
  mm_menu_0915140154_0.addMenuItem("Meet&nbsp;the&nbsp;Team","location='team.html'");
  mm_menu_0915140154_0.addMenuItem("Affordable&nbsp;Dentistry","location='affordable.html'");
  mm_menu_0915140154_0.addMenuItem("Patient&nbsp;Comfort","location='comfort.html'");
   mm_menu_0915140154_0.fontWeight="bold";
   mm_menu_0915140154_0.hideOnMouseOut=true;
   mm_menu_0915140154_0.bgColor='#FFFFFF';
   mm_menu_0915140154_0.menuBorder=1;
   mm_menu_0915140154_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0915140154_0.menuBorderBgColor='#FFFFFF';
  window.mm_menu_0915142958_0 = new Menu("root",136,19,"Arial, Helvetica, sans-serif",13,"#1B0C06","#A03D25","#E2DBC5","#E2DBC5","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0915142958_0.addMenuItem("Map&nbsp;&&nbsp;Directions","location='directions.html'");
   mm_menu_0915142958_0.fontWeight="bold";
   mm_menu_0915142958_0.hideOnMouseOut=true;
   mm_menu_0915142958_0.bgColor='#FFFFFF';
   mm_menu_0915142958_0.menuBorder=1;
   mm_menu_0915142958_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0915142958_0.menuBorderBgColor='#FFFFFF';

      window.mm_menu_0915143949_0 = new Menu("root",246,19,"Arial, Helvetica, sans-serif",13,"#1B0C06","#A03D25","#E2DBC5","#E2DBC5","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0915143949_0.addMenuItem("Smile&nbsp;Makeovers","location='smile.html'");
  mm_menu_0915143949_0.addMenuItem("Smile&nbsp;Makeover&nbsp;FAQs","location='smile_faq.html'");
  mm_menu_0915143949_0.addMenuItem("Porcelain&nbsp;Veneers","location='veneers.html'");
  mm_menu_0915143949_0.addMenuItem("Porcelain&nbsp;Veneer&nbsp;FAQ","location='veneers_faq.html'");
  mm_menu_0915143949_0.addMenuItem("Porcelain&nbsp;Crowns&nbsp;&&nbsp;Bonding","location='porcelain_crowns.html'");
  mm_menu_0915143949_0.addMenuItem("Porcelain&nbsp;Crowns&nbsp;&&nbsp;Bonding&nbsp;FAQs","location='crowns_faq.html'");
  mm_menu_0915143949_0.addMenuItem("Porcelain&nbsp;Fillings","location='porcelain.html'");
  mm_menu_0915143949_0.addMenuItem("Porcelain&nbsp;Filling&nbsp;FAQs","location='porcelain_faq.html'");
  mm_menu_0915143949_0.addMenuItem("Tooth&nbsp;Whitening","location='whitening.html'");
  mm_menu_0915143949_0.addMenuItem("Tooth&nbsp;Whitening&nbsp;FAQs","location='whitening_faq.html'");
  mm_menu_0915143949_0.addMenuItem("Gum&nbsp;Treatment","location='gum_treatment.html'");
  mm_menu_0915143949_0.addMenuItem("Laser&nbsp;Dentistry","location='laser.html'");
  mm_menu_0915143949_0.addMenuItem("Dental Implant Restorations","location='restorations.html'");
   mm_menu_0915143949_0.fontWeight="bold";
   mm_menu_0915143949_0.hideOnMouseOut=true;
   mm_menu_0915143949_0.bgColor='#FFFFFF';
   mm_menu_0915143949_0.menuBorder=1;
   mm_menu_0915143949_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0915143949_0.menuBorderBgColor='#FFFFFF';

      window.mm_menu_0915145258_0 = new Menu("root",182,19,"Arial, Helvetica, sans-serif",13,"#1B0C06","#A03D25","#E2DBC5","#E2DBC5","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0915145258_0.addMenuItem("Common&nbsp;Symptoms","location='symptoms.html'");
  mm_menu_0915145258_0.addMenuItem("Headaches&nbsp;and&nbsp;Migraines","location='headaches.html'");
  mm_menu_0915145258_0.addMenuItem("TMJ&nbsp;Testing","location='tmj_testing.html'");
  mm_menu_0915145258_0.addMenuItem("TMJ&nbsp;Treatments","location='tmj_treatments.html'");
  mm_menu_0915145258_0.addMenuItem("TMJ&nbsp;FAQs","location='tmj_faq.html'");
   mm_menu_0915145258_0.fontWeight="bold";
   mm_menu_0915145258_0.hideOnMouseOut=true;
   mm_menu_0915145258_0.bgColor='#FFFFFF';
   mm_menu_0915145258_0.menuBorder=1;
   mm_menu_0915145258_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0915145258_0.menuBorderBgColor='#FFFFFF';

        window.mm_menu_0915145713_0 = new Menu("root",161,19,"Arial, Helvetica, sans-serif",13,"#1B0C06","#A03D25","#E2DBC5","#E2DBC5","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0915145713_0.addMenuItem("Preventative&nbsp;Dentistry","location='preventative.html'");
  mm_menu_0915145713_0.addMenuItem("Periodontal&nbsp;Treatment","location='periodontal.html'");
  mm_menu_0915145713_0.addMenuItem("Restorative&nbsp;Dentistry","location='restorative.html'");
  mm_menu_0915145713_0.addMenuItem("Tooth&nbsp;Colored&nbsp;Fillings","location='fillings.html'");
  mm_menu_0915145713_0.addMenuItem("Dental&nbsp;Crowns","location='dental_crowns.html'");
  mm_menu_0915145713_0.addMenuItem("Dentures&nbsp;and&nbsp;Partials","location='dentures.html'");
  mm_menu_0915145713_0.addMenuItem("Endodontics","location='endodontics.html'");
  mm_menu_0915145713_0.addMenuItem("Oral&nbsp;Surgery","location='surgery.html'");
  mm_menu_0915145713_0.addMenuItem("Breath&nbsp;Treatment","location='breath.html'");
   mm_menu_0915145713_0.fontWeight="bold";
   mm_menu_0915145713_0.hideOnMouseOut=true;
   mm_menu_0915145713_0.bgColor='#FFFFFF';
   mm_menu_0915145713_0.menuBorder=1;
   mm_menu_0915145713_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0915145713_0.menuBorderBgColor='#FFFFFF';

    window.mm_menu_0915150300_0 = new Menu("root",258,19,"Arial, Helvetica, sans-serif",13,"#1B0C06","#A03D25","#E2DBC5","#E2DBC5","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0915150300_0.addMenuItem("Sleep&nbsp;Dentistry&nbsp;Vs.&nbsp;Sedation&nbsp;Dentistry","location='difference.html'");
  mm_menu_0915150300_0.addMenuItem("Sedation&nbsp;Dentistry&nbsp;FAQs","location='sedation_faq.html'");
   mm_menu_0915150300_0.fontWeight="bold";
   mm_menu_0915150300_0.hideOnMouseOut=true;
   mm_menu_0915150300_0.bgColor='#FFFFFF';
   mm_menu_0915150300_0.menuBorder=1;
   mm_menu_0915150300_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0915150300_0.menuBorderBgColor='#FFFFFF';

    window.mm_menu_0915150301_0 = new Menu("root",258,19,"Arial, Helvetica, sans-serif",13,"#1B0C06","#A03D25","#E2DBC5","#E2DBC5","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0915150301_0.addMenuItem("Types of Sleep Apnea","location='types-sleep-apnea.html'");
  mm_menu_0915150301_0.addMenuItem("Questions About Sleep Apnea","location='questions-about-sleep-apnea.html'");
   mm_menu_0915150301_0.fontWeight="bold";
   mm_menu_0915150301_0.hideOnMouseOut=true;
   mm_menu_0915150301_0.bgColor='#FFFFFF';
   mm_menu_0915150301_0.menuBorder=1;
   mm_menu_0915150301_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0915150301_0.menuBorderBgColor='#FFFFFF';

mm_menu_0915150300_0.writeMenus();
}// mmLoadMenus()
//-->

// Clear/Replace Fields
 
function clearText(thefield) {
  if (thefield.defaultValue==thefield.value) { thefield.value = "" }
}


function replaceText(thefield) {
  if (thefield.value=="") { thefield.value = thefield.defaultValue }
}



// Email Validator
function emailCheck (emailStr) {var checkTLD=1;var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;var emailPat=/^(.+)@(.+)$/;var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";var validChars="\[^\\s" + specialChars + "\]";var quotedUser="(\"[^\"]*\")";var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var atom=validChars + '+';var word="(" + atom + "|" + quotedUser + ")";var userPat=new RegExp("^" + word + "(\\." + word + ")*$");var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");var matchArray=emailStr.match(emailPat);if (matchArray==null) {alert("Email address seems incorrect (check @ and .'s)");return false;}var user=matchArray[1];var domain=matchArray[2];for (i=0; i<user.length; i++) {if (user.charCodeAt(i)>127) {alert("Ths username contains invalid characters.");return false;}}for (i=0; i<domain.length; i++) {if (domain.charCodeAt(i)>127) {alert("Ths domain name contains invalid characters.");return false;}}if (user.match(userPat)==null) {alert("The username doesn't seem to be valid.");return false;}var IPArray=domain.match(ipDomainPat);if (IPArray!=null) {for (var i=1;i<=4;i++) {if (IPArray[i]>255) {alert("Destination IP address is invalid!");return false;}}return true;}var atomPat=new RegExp("^" + atom + "$");var domArr=domain.split(".");var len=domArr.length;for (i=0;i<len;i++) {if (domArr[i].search(atomPat)==-1) {alert("The domain name does not seem to be valid.");return false;}}if (checkTLD && domArr[domArr.length-1].length!=2 && domArr[domArr.length-1].search(knownDomsPat)==-1) {alert("The address must end in a well-known domain or two letter " + "country.");return false;}if (len<2) {alert("This address is missing a hostname!");return false;}return true;}
// Email Validator End

//Contact Form Validator
function CheckRequiredFieldscontact() {

		if (document.contact.First_Name.value=='') {
			alert('Your First Name is required to use this form.');
			return false;
		}
		else if (document.contact.First_Name.value=='required') {
			alert('Your First Name is required to use this form.');
			return false;
		}
		if (document.contact.Last_Name.value=='') {
			alert('Your Last Name is required to use this form.');
			return false;
		}
		else if (document.contact.Last_Name.value=='required') {
			alert('Your Last Name is required to use this form.');
			return false;
		}

		if (document.contact.Phone.value=='') {
			alert('Your phone number is required to use this form.');
			return false;
		}
		else if (document.contact.Phone.value=='required') {
			alert('Your phone number is required to use this form.');
			return false;
		}
		
		if (document.contact.Email.value=='') {
			alert('A valid email address is required to use this form.');
			return false;
		}
		else if (document.contact.Email.value=='required') {
			alert('A valid email address is required to use this form.');
			return false;
		}

		return true;
}

//QC Form Validator
function CheckRequiredFieldsminiContact() {

		if (document.qc.name.value=='') {
			alert('Your name is required to use this form.');
			return false;
		}
		else if (document.qc.name.value=='Name') {
			alert('Your name is required to use this form.');
			return false;
		}

		if (document.qc.email.value=='') {
			alert('A valid email address is required to use this form.');
			return false;
		}
		else if (document.qc.email.value=='Email') {
			alert('A valid email address is required to use this form.');
			return false;
		}
		
		if (document.qc.phone.value=='') {
			alert('Your phone number is required to use this form.');
			return false;
		}
		else if (document.qc.phone.value=='Phone') {
			alert('Your phone number is required to use this form.');
			return false;
		}

		return true;
}
