function win(loc,w,h)
{
var ww=window.open(loc,"","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,top=150,left=200,width="+w+",height="+h);
ww.focus();
}

function win1(loc,w,h)
{
var ww=window.open(loc,"","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,top=150,left=200,width="+w+",height="+h);
ww.focus();
}

function movepic(img_name,img_src) {
document[img_name].src=img_src;
}

function high(which2){
  theobject=which2
  highlighting=setInterval("highlightit(theobject)",10)
  }
function low(which2){
  clearInterval(highlighting)
  which2.filters.alpha.opacity=20
  }
function highlightit(cur2){
  if (cur2.filters.alpha.opacity<100)
  cur2.filters.alpha.opacity+=10
  else if (window.highlighting)
  clearInterval(highlighting)
  }


function inverse_elem(id) {
  elem=document.getElementById(id);
  if (elem.style.display=="none") {
    elem.style.display="";
  }
  else {
    elem.style.display="none";
  }
}