<!--
var ie55 = /MSIE ((5\.[56789])|([6789]))/.test( navigator.userAgent ) &&
			navigator.platform == "Win32";
			
var isIE = ie55;

function openWindowCenter(url, name, width, height) {
  x = (screen.width - width) / 2;
  y = (screen.height - height) / 2;

  window.open(url, name, 'toolbars=0, status=1, resizable=1, scrollbars=1, width=' + width + ', height=' + height + ', screenX=' + x + ', left=' + x + 'screenY=' + y + ', top=' + y);
};

function openDialog(url, name, width, height) {
  x = (screen.width - width) / 2;
  y = (screen.height - height) / 2;

  window.open(url, name, 'toolbars=0, status=0, resizable=0, scrollbars=0, width=' + width + ', height=' + height + ', screenX=' + x + ', left=' + x + 'screenY=' + y + ', top=' + y);
};

function openWindow(url, name, width, height) {
  x = (screen.width - width) / 2;
  y = (screen.height - height) / 2;

  window.open(url, name, 'toolbars=0, status=1, resizable=1, scrollbars=0, width=' + width + ', height=' + height + ', screenX=' + x + ', left=' + x + 'screenY=' + y + ', top=' + y);
};

function actionNotSupported() {
  alert('This action is not supported by your browser!');
};

function disableBtn(btn, frame, img) {
  try {
    if (eval("parent.frames(frame).document." + btn)) {
      eval("parent.frames(frame).document." + btn + ".src = '../images/' + img + '_disabled.gif'");
    }
  } catch(e) {
  };
};

function enableBtn(btn, frame, img) {
  try {
    if (eval("parent.frames(frame).document." + btn)) {
      eval("parent.frames(frame).document." + btn + ".src = '../images/' + img + '.gif'");
    }
  } catch(e) {
  };
};

var selId = '';
var selName = '';

var curRow = '';
var curClassName = '';

function selectRow(row, selectedId, selectedName) {
	if (curRow != '') {
		curRow.className = curClassName;
	};
	
	selId = selectedId;
	selName = selectedName;
	
	curRow = row;
	curClassName = row.className;
	row.className = 'gridrowselected';
	
	if (document.edit) { document.edit.src = '/images/edit.gif' }
	if (document.del) { document.del.src = '/images/delete.gif' }
};

//-->
