// JavaScript Document


function popUp(theURL, Name, popW, popH, scroll) { 
		var winleft = (screen.width - popW) / 2;
		var winUp = (screen.height - popH) / 2;
		winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable'
		Win = window.open(theURL, Name, winProp)
		if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }
	}
	
	

function rowAction(theRow, theAction, theTarget, functionName) {
		
		if (theAction == 'goto') {
		
			window.location = theTarget;

		} else if (theAction == 'drop') {
		
			showHide(theTarget);
		
		} else if (theAction == 'function') {
		
			var runFunction = eval(functionName);
		
			runFunction(theTarget);
		
		} else {

			var theCells = null;
		
			if (typeof(document.getElementsByTagName) != 'undefined') {
				theCells = theRow.getElementsByTagName('td');
			}
			else if (typeof(theRow.cells) != 'undefined') {
				theCells = theRow.cells;
			}
			else {
				return false;
			}
			
			var rowCellsCnt = theCells.length;
			
	
			if (theAction == 'out') {
				
				for (c = 0; c < rowCellsCnt; c++) {
					theCells[c].style.backgroundColor = current_color;
				}
			
			} else if (theAction == 'over') {
			
				for (c = 0; c < rowCellsCnt; c++) {
					current_color = theCells[c].style.backgroundColor; // set orignal row color for mouseout
					theCells[c].style.backgroundColor = '#A9C7EC';
					theCells[c].style.cursor = 'pointer';
				}
			
			} else {
				
				return false;
				
			}
			
		}
		
		
		
	}
	