function openImgWindow(theURL,winName,dim1,dim2) {
HTML = "<head><title>" + winName + "</title><html><style>body{margin:0px 0px 0px 0px}</style></head><body><img onClick='window.close()' src='"+ theURL +"' border=0 name=load_image></body></html>";
picx = dim1;
picy = dim2;
  w = Math.floor((screen.width - dim1) / 2);
  h = Math.floor((screen.height - dim2) / 2);
  var features = "width=" + picx + ",height=" + picy + ",screenX=" + w + ",screenY=" + h + ",left=" + w + ",top=" + h + ",toolbar=no,scrollbars=no,resizable=no";
  popupImage = window.open('','_blank',features);
  popupImage.document.open();
  popupImage.document.write(HTML);
  popupImage.document.close();
}

function openBrWindow(theURL) {
	w2 = Math.floor((screen.width - 760) / 2);
	h2 = Math.floor((screen.height - 280) / 2);
	window.open(theURL,"Edit","width=760,height=280,screenX=" + w2 + ",screenY=" + h2 + ",left=" + w2 + ",top=" + h2 + ",toolbar=no,scrollbars=no,resizable=no");
}

function makevisible(cur,which){
if (which==0)
cur.filters.alpha.opacity=100
else
cur.filters.alpha.opacity=75
}

