	function toggler(id) {
		if(id.value == "Yes" || (id.value == "other") ) {
		// IE barfs if you use table-row, firefox doesn't display block correct, so need empty string
		 document.getElementById( id.name +'Note').style.display='';
		} else { 
		 document.getElementById( id.name +'Note').style.display='none';
		}
	}
	
	function toggler(id, yn) {
	/* if yn equals Yes, element opens on clicking yes
       if yn equals No, element opens on clicking no
	*/
		if(id.value == yn) {
		// IE barfs if you use table-row, firefox doesn't display block correct, so need empty string
		 document.getElementById( id.name +'Note').style.display='';
		} else { 
		 document.getElementById( id.name +'Note').style.display='none';
		}
	}

	function hideNotes(){
		var tableID = document.getElementById('application');
		var trs = tableID.getElementsByTagName('tr');
		for(i=0;i<trs.length;i++){
		   if(RegExp('/*Note').test(trs[i].id)) {
			trs[i].style.display='none';
		   }
	  	}
	}
	
	function init(){
		var rows = document.getElementsByTagName('tr');
		for(i=0; i<rows.length; i++) {			 			
			if ((rows[i].id).match("Note"))
			{ 
				rows[i].style.display='none';
//				alert(rows[i].id);
				//alert(rows[i].parentNode.getElementsByTagName('input')[0].parentNode);
//				alert(parentForm(rows[i]).name);
//				alert(rows[i].id);
//				alert('document.' + parentForm(rows[i]).name + '.' + (rows[i].id.substring(0,rows[i].id.length-4)));
				var question = eval('document.' + parentForm(rows[i]).name + '.' + (rows[i].id.substring(0,rows[i].id.length-4)));
//				var question = eval('document.app.' + (rows[i].id.substring(0,rows[i].id.length-4)));

//				parentForm(question[0]);
				for(j=0;j<question.length;j++) {
					if(question[j].checked) {
						question[j].click();
					}
				}
			}
		}
	}
	
	function parentForm(tst) {
		var tmp = new Object();
		tmp = tst;
//	alert("tmp.tagName " + tmp.tagName);
//		if( tmp.tagName != null ) { alert("IE"); } else { alert("notIE"); }
		while( tmp.tagName != 'FORM'){
//			alert(tmp.tagName == 'FORM');
//			if(tmp == null) { break; }
			tmp = tmp.parentNode;
//			alert("Child " + tmp);
		}
		return tmp;
	}
	
	
	function startList() {
		if (document.all&&document.getElementById) {
			navRoot = document.getElementById("nav");
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
					}
					node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
					}
				}
			}
		}
	}	
	window.onload=function(){ 
		init(); 
		var na = navigator.appVersion;
		if(na.indexOf('Mac')==-1) {	
			startList();
		}
	} 
	
/**  
    function open_win(url){
      window.open(url,"_blank","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=yes,left =130,top = 142.5 width=800, height=400")
    }
**/