function mmLoadMenus() {
  if (window.mm_menu_1011103605_0) return;
      window.mm_menu_1011103605_0 = new Menu("root",120,15,"Arial, Helvetica, sans-serif",11,"#FFFFFF","#000000","#000000","#FFFFFF","left","middle",3,-8,1000,-5,7,true,true,false,0,true,true);
  mm_menu_1011103605_0.addMenuItem("&nbsp;Our&nbsp;Practice","location='about.html'");

  mm_menu_1011103605_0.addMenuItem("&nbsp;Cosmetic&nbsp;Surgery","location='cosmetic_surgery.html'");
  mm_menu_1011103605_0.addMenuItem("&nbsp;Testimonials","location='testimonials.html'");
   mm_menu_1011103605_0.hideOnMouseOut=true;
   mm_menu_1011103605_0.bgColor='#000000';
   mm_menu_1011103605_0.menuBorder=1;
   mm_menu_1011103605_0.menuLiteBgColor='#000000';
   mm_menu_1011103605_0.menuBorderBgColor='#FFFFFF';
   
         window.mm_menu_1011103606_0 = new Menu("root",120,15,"Arial, Helvetica, sans-serif",11,"#FFFFFF","#000000","#000000","#FFFFFF","left","middle",3,0,1000,-5,7,true,true,false,0,true,true);
  mm_menu_1011103606_0.addMenuItem("&nbsp;Implant&nbsp;Types","location='implant_types.html'");

  mm_menu_1011103606_0.addMenuItem("&nbsp;Breast&nbsp;FAQ","location='faq.html'");
   mm_menu_1011103606_0.hideOnMouseOut=true;
   mm_menu_1011103606_0.bgColor='#000000';
   mm_menu_1011103606_0.menuBorder=1;
   mm_menu_1011103606_0.menuLiteBgColor='#000000';
   mm_menu_1011103606_0.menuBorderBgColor='#FFFFFF';

mm_menu_1011103606_0.writeMenus();
} // mmLoadMenus()


function clearText(thefield) {
  if (thefield.defaultValue==thefield.value) { thefield.value = "" }
}

function replaceText(thefield) {
  if (thefield.value=="") { thefield.value = thefield.defaultValue }
}


function CheckRequiredFields() {

		if (document.miniContact.name.value=='* Name') {
			alert('Your name is required to submit this form.');
			return false;
		}
		
		if (document.miniContact.email.value=='* Email Address') {
			alert('A valid email address is required to submit this form.');
			return false;
		}
		
		if (document.miniContact.phone.value=='* Phone Number') {
			alert('Your phone number is required to submit this form.');
			return false;
		}
		
		return true;
}

function CheckRequiredFieldsLeft() {

		if (document.miniContactLeft.name.value=='* Name') {
			alert('Your name is required to submit this form.');
			return false;
		}
		
		if (document.miniContactLeft.email.value=='* Email Address') {
			alert('A valid email address is required to submit this form.');
			return false;
		}
		
		if (document.miniContactLeft.phone.value=='* Phone Number') {
			alert('Your phone number is required to submit this form.');
			return false;
		}
		
		return true;
}

function CheckConsultRequiredFields() {

		if (document.consultation.name.value=='*Name') {
			alert('Your name is required to submit this form.');
			return false;
		}
		
		if (document.consultation.email.value=='*Email') {
			alert('A valid email address is required to submit this form.');
			return false;
		}
		
		if (document.consultation.phone.value=='*Phone Number') {
			alert('Your phone number is required to submit this form.');
			return false;
		}
		
		return true;
}

function CheckMainRequiredFields() {

		if (document.mainContact.name.value=='*Name') {
			alert('Your name is required to submit this form.');
			return false;
		}
		
		if (document.mainContact.email.value=='*Email') {
			alert('A valid email address is required to submit this form.');
			return false;
		}
		
		if (document.mainContact.phone.value=='*Phone Number') {
			alert('Your phone number is required to submit this form.');
			return false;
		}
		
		return true;
}




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;
}


//movie/flash embed

function movie01Get() {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="350" height="478"><param name="movie" value="http://www.utahbreast.com/flash/elegant.swf" /><param name="quality" value="high" /><embed src="http://www.utahbreast.com/flash/elegant.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="350" height="478"></embed></object>');
}


