var b=new Array(
	'ourservices',
	'ourproducts',
	'commoninjuries',
	'aboutus',
	'testimonials',
	'faqs',
	'resources',
	'location',
	'contactus'
);

for(x=0;x<b.length;x++) {
	eval(b[x]+"_off=new Image();");
	eval(b[x]+"_off.src=\"images/b"+b[x]+"0.gif\";");
	eval(b[x]+"_on=new Image();");
	eval(b[x]+"_on.src=\"images/b"+b[x]+"1.gif\";");
}

function button_on ( imgName ) {
	butOn = eval ( imgName + "_on.src" );
	document [imgName].src = butOn;
}

function button_off ( imgName ) {
	butOff = eval ( imgName + "_off.src" );
	document [imgName].src = butOff;
}


function checkform ( application )
{

   		if (application.fname.value == "") {
        alert( "Please enter your first name." );
        application.fname.focus();
        return false ;
    }
			if (application.lname.value == "") {
        alert( "Please enter your last name." );
        application.lname.focus();
        return false ;
    }
    	if (application.address.value == "") {
        alert( "Please enter your address." );
        contact.lastname.focus();
        return false ;
    }
	    if (application.email.value == "") {
        alert( "Please enter your email address." );
        application.email.focus();
        return false ;
    }
	    if (application.hphone.value == "") {
        alert( "Please enter your home phone number." );
        application.phone.focus();
        return false ;
    }
		
	return true ;
}



