document.write('<img src="/images/seo_guaranteed.gif" border="0" width="150" height="150" alt="Guaranteed Dental Website SEO" usemap="#595" style="z-index: 1;position:absolute; right:0px; top:0px; margin:0px; padding:0px">')

function createplayer(theFile, go) {
var s = new SWFObject("http://www.thevisibledentist.com/video/mediaplayer.swf","playerID","289","249","7");
s.addParam("allowfullscreen","true");
s.addVariable("file",theFile);
s.addVariable("width","289");
s.addVariable("height","249");
s.addVariable("displayheight","229");
s.addVariable("overstretch","fit");
s.addVariable("flashvars","&amp;image=http://www.thevisibledentist.com/video/hey.jpg");
s.addVariable("backcolor","0x072B52");
s.addVariable("frontcolor","0xFFFFFF");
s.addVariable("lightcolor","0x000000");
if (go) { s.addVariable("autostart","true"); }
s.write("player");
}

function validate() {
var theMessage = "";
var noErrors = theMessage
if (document.form1.q.value=="") {theMessage = theMessage + "\n Please enter a search term";}
if (theMessage == noErrors) {return true;
} else {
alert(theMessage);
return false;
}
}

function validate2() {
var theMessage = "Before sending this request: \n--------------------------------------";
var noErrors = theMessage
if (document.form2.name.value=="") {theMessage = theMessage + "\n > Please enter your name";}
if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.form2.email.value)){
theMessage = theMessage + "\n > Enter a valid email address";}
if (document.form2.phone.value=="") {theMessage = theMessage + "\n > Provide your phone number";}
if (theMessage == noErrors) {return true;
} else {
alert(theMessage);
return false;
}
}

function validate3() {
var theMessage = "";
var noErrors = theMessage
if (document.form3.q.value=="") {theMessage = theMessage + "\n Enter your city or town";}
if (theMessage == noErrors) {return true;
} else {
alert(theMessage);
return false;
}
}

function frmCalculate(theForm){
 if(isNaN(theForm.txtInvestment.value)){theForm.txtInvestment.value=1;}
 if(isNaN(theForm.txtVolume.value)){theForm.txtVolume.value=0;}
 if(isNaN(theForm.txtConversion.value)){theForm.txtConversion.value=0;}
 if(isNaN(theForm.txtPrice.value)){theForm.txtPrice.value=1;}
 theForm.txtReturn.value=(theForm.txtVolume.value)*(theForm.txtConversion.value)/100*(theForm.txtPrice.value);
 if(theForm.txtReturn.value!=0){
   theForm.txtMonths.value=Math.round(100*theForm.txtInvestment.value/theForm.txtReturn.value)/100;
 } else {
   theForm.txtMonths.value="!Error";
   }
}

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}




