
	// JavaScript Document
	
	function toggle (id) {
		cBox = document.getElementById(id);	if (cBox.checked) {	cBox.checked = false;
			document.getElementById(id + 'row').style.backgroundColor = '';	}
		else { cBox.checked = true; document.getElementById(id + 'row').style.backgroundColor = '#ffcccc';	}
	}
	
	function toggleRow (id) {
		cBox = document.getElementById(id);	if (cBox.checked) { document.getElementById(id + 'row').style.backgroundColor = '#ffcccc';
		}else{document.getElementById(id + 'row').style.backgroundColor = '';}	
	}
	
	function findObj (n, d) {
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
	
	function toggleAll () {
		aBox = document.getElementById('all');bBox = document.getElementById('all2');if (!aBox.checked) {
		toggleAllB ('manageTable', false, false);bBox.checked = false;}else{
		toggleAllB ('manageTable', false, true);bBox.checked = true;}
	}
	
	function toggleAll2 () {
		bBox = document.getElementById('all');aBox = document.getElementById('all2');if (!aBox.checked) {
		toggleAllB ('manageTable', false, false);bBox.checked = false;}else{
		toggleAllB ('manageTable', false, true);bBox.checked = true;}
	}

	function toggleAllB () {
		var sF = arguments[0], bT = arguments[1], bC = arguments[2], oF = findObj(sF);for (var i=0; i<oF.length; i++) {
		if (oF[i].type == "checkbox") {	if (bT) {oF[i].checked = !oF[i].checked;}
		else{if (cRow = document.getElementById(oF[i].id + 'row')) {oF[i].checked = bC;	if (bC) {
		cRow.style.backgroundColor = '#ffcccc';	}else{cRow.style.backgroundColor = '';}}}}} 
	}
	
	function submitEdit() {
		document.getElementById('edit').value='1';document.forms.manageTable.submit();
	}
	
	function submitDelete() {
		if (confirm('Are you sure you want to delete these records?')) { document.getElementById('delete').value='1'; document.forms.manageTable.submit(); }
	}
	
	function checkForm (id) {
		
	}
	
	var reqFields = new Array();