function ShowProgressBar()
{
    if (document.getElementById && document.getElementById("ProgressBar"))
    {
        document.getElementById("ProgressBar").style.visibility = "visible";
	window.setTimeout("document.images['IMG_ProgressBar'].src = document.images['IMG_ProgressBar'].src;",100);
    }
}

function ClosePopupWindows()
{
    if (document.getElementById && document.getElementById("popup"))
    {
        document.getElementById("popup").style.visibility = "hidden";	
    }
}

function ShowPopupWindows()
{
    if (document.getElementById && document.getElementById("popup"))
    {
        document.getElementById("popup").style.visibility = "visible";	
    }
}
			    
function checkAll(f,el)
{
  for (var i=0;i<f.elements.length;i++)
  {
    var e=f.elements[i];
    if (e.name==el) e.checked=f.check_all.checked;
  }
}

function checkAllDomains(f)
{
  for (var i=0;i<f.elements.length;i++)
  {
    var e=f.elements[i];
    e.checked=f.check_all.checked;
  }
}

function showHide(id)
{
  el=document.getElementById(id).style;
  el.display=(el.display == 'block')?'none':'block';
}

function showAll()
{
  for (var i=1;i<12;i++)
  {     
    el=document.getElementById('tab'+i).style;
    el.display = 'block';
  }
}

function hideAll()
{
  for (var i=1;i<12;i++)
  { 
    el=document.getElementById('tab'+i).style;
    el.display = 'none';
  }
}

function displayWindow(theURL,winName,width,height,features) { //v3.1
    var window_width = width;
    var window_height = height;
    var newfeatures= features;
    var window_top = (screen.height-window_height)/2;
    var window_left = (screen.width-window_width)/2;
    newWindow=window.open(''+ theURL + '',''+ winName + '','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ',features=' + newfeatures + '');
    newWindow.focus();
}
