function CheckAll(form)
  {
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.Name != "chkAll")
       e.checked = form.chkAll.checked;
    }
  }

function ShowDialog(url,w,h)
{
	var winleft,wintop
	winleft=(window.screen.width-300)/2	
	wintop = (window.screen.height-250)/2
	var arr = showModalDialog(url,window,"dialogWidth:" + w + "px;dialogHeight:" + h + "px;help:no;scroll:no;status:no;left=" + winleft + "px;top=" + wintop+"px");
}


function PopupWindow(theURL,w,h) { //v2.0
 if (! window.focus) return true;
  var href;
  if (typeof(theURL) == 'string')
    href=theURL;
  else
    href=theURL.href;
  window.open(href, "", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h);
  return false;
}

function over(obj)
{
	obj.className = 'button_over';
}
function out(obj)
{
	obj.className = 'button_out';
}


