<!--
var winHandle=null
var winTitle=""
var frameLabel=""

function relabel1(what){
	document.labelform.labelname.value=what
	winTitle=what
	frameLabel=what
}

function relabel2(what){
	document.labelform2.labelname2.value=what
	frameLabel=what
}

function relabel(which){
	document.labelform.labelname.value=which
	document.labelform2.labelname2.value=which
	frameLabel=what

}

function newindex(where){
	location.href=where
}

function openWindow(filename,pageX,pageY,posX,where){
	if (winHandle==null) {
	}
	else {
		//winHandle.close()
	}
	pageX+=40
	pageY+=30
	winHandle=window.open("enlarge.php?filename="+filename+"&label="+frameLabel+"&whereto="+where,'winName','resizable=yes,scrollbars=yes,titlebar=no,status=no,toolbar=no,menubar=no,left='+posX+',top=100,width='+pageX+',height='+pageY)
	winHandle.document.title=winTitle
	setTimeout("isPopupBlocker()",500)
}

function isPopupBlocker() {
	if (winHandle==null) {
		alert("Please allow popups to see enlarged images")
		return true
	} else {
		winHandle.focus()
		return false
	}
}

function changeImage(filename)
{
   document.getElementById('mainimage').src = filename;
}

function changelegend(newlegend,newtitle){
	document.getElementById("legendId").value=newlegend
	document.getElementById("mainimage").title=newtitle
}
//-->

