﻿// Comments:
// 2009-8-31 - Lance Wheeler - Added .js page for adding location info to textbox on welcome.aspx
// how to add to page example:  <script language="JavaScript" type="text/javascript" src="Javascript/addlocation.js"></script>
// how to add in code example:  txt_areaCode.Attributes.Add("onKeyUp", "return AddLocation(location)");
// THE PAGE CALLING THIS NEEDS TO HAVE AN OBJECT CALLED location OR ELSE THIS WILL BLOW UP IN YO FACE

//2009-12-05 - Brian Simper - Changed document.all to document.getElementById so it works with Firefox
//and other compliant browsers


function AddLocation() {
    if (document.getElementById("chk_TermsOfService").checked == true) {
        document.getElementById("ctl00_ContentPlaceHolder1_FindLawyer").disabled = false;
    }
    else {
        document.getElementById("ctl00_ContentPlaceHolder1_FindLawyer").disabled = true;
    }
}
