// Flash embedding for validation//
function printFlash(source, width, height, id, bg_color) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ');
	document.write('width="'+width+'" height="'+height+'" id="'+id+'" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+source+'" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="'+source+'" menu="false" quality="high" width="'+width+'" height="'+height+'" name="'+id+'" align="middle" wmode="transparent" ');
	document.write('allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

// clears and replaces text in form input fields and textareas//
function clearText(thefield) {
  if (thefield.defaultValue==thefield.value) { thefield.value = "" }
} 
function replaceText(thefield) {
  if (thefield.value=="") { thefield.value = thefield.defaultValue }
}
function newsLetterVerification(){
	if(document.signup.email_newsletter.value == ""){
		alert("Enter valid email!");
		document.signup.email_newsletter.focus();
		return false;
	}else{
		newString = document.signup.email_newsletter.value;
		if(!newString.match(/^[a-z0-9_\-]+(\.[_a-z0-9\-]+)*@([_a-z0-9\-]+\.)+([a-z]{2}|aero|arpa|biz|com|coop|edu|gov|info|int|jobs|mil|museum|name|nato|net|org|pro|travel)$/)){
			alert("Invalid email!");
			document.signup.email_newsletter.focus();
			return false;
		}
	}
}
//YY_checkform('contact_quick','contact_greeting','#q','0','Field \' Address Me As \' is required.','contact_email','S','2','Field \' Email \' is required.');return document.MM_returnValue
function YY_checkform(pass1, pass2, pass3, pass4, pass5, pass6, pass7, pass8, pass9){
}
function verify(frmName){
	if(document.getElementById('first_name').value == ""){
		alert("Please enter First Name!");
		document.getElementById('first_name').focus();
		return false;
	}
	if(document.getElementById('last_name').value == ""){
		alert("Please enter Last Name!");
		document.getElementById('last_name').focus();
		return false;
	}
	if(frmName.street_address.value == ""){
		alert("Please enter Street Address!");
		frmName.street_address.focus();
		return false;
	}
	if(document.getElementById('city').value == ""){
		alert("Please enter City!");
		document.getElementById('city').focus();
		return false;
	}	
	if(document.getElementById('Zip').value == ""){
		alert("Please enter Zip!");
		document.getElementById('Zip').focus();
		return false;
	}	
	if(document.getElementById('home_phone').value == ""){
		alert("Please enter Home Phone!");
		document.getElementById('home_phone').focus();
		return false;
	}	
	if(document.getElementById('email_address').value == ""){
		alert("Please enter Email address!");
		document.getElementById('email_address').focus();
		return false;
	}else{
		newString = document.getElementById('email_address').value;
		if(!newString.match(/^[a-z0-9_\-]+(\.[_a-z0-9\-]+)*@([_a-z0-9\-]+\.)+([a-z]{2}|aero|arpa|biz|com|coop|edu|gov|info|int|jobs|mil|museum|name|nato|net|org|pro|travel)$/)){
			alert("Invalid Email address!");
			document.getElementById('email_address').focus();
			return false;
		}	
	}
	if(document.getElementById('verify_email_address').value == ""){
		alert("Please enter Verify Email address!");
		document.getElementById('verify_email_address').focus();
		return false;
	}else{
		newString = document.getElementById('verify_email_address').value;
		if(!newString.match(/^[a-z0-9_\-]+(\.[_a-z0-9\-]+)*@([_a-z0-9\-]+\.)+([a-z]{2}|aero|arpa|biz|com|coop|edu|gov|info|int|jobs|mil|museum|name|nato|net|org|pro|travel)$/)){
			alert("Invalid Verify Email address!");
			document.getElementById('verify_email_address').focus();
			return false;
		}	
	}
	if(document.getElementById('email_address').value != document.getElementById('verify_email_address').value){
		alert("Email and Verify Email should be same!");
		document.getElementById('verify_email_address').focus();
		return false;
	}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

<!--

function mmLoadMenus(index) {
  if (window.mm_menu_0812175701_0) return;
  
	window.mm_menu_0812175701_0 = new Menu("root",125,22,"Arial, Helvetica, sans-serif",12,"#666666","#FFFFFF","#9CC3E7","#7B9ADE","left","middle",3,0,300,-5,7,true,false,true,0,false,false);
	
	if(index) mm_menu_0812175701_0.addMenuItem("Botox&nbsp;/&nbsp;Dysport","location='html/botox-dysport-page.html'");
	else mm_menu_0812175701_0.addMenuItem("Botox&nbsp;/&nbsp;Dysport","location='botox-dysport-page.html'");
	
	if(index) mm_menu_0812175701_0.addMenuItem("Latisse&nbsp;Pittsburgh","location='html/latisse-pittsburgh.html'");
	else mm_menu_0812175701_0.addMenuItem("Latisse&nbsp;Pittsburgh","location='latisse-pittsburgh.html'");

	if(index) mm_menu_0812175701_0.addMenuItem("Permanent&nbsp;Makeup","location='html/permanent_makeup_pittsburgh.html'");
	else mm_menu_0812175701_0.addMenuItem("Permanent&nbsp;Makeup","location='permanent_makeup_pittsburgh.html'");
	
	mm_menu_0812175701_0.hideOnMouseOut=true;
	mm_menu_0812175701_0.bgColor='#555555';
	mm_menu_0812175701_0.menuBorder=1;
	mm_menu_0812175701_0.menuLiteBgColor='#FFFFFF';
	mm_menu_0812175701_0.menuBorderBgColor='#777777';

	window.mm_menu_0812175705_0 = new Menu("root",125,22,"Arial, Helvetica, sans-serif",12,"#666666","#FFFFFF","#9CC3E7","#7B9ADE","left","middle",3,0,300,-5,7,true,false,true,0,false,false);
	
	if(index) mm_menu_0812175705_0.addMenuItem("Video Library","location='html/video_library.html'");
	else mm_menu_0812175705_0.addMenuItem("Video Library","location='video_library.html'");
	
	mm_menu_0812175705_0.hideOnMouseOut=true;
	mm_menu_0812175705_0.bgColor='#555555';
	mm_menu_0812175705_0.menuBorder=1;
	mm_menu_0812175705_0.menuLiteBgColor='#FFFFFF';
	mm_menu_0812175705_0.menuBorderBgColor='#777777';

	if(index) mm_menu_0812175705_0.addMenuItem("Press","location='html/press_release.html'");
	else mm_menu_0812175705_0.addMenuItem("Press","location='press_release.html'");
	
	mm_menu_0812175705_0.hideOnMouseOut=true;
	mm_menu_0812175705_0.bgColor='#555555';
	mm_menu_0812175705_0.menuBorder=1;
	mm_menu_0812175705_0.menuLiteBgColor='#FFFFFF';
	mm_menu_0812175705_0.menuBorderBgColor='#777777';

	if(index) mm_menu_0812175705_0.addMenuItem("Articles","location='html/article.html'");
	else mm_menu_0812175705_0.addMenuItem("Articles","location='article.html'");
	
	mm_menu_0812175705_0.hideOnMouseOut=true;
	mm_menu_0812175705_0.bgColor='#555555';
	mm_menu_0812175705_0.menuBorder=1;
	mm_menu_0812175705_0.menuLiteBgColor='#FFFFFF';
	mm_menu_0812175705_0.menuBorderBgColor='#777777';

    mm_menu_0812175705_0.addMenuItem("Blog","window.open('http://acquablumedicalspa.com/blog')");
	mm_menu_0812175705_0.writeMenus();
} // mmLoadMenus()

-->