function check2() {
	if (!document.getElementById("id2").checked) {
		if (!document.getElementById("errCont2").hasChildNodes()) {
		  var errDiv = document.createElement('div');
		  errDiv.setAttribute('id','error');
		  errDiv.appendChild(document.createTextNode("You are unable to begin a new dispute."));
		  var br1 = document.createElement('br');
		  errDiv.appendChild(br1);
		  var br2 = document.createElement('br');
		  errDiv.appendChild(br2);

             errDiv.appendChild(document.createTextNode("The form is redisplayed with incorrect fields identified by: "));
             var img1 = document.createElement('img');
			  img1.setAttribute('src', '/_code/images/icons/alert.gif');
			  img1.setAttribute('alt', '**');
			  errDiv.appendChild(img1);
             errDiv.appendChild(document.createTextNode("."));

		  var br3 = document.createElement('br');
		  errDiv.appendChild(br3);
		  var br4 = document.createElement('br');
		  errDiv.appendChild(br4);
		  errDiv.appendChild(document.createTextNode("Please check the following item and try again:"));
		  var listOL = document.createElement('ol');
		  var listLI = document.createElement('li');
		  var a = document.createElement('a');
		  a.setAttribute('href', '/publicsafety/consumeraffairs/consumers/pdf/Terms.pdf');
		  a.appendChild(document.createTextNode("You must agree to the terms and conditions"));
		  listLI.appendChild(a);
	      listOL.appendChild(listLI);
		  errDiv.appendChild(listOL);
		  document.getElementById("errCont2").appendChild(errDiv);
		  document.getElementById("id2").focus();
		  //
		  var label = document.getElementById("id3");
		  label.removeChild(label.firstChild);
		  var span = document.createElement('span');
	      span.style.color ="rgb(255,0,0)";
		  span.style.fontWeight="bold";
		  span.appendChild(document.createTextNode("I agree to the terms and conditions. *"));

		  var img = document.createElement('img');
			  img.setAttribute('src', '/_code/images/icons/alert.gif');
			  img.setAttribute('alt', '**');
			  label.appendChild(img);

		  label.appendChild(document.createTextNode(" "));
		  label.appendChild(span);
		}
	} else {
		document.getElementById("form2").submit();
	}
}

// original file: http://www.bentoweb.org/ts/XHTML1_TestSuite2/testfiles/sc2.5.1_l1_028.html
// Copyright &#169; BenToWeb Consortium 2004-2006
// Licensed under the BenToWeb License, Version 1.0 (the "License"); you may
// not use this file except in compliance with the License. You may obtain
// a copy of the License at http://bentoweb.org/refs/LICENSE.html
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.