var newwindow;
var wheight = 0, wwidth = 0;
var message='';
function popItUp(url, title, iwidth, iheight, colour) {
	var pwidth, pheight;
	if ( !newwindow || newwindow.closed ) {
		pwidth=iwidth+30;
		pheight=iheight+30;
		dwidth='width='+pwidth;
		dheight='height='+pheight;
		newwindow=window.open('','htmlname',"'"+dwidth+","+dheight+",resizable=yes,toolbar=no,scrollbars=yes,top=50,left=10'");
		wheight=iheight;
		wwidth=iwidth;
		}
	if (wheight!=iheight || wwidth!=iwidth ) {
		pwidth=iwidth+30;
		pheight=iheight+60;
		newwindow.resizeTo(pwidth, pheight);
		wheight=iheight;
		wwidth=iwidth;
		}
	newwindow.document.clear();
	newwindow.focus();
	newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor= \"' + colour + '\"> <center>');
	newwindow.document.writeln('<img src=' + url + '>');
	newwindow.document.writeln('<\/center> <\/body> <\/html>');
	newwindow.document.close();
	newwindow.focus();
	}
function tidy() {
	if (newwindow && !newwindow.closed) {
		newwindow.close();
		}
	}
function clickIE() {
	if (document.all) {
		(message);
		return false;
		}
	}
function clickNS(e) {
	if (document.layers||(document.getElementById&&!document.all)) {
		if (e.which==1||e.which==2||e.which==3) {
			(message);
			return false;
			}
		}
	}
if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS;
	} else {
	document.onmouseup=clickNS;document.oncontextmenu=clickIE;
	}
document.oncontextmenu=new Function("return false")
function disableselect(e) {
	return false
	}
function reEnable() {
	return true
	} 
document.onselectstart=new Function ("return false")
if (window.sidebar) {
	document.onmousedown=disableselect;
	document.onclick=reEnable;
	}