function getText(){
  document.getElementById("text").innerHTML = opener.parent.document.getElementById("maintext").innerHTML;
  document.getElementById("url").innerHTML = opener.parent.document.location;
  print();
}

function showpic(picture, title){
        NewWin = window.open('picturepopup.php?pic=' + picture + '&title=' + title, 'picture', 'width=150,height=150,resizable');
        NewWin.focus();
}

function ChangeBgColor(elm, color) {
      elm.style.backgroundColor=color;
}

function ChangeBgImage(elm, filename) {
      elm.style.backgroundImage="url('images/bar_white_bg.jpg')";
}

function Trans(elm,value){
  if(elm.filters)
    elm.filters.alpha.opacity = value;
  else if(elm.style.MozOpacity)
    elm.style.MozOpacity = value/100;
  else if(elm.style.opacity)
    elm.style.opacity = value/100;
}

function submenuDropDown(id){
    if (document.getElementById("submenu"+id).style.display=="inline") {
        document.getElementById("submenu"+id).style.display="none";
    } else {
        document.getElementById("submenu"+id).style.display="inline";
    }
}
