<!-- 
/**
 * Take clicks on letters from the London map and make the corresponding checkbox on the form check/uncheck.
 */

var formName = 'enForm'; //Give the form name here


/* toggleCheckBox takes a clicking action on a letter in the map frame then check/unchecks the 
	corresponding checkbox in the form in the lower frame
 */
function toggleCheckBox(checkboxName) {
	var form = top.mainFrame.document.forms[formName];   //address the form in the lower frame

	var len = form.elements.length;
	var i=0;
	for(i=0 ; i<len ; i++) {
		if (form.elements[i].name == checkboxName) {
			if (form.elements[i].checked == 0) {
				form.elements[i].checked = 1;
			}
			else {
				form.elements[i].checked = 0;
			}
		}
	} //end for
}

// -->