function openWindow(url, width, height)
{
	if ((width + 30 > screen.width) || (height + 60 > screen.height))
	{
	        width = width + 50;
                if (width > screen.width - 80)
			width = screen.width - 80;
	        height = height + 50;
		if (height > screen.height - 110)
			height = screen.height - 110;
		popupWin = window.open(url, "Image", "resizable=yes,scrollbars=yes,width=" + width + ",height=" + height + ",top=40,left=40,screenX=40,screenY=40");
	}
	else
	{
	        width = width + 36;
	        height = height + 52;            <!--  resizable -->
		popupWin = window.open(url, "Image", "resizable=yes,scrollbars=yes,width=" + width + ",height=" + height + ",top=40,left=40,screenX=40,screenY=40");
	}
}

function imageover(file)
{
	document.form1.img1.src = file;
}


function contents(file)
{
	self.location.replace(file);
}

var msg="This function is disabled.";

function right(e)
{
	if(navigator.appName=='Netscape'&&e.which==3) {
		alert(msg);
		return false;
	}
	if(navigator.appName=='Microsoft Internet Explorer'&&event.button==2) {
		alert(msg);
		return false;
	}
	else return true;
}

function trap() 
{
	if(document.images) {
		for(i=0;i<document.images.length;i++) {
			document.images[i].onmousedown=right;
			document.images[i].onmouseup=right;
		}
	}
}

function mHigh()
{
	event.srcElement.style.filter = "invert";
}

function mBack()
{
	event.srcElement.style.filter = "";
}

function go(sval,ddmenu){
if(sval != '') {
		location.href=sval;
}
}