function chBg(obj) {
  obj.bgColor = "#E1E5DB";
}

function chBg2(obj) {
  obj.bgColor = "#CBD1C3";
}

function initPopups() {
  // add an onclick event to every hyperlink with a class of 'popup'
  var els = document.getElementsByTagName("a");
  for(var i = 0; i < els.length; i++) {
    if (els[i].className.indexOf("popup") !=- 1) {
      els[i].onclick=popup;
    }
  }
}


function newPop(imgfile)
{
}


function closeMe(){
  win.close() ;
}

function popup() {
  // load the popup image into a temporary Image structure
  // once its finished loading, open the window with the correct Image dimensions
  // pulled from the Image structure

  var img=new Image;
  img.src=this.href;
  title = this.title ;
  img.onload=function () {

    CONTENT = "<htmlL><HEAD><TITLE>" + title + "</TITLE></HEAD>" + "<BODY><CENTER>"
    + "<IMG SRC='" + img.src + "' BORDER=0>" +  " <P>"
    + "<FORM><INPUT TYPE='BUTTON' VALUE='Close'" + "onClick='window.close()'></FORM>"
    + "</CENTER>"+ "</BODY></HTML>";
    win =window.open("", "popup", "width="+(img.width+16)+",height="+(img.height+64)) ;
    
    win.document.open();
    win.focus();
    win.document.write(CONTENT);
    win.document.close();
  };
  // prevent the hyperlink from doing its default behaviour
  return false; 
}


function right(e){
  var msg="Right clicking is not possible on this document."; 
  if (navigator.appName=='Netscape'&&e.which==3){
    alert(msg);return false;
  }
  else if(navigator.appName=='Microsoft Internet Explorer' &&  event.button==2){
    alert(msg);
    return false;
  }
  return true;
}
