function rowOverEffect(object) {
  if (object.className == 'dataTableRow1') object.className = 'dataTableRowOver1';
  if (object.className == 'dataTableRow2') object.className = 'dataTableRowOver2';
}

function rowOutEffect(object) {
  if (object.className == 'dataTableRowOver1') object.className = 'dataTableRow1';
  if (object.className == 'dataTableRowOver2') object.className = 'dataTableRow2';
}


function show_hide_div(div_id, action) {		//	v. 0.0

	var div_name = div_id;
//	var action = action;

	if (document.getElementById) {
		// this is the way the standards work

//		if(action.length > 0) {
		if(action != '') {

			document.getElementById(div_name).style.display = action;
		}
		else {

			if(document.getElementById(div_name).style.display == "block") {

				document.getElementById(div_name).style.display = "none";
			}
			else {

				document.getElementById(div_name).style.display = "block";
			}
		}
	}
	else if (document.all) {
		// this is the way old msie versions work

		if(action != '') {

			document.getElementById(div_name).style.display = action;
		}
		else {

			if(document.getElementById(div_name).style.display == "block") {

				document.all[div_name].style.display = "none";
			}
			else {
				document.all[div_name].style.display = "block";
			}
		}
	}
	else if (document.layers) {
		// this is the way nn4 works
		if(action != '') {

			document.getElementById(div_name).style.display = action;
		}
		else {
			if(document.getElementById(div_name).style.display == "block") {

				document.layers[div_name].style.display = "none";
			}
			else {
				document.layers[div_name].style.display = "block";
			}
		}
	}
}

function open_popup(directory, file_name, width, height, window_name, position) {		//	v. 0.0

	if(width == '') {width = 500;}
	if(height == '') {height = 450;}
    //var width = 500;
    //var height = 450;

    if(position == 'right') {
		var winleft = (screen.width - width);
		//var winleft = 30;
		if (winleft < 0) winleft = 0;
		var wintop = 0;
    }
    else if(position == 'left') {
    	var winleft = 0;
    	var wintop = 0;
    }
    else {
		var winleft = (screen.width - width) / 2;
		if (winleft < 0) winleft = 0;
		var wintop = (screen.height - height) / 2;
		if (wintop < 0) wintop = 0;
    }
    var parameters = "width="+width+", height="+height+", left="+winleft+", top="+wintop+", toolbar=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes";
	var file_to_open = directory+'/'+file_name;

	var new_window;

	new_window = window.open(file_to_open, window_name, parameters);
	new_window.focus();
}

