

	function PopUp(url,w,h) {
			var dim = eval('"width=' + w + ',height=' + h + 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,top=0,left=0"');
			Npop = window.open(url,"pop",dim);
			}

			function checkAll(TheForm, what, value)
			{
				if (what == 1)
				{
					document.TheForm.chk1.checked = value;
					document.TheForm.chk2.checked = value;
					document.TheForm.chk3.checked = value;

                          	}
				else if (what == 2)
				{
					
					document.TheForm.chk4.checked = value;
					document.TheForm.chk5.checked = value;
					document.TheForm.chk6.checked = value;
					document.TheForm.chk7.checked = value;
					document.TheForm.chk8.checked = value;
					document.TheForm.chk9.checked = value;
					document.TheForm.chk39.checked = value;

				}
				else if (what == 3)
				{
				document.TheForm.chk10.checked = value;
				document.TheForm.chk11.checked = value;
				document.TheForm.chk12.checked = value;
				document.TheForm.chk13.checked = value;
				document.TheForm.chk14.checked = value;
				document.TheForm.chk15.checked = value;
				document.TheForm.chk41.checked = value;
				}
				else if (what == 4)
				{
				document.TheForm.chk16.checked = value;
				document.TheForm.chk17.checked = value;
				document.TheForm.chk32.checked = value;
				document.TheForm.chk33.checked = value;
				document.TheForm.chk36.checked = value;
				document.TheForm.chk34.checked = value;
				document.TheForm.chk35.checked = value;
			        document.TheForm.chk40.checked = value;
				}
				else if (what == 5)
				{
				document.TheForm.chk18.checked = value;
				document.TheForm.chk37.checked = value;
				document.TheForm.chk19.checked = value;
				document.TheForm.chk20.checked = value;
				document.TheForm.chk21.checked = value;
				document.TheForm.chk22.checked = value;
				document.TheForm.chk23.checked = value;
				}
				else if (what == 6)
				{
				document.TheForm.chk24.checked = value;
				document.TheForm.chk25.checked = value;
				}
				else if (what == 7)
				{
				document.TheForm.chk26.checked = value;
				document.TheForm.chk27.checked = value;
				document.TheForm.chk28.checked = value;
				document.TheForm.chk38.checked = value;
				}
				else if (what == 8)
				{
				document.TheForm.chk29.checked = value;
				document.TheForm.chk30.checked = value;
				document.TheForm.chk31.checked = value;
				}
			}

			function uncheck(TheForm, value, index) {
			
				if(value == false) {
					if(index == 1 || index == 2 || index == 3) {
					document.TheForm.a1.checked = false;
					}
					else if (index == 7 || index == 4 || index == 5 || index ==6 || index== 8 || index == 9|| index == 39 )
					{
					document.TheForm.a2.checked = false;
					}
					else if (index == 10 || index == 11 || index == 12 || index == 13 || index== 14 || index == 15 || index == 41 )
					{document.TheForm.a3.checked = false;
					}
					else if (index == 16 || index == 17 || index == 40 || index == 36 || index == 35 || index == 34 || index == 33 || index == 32)
					{document.TheForm.a4.checked = false;
					}
					else if (index == 18 || index == 37 || index == 19 || index == 20 || index == 21 || index == 22 || index == 23)
					{document.TheForm.a5.checked = false;
					}
					else if (index == 24 || index == 25)
					{document.TheForm.a6.checked = false;
					}
					else if (index == 26 || index == 27 || index == 28 || index == 38)
					{document.TheForm.a7.checked = false;
					}
					else if (index == 29 || index == 30 || index == 31)
					{document.TheForm.a8.checked = false;
					}
				}
			}
			

			function hideLoadingPage()
			{
				if (document.getElementById)
				{ // DOM3 = IE5, NS6
					document.getElementById('hidepage').style.visibility = 'hidden';
				}
				else
				{
					if (document.layers)
					{ // Netscape 4
						document.hidepage.visibility = 'hidden';
					}
					else
					{ // IE 4
						document.all.hidepage.style.visibility = 'hidden';
					}
				}
			}
