function changeBg(elem1, elem2, color1, color2) {
  el1 = document.getElementById(elem1);
	el2 = document.getElementById(elem2);
	if (el1 != null && el2 != null){	
	  el1.style.background = color1;
	  el2.style.background = color2;
	}
}

function pop(url,w,h){
  var nam = url.substr(url.lastIndexOf("/") + 1);
  nam = nam.substr(0, nam.indexOf("."));
  nam = nam.replace(/\W+/g, '');
  window.open(url, nam, 'scrollbars=no,status=no,resizable=no, width='+w+', height='+h+',screenX=10,screenY=10,top=10,left=10');
}

function toggleBoards(obj) {
  el = document.getElementById(obj);
  if(el != null) {
    if(el.style.display == 'inline')
  	el.style.display = 'none';
   else
	el.style.display = 'inline';
  }
}

function showPanel(obj, type) {
  el = document.getElementById(obj);
  if(el != null) {
    el.style.display = type;
  }
}

