function PopupImage(url, title, width, height) {
	winwidth = width + 10;
	winheight = height + 40;
	oPopup=window.open('','_blank','width=' + winwidth +',height=' + winheight + ',resizable=0,top=50,left=10');
	oPopup.resizeTo(winwidth, winheight);
	oPopup.document.clear();
	oPopup.focus();
	oPopup.document.write('<HTML>');
	oPopup.document.write('<HEAD>');
	oPopup.document.write('<META HTTP-EQUIV="imagetoolbar" CONTENT="no">');
	oPopup.document.write('<TITLE>' + title + '</TITLE>');
	oPopup.document.write('</HEAD>');
	oPopup.document.write('<BODY STYLE="margin:0, padding:0">');
	oPopup.document.writeln('<A HREF="javascript:window.close();">');
	oPopup.document.writeln('<IMG WIDTH=' + width + ' HEIGHT=' + height + ' BORDER=0 ALT="' + 'close screenshot' + '" SRC=' + url + '>');
	oPopup.document.writeln('</A>');
	oPopup.document.write('</BODY>');
	oPopup.document.write('</HTML>');
	oPopup.document.close();
	oPopup.focus();
}

function PopupPage(url, width, height) {
	winwidth = width + 10;
	winheight = height + 40;
	oPopup=window.open(url,'_blank','width=' + winwidth +',height=' + winheight + ',resizable=1,top=50,left=10');
	oPopup.resizeTo(winwidth, winheight);
}

function getObjByID(objId) {
  var myObj;
  if (document.layers) { //Netscape 4
     myObj = eval('document.' + objId);
  }
  else if (document.all && !document.getElementById) { //IE 4
     myObj = eval('document.all.' + objId);
  }
  else if (document.getElementById) { //Netscape 6 & IE 5
     myObj = document.getElementById(objId);
  }
  else {
     return null;
  }
  return myObj;
}

function resizeWinTo(objID) {
	resizeTo(document.body.scrollWidth,document.body.scrollHeight)
}
