if (document.images) {
   
     button1 = new Image
     button2 = new Image
	 
     button3 = new Image
     button4 = new Image
	 
     button5 = new Image
     button6 = new Image
	 
     button7 = new Image
     button8 = new Image
	 
     button9 = new Image
     button10 = new Image
	 
     button11 = new Image
     button12 = new Image
	 
     button13 = new Image
     button14 = new Image
	 
     button15 = new Image
     button16 = new Image
	 
     button17 = new Image
     button18 = new Image
	 
     button19 = new Image
     button20 = new Image
	 
     button21 = new Image
     button22 = new Image
	 
     button23 = new Image
     button24 = new Image
	 
     button25 = new Image
     button26 = new Image
	 
     button27 = new Image
     button28 = new Image
	 
     button29 = new Image
     button30 = new Image
	 
     button31 = new Image
     button32 = new Image
	 
     button33 = new Image
     button34 = new Image
	 
     button35 = new Image
     button36 = new Image
	 
     button37 = new Image
     button38 = new Image
	 
     button39 = new Image
     button40 = new Image
	 
	 
	 	 
     button1.src = 'images/home.gif'
     button2.src = 'images/home-hvr.gif'
	 
	 button3.src = 'images/about.gif'
     button4.src = 'images/about-hvr.gif'
	 
     button5.src = 'images/service.gif'
     button6.src = 'images/service-hvr.gif'
	 
     button7.src = 'images/plan.gif'
     button8.src = 'images/plan-hvr.gif'
	 
     button9.src = 'images/fees.gif'
     button10.src = 'images/fees-hvr.gif'
	 
     button11.src = 'images/testimonials.gif'
     button12.src = 'images/testimonials-hvr.gif'
	 
     button13.src = 'images/products.gif'
     button14.src = 'images/products-hvr.gif'
	 
     button15.src = 'images/contact.gif'
     button16.src = 'images/contact-hvr.gif'
	 
     button17.src = 'images/legal.gif'
     button18.src = 'images/legal-hvr.gif'
	 
     button19.src = 'images/tooth.jpg'
     button20.src = 'images/tooth-hvr.jpg'
	 
     button21.src = 'images/implants.jpg'
     button22.src = 'images/implants-hvr.jpg'
	 
     button23.src = 'images/smile.jpg'
     button24.src = 'images/smile-hvr.jpg'
	 
     button25.src = 'images/brace.jpg'
     button26.src = 'images/brace-hvr.jpg'
	 
     button27.src = 'images/sedation.jpg'
     button28.src = 'images/sedation-hvr.jpg'
	 
     button29.src = 'images/team.jpg'
     button30.src = 'images/team-hvr.jpg'
	 
     button31.src = 'images/pateints.jpg'
     button32.src = 'images/pateints-hvr.jpg'
	 
     button33.src = 'images/appoint.jpg'
     button34.src = 'images/appoint-hvr.jpg'
	 
     button35.src = 'images/testimonials.jpg'
     button36.src = 'images/testimonials-hvr.jpg'
	 
     button37.src = 'images/contactus.jpg'
     button38.src = 'images/contactus-hvr.jpg'
	 
     button39.src = 'images/appointment1.jpg'
     button40.src = 'images/appointment1-hvr.jpg'
 }
 
 function fullcheck()
{
  var str=document.dentistform.email.value;
//alert(str);

		if(!validate_text(document.dentistform.name,1,"Blank space not allowed. Please Enter Your Name."))
		return false;
		if(!validate_email(document.dentistform.email,1))
		return false;
		if(!validate_text(document.dentistform.comments,1,"Blank space not allowed. Please Enter Your Comments."))
		return false;
}


var submitRolls = new Object();

function submitroll(src, oversrc, name)
{
this.src=src;
this.oversrc=oversrc;
this.name=name;
this.alt="Search";
this.write=submitroll_write;
}

function submitroll_write()
{
var thisform = 'document.forms[' + (document.forms.length - 1) + ']';
submitRolls[this.name] = new Object();
submitRolls[this.name].over = new Image();
submitRolls[this.name].over.src = this.oversrc;
submitRolls[this.name].out = new Image();
submitRolls[this.name].out.src = this.src;

document.write
	(
	'<A onMouseOver="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].over.src"' + 
	' onMouseOut="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].out.src"' + 
	' HREF="javascript:'
	);

if (this.sendfield)
	{
	if (! this.sendvalue)
		this.sendvalue = 1;
	document.write(thisform, ".elements['", this.sendfield, "'].value='", this.sendvalue, "';");
	}

document.write(thisform + '.submit();void(0);"');
document.write(' onClick="return fullcheck()"');
document.write('>');

document.write('<IMG SRC="' + this.src + '" ALT="' + this.alt + '" BORDER=0 NAME="' + this.name + '"');
if (this.height)document.write(' HEIGHT=' + this.height);
if (this.width)document.write(' WIDTH='  + this.width);
if (this.otheratts)document.write(' ' + this.otheratts);
document.write('></A>');
if (this.sendfield)
	{
	document.write('<INPUT TYPE=HIDDEN NAME="' + this.sendfield + '">');
	document.forms[document.forms.length - 1].elements[this.sendfield].value='';
	}
}