function showHide(object) {
  
  myObject = document.getElementById(object);
  if (myObject.style.display == 'none') {
    myObject.style.display = 'block';
  } else {
    myObject.style.display = 'none';
  }

}

function openPopupWindow(tag,url,width,height,flag) {
  if (navigator.appName != "Netscape") {
    width += 10; height += 10;
  }
  if (flag == 2) {
    newpopupwin = window.open(url,tag,'resizable=yes,width='+width+',height='+height+',locaiton=yes,toolbar=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes');
  } else if (flag == 1) {
    newpopupwin = window.open(url,tag,'resizable=yes,width='+width+',height='+height+',location=no,toolbar=no,directories=no,status=no,menubar=yes,scrollbars=yes');
  } else {
    newpopupwin = window.open(url,tag,'resizable=yes,width='+width+',height='+height+',location=no,toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes');
  }
}
